mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
CComponentsWindow: prepare possibility to change footer height
Origin commit data
------------------
Commit: 013cd1f2cc
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-14 (Fri, 14 Oct 2016)
This commit is contained in:
@@ -126,6 +126,7 @@ void CComponentsWindow::initVarWindow( const int& x_pos, const int& y_pos, const
|
||||
y = y_pos;
|
||||
width = w;
|
||||
height = h;
|
||||
ccw_h_footer = 0; //auto
|
||||
initWindowSize();
|
||||
initWindowPos();
|
||||
|
||||
@@ -216,6 +217,8 @@ void CComponentsWindow::initFooter()
|
||||
//add of footer item happens initCCWItems()
|
||||
//set footer properties
|
||||
if (ccw_footer){
|
||||
if (ccw_h_footer)
|
||||
ccw_footer->setHeight(ccw_h_footer);
|
||||
ccw_footer->setPos(0, cc_yr + height - ccw_footer->getHeight()- fr_thickness);
|
||||
ccw_footer->setWidth(width-2*fr_thickness);
|
||||
ccw_footer->enableShadow(false/*shadow*/);
|
||||
|
@@ -89,6 +89,8 @@ class CComponentsWindow : public CComponentsForm
|
||||
fb_pixel_t ccw_col_head_text;
|
||||
///footer bg color
|
||||
fb_pixel_t ccw_col_footer;
|
||||
///footer heigh, default defined by footer object itself
|
||||
int ccw_h_footer;
|
||||
///footer button font
|
||||
Font* ccw_button_font;
|
||||
|
||||
|
Reference in New Issue
Block a user