CComponentsItem: add members to get real item position

This commit is contained in:
2013-04-12 22:16:52 +02:00
parent 3d35a30ecf
commit 9420edd932

View File

@@ -32,7 +32,7 @@
#include <string> #include <string>
#include <driver/pictureviewer/pictureviewer.h> #include <driver/pictureviewer/pictureviewer.h>
//#define DEBUG_CC #define DEBUG_CC
class CComponents 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 ///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 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 paint(bool do_save_bg = CC_SAVE_SCREEN_YES) = 0;
virtual void hide(bool no_restore = false); virtual void hide(bool no_restore = false);