CComponentsItem: add methodes to set width and height via percent value

Percent value is related to current screen or parent size


Origin commit data
------------------
Branch: ni/coolstream
Commit: a33cad448a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-27 (Thu, 27 Feb 2014)



------------------
This commit was generated by Migit
This commit is contained in:
2014-02-27 20:37:08 +01:00
parent 817ee2d030
commit ee57e13275
2 changed files with 15 additions and 0 deletions

View File

@@ -296,6 +296,11 @@ class CComponentsItem : public CComponents
///do center item on screen or within a parent form, parameter along_mode assigns direction of centering
virtual void setCenterPos(int along_mode = CC_ALONG_X | CC_ALONG_Y);
///set item height, parameter as uint8_t, as percent value related to current height of parent form or screen
virtual void setHeightP(const uint8_t& h_percent);
///set item width, parameter as uint8_t, as percent value related to current width of parent form or screen
virtual void setWidthP(const uint8_t& w_percent);
};
#endif