mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
CComponentsButton: remove enableShadow() from button class
is not required
This commit is contained in:
@@ -290,10 +290,3 @@ void CComponentsButton::paint(bool do_save_bg)
|
|||||||
//paint form contents
|
//paint form contents
|
||||||
paintForm(do_save_bg);
|
paintForm(do_save_bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CComponentsButton::enableShadow(int mode, const int& shadow_width, bool force_paint)
|
|
||||||
{
|
|
||||||
shadow_w = shadow_width;
|
|
||||||
shadow_force = force_paint;
|
|
||||||
shadow = mode;
|
|
||||||
}
|
|
||||||
|
@@ -195,12 +195,6 @@ class CComponentsButton : public CComponentsFrmChain, public CCTextScreen
|
|||||||
inline virtual void setButtonAlias(const int& alias_value){cc_btn_alias = alias_value;};
|
inline virtual void setButtonAlias(const int& alias_value){cc_btn_alias = alias_value;};
|
||||||
///returns an alias value from button object, see also cc_btn_alias
|
///returns an alias value from button object, see also cc_btn_alias
|
||||||
inline virtual int getButtonAlias(){return cc_btn_alias;};
|
inline virtual int getButtonAlias(){return cc_btn_alias;};
|
||||||
|
|
||||||
/**1st parameter requires defines CC_SHADOW_ON (default), CC_SHADOW_OFF, CC_SHADOW_BOTTOM or CC_SHADOW_RIGHT, see also cc_types.h
|
|
||||||
* 2nd parameter defines shadow width, default = defined by system
|
|
||||||
* 3rd parameter forces paint of shadow layer, default = false, Note: default shadow will paint only on first paint, use 3rd parameter=true ignores this
|
|
||||||
*/
|
|
||||||
void enableShadow(int mode = CC_SHADOW_ON, const int& shadow_width = -1, bool force_paint = false);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Sub class of CComponentsButton.
|
//! Sub class of CComponentsButton.
|
||||||
|
Reference in New Issue
Block a user