CComponentsFooter: add member enableButtonShadow()

Possibility to pass button properties into button objects


Origin commit data
------------------
Commit: 363cf101d1
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-08-21 (Sun, 21 Aug 2016)
This commit is contained in:
2016-08-21 18:32:14 +02:00
parent a6f28430c5
commit dba17b359c
2 changed files with 20 additions and 2 deletions

View File

@@ -72,6 +72,8 @@ class CComponentsFooter : public CComponentsHeader
///show button with background, default false
bool ccf_enable_button_bg;
///enable button with shadow, default false
bool ccf_enable_button_shadow;
///enable/disable button frame in icon color, predefined for red, green, yellow and blue, default disabled
bool btn_auto_frame_col;
@@ -178,7 +180,12 @@ class CComponentsFooter : public CComponentsHeader
CC_FOOTER_SIZE_SMALL = 1
};
///set size of footer, possible values are CC_FOOTER_SIZE_LARGE, CC_FOOTER_SIZE_SMALL
virtual void setSizeMode(const int& size_mode){cch_size_mode = size_mode; initCCItems();};
virtual void setSizeMode(const int& size_mode){cch_size_mode = size_mode; initCCItems();}
///enable and sets shadow properties for embedded buttons
void enableButtonShadow(int mode = CC_SHADOW_ON, const int& shadow_width = RADIUS_SMALL, bool force_paint = false);
///disable shadow for embedded buttons
void disbaleButtonShadow(){enableButtonShadow(CC_SHADOW_OFF);}
};
#endif