CComponentsWindow: add member doCenter()

Allows centering of window on screen, mostly senseful for
window objects without parent
This commit is contained in:
2014-01-18 23:49:26 +01:00
parent 21e0321c53
commit 8cad2a3ca5
2 changed files with 14 additions and 5 deletions

View File

@@ -89,6 +89,8 @@ 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();
public:
enum