CComponentsItem: move/rename doCenter()to base class CComponentsItem

So it's possible to use this method for all cc-items.
setCenterPos() comes now with parameter 'along_mode' (CC_ALONG_X, CC_ALONG_Y).
So it's possible to center in x or y direction. As default are
both directions predefined.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 8a897103ac
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 19:43:30 +01:00
parent d00ab87de8
commit 9aadc5bd17
6 changed files with 22 additions and 12 deletions

View File

@@ -90,8 +90,6 @@ class CComponentsWindow : public CComponentsForm
fb_pixel_t color_frame = COL_MENUCONTENT_PLUS_6,
fb_pixel_t color_body = COL_MENUCONTENT_PLUS_0,
fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0);
///allow centering of window on screen, mostly senseful for window object without parent
void doCenter();
///initialize width and height
void initWindowSize();
///initialize position