cc_frm_footer: add members to enable button allignment on top of footer

This commit is contained in:
2019-10-27 16:24:47 +01:00
parent 52e8737d2d
commit 97fc294d54
2 changed files with 7 additions and 2 deletions

View File

@@ -64,6 +64,8 @@ class CComponentsFooter : public CComponentsHeader, public CCButtonSelect
bool ccf_button_shadow_force_paint;
///enable/disable button frame in icon color, predefined for red, green, yellow and blue, default disabled
bool btn_auto_frame_col;
///extra button container y pos, overwrites internal default y centered position if value > 0
int ccf_button_container_y;
///property: set font for label caption, see also setButtonFont()
Font* ccf_btn_font;
@@ -162,6 +164,8 @@ class CComponentsFooter : public CComponentsHeader, public CCButtonSelect
void disbaleButtonShadow(){enableButtonShadow(CC_SHADOW_OFF);}
///get button label object with defined item id
CComponentsButton* getButtonLabel(const uint& item_id);
/// allows to allign buttons on the top of footer, default parameter is true
void ButtonsOnTop(const bool& enable = true) { ccf_button_container_y = enable ? 0 : -1;}
};