CComponentsForm: add predefine CC_CENTERED for auto positions

This saves explicit position calculations to arrange items centered
This commit is contained in:
2013-10-11 22:11:15 +02:00
parent c2f66a39c5
commit 3ff09c88bd
3 changed files with 22 additions and 5 deletions

View File

@@ -51,17 +51,17 @@ class CComponents
///container: for frambuffer properties and pixel buffer
std::vector<comp_fbdata_t> v_fbdata;
///property: x-position on screen
///property: x-position on screen, to alter with setPos() or setDimensionsAll(), see also defines CC_APPEND, CC_CENTERED
int x;
///property: y-position on screen
///property: y-position on screen, to alter setPos() or setDimensionsAll(), see also defines CC_APPEND, CC_CENTERED
int y;
///property: contains real x-position on screen
int cc_xr;
///property: contains real y-position on screen
int cc_yr;
///property: height-dimension on screen
///property: height-dimension on screen, to alter with setHeight() or setDimensionsAll()
int height;
///property: width-dimension on screen
///property: width-dimension on screen, to alter with setWidth() or setDimensionsAll()
int width;
///property: has corners with definied type, types are defined in /driver/frambuffer.h, without effect, if corner_radius=0
int corner_type;