From 9420edd93229288e82e15b0542f42007b13ac3fb Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 12 Apr 2013 22:16:52 +0200 Subject: [PATCH] CComponentsItem: add members to get real item position --- src/gui/components/cc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/components/cc.h b/src/gui/components/cc.h index aef25e44d..6d6dd1035 100644 --- a/src/gui/components/cc.h +++ b/src/gui/components/cc.h @@ -32,7 +32,7 @@ #include #include -//#define DEBUG_CC +#define DEBUG_CC class CComponents { @@ -111,6 +111,8 @@ class CComponentsItem : public CComponents ///sets real position on screen. Use this, if item contains own render methods and item is added to a form virtual void setRealPos(const int& xr, const int& yr){cc_item_xr = xr; cc_item_yr = yr;}; + virtual int getRealXPos(){return cc_item_xr;}; + virtual int getRealYPos(){return cc_item_yr;}; virtual void paint(bool do_save_bg = CC_SAVE_SCREEN_YES) = 0; virtual void hide(bool no_restore = false);