cc_base.h: make private initVarBasic and initVarItem, they are is called from constructors

This commit is contained in:
[CST] Focus
2013-11-27 15:50:19 +04:00
parent 00b0cef69c
commit 5f80ab6450

View File

@@ -45,6 +45,8 @@ class CComponents
private: private:
///pixel buffer handling, returns pixel buffer depends of given parameters ///pixel buffer handling, returns pixel buffer depends of given parameters
fb_pixel_t* getScreen(int ax, int ay, int dx, int dy); fb_pixel_t* getScreen(int ax, int ay, int dx, int dy);
///initialize of basic attributes, no parameters required
void initVarBasic();
protected: protected:
///object: framebuffer object, usable in all sub classes ///object: framebuffer object, usable in all sub classes
@@ -97,8 +99,6 @@ class CComponents
///mode: true=allows painting of item, see also allowPaint() ///mode: true=allows painting of item, see also allowPaint()
bool cc_allow_paint; bool cc_allow_paint;
///initialize of basic attributes, no parameters required
void initVarBasic();
///rendering of framebuffer elements at once, ///rendering of framebuffer elements at once,
///elements are contained in v_fbdata, presumes added frambuffer elements with paintInit(), ///elements are contained in v_fbdata, presumes added frambuffer elements with paintInit(),
///parameter do_save_bg=true, saves background of element to pixel buffer, this can be restore with hide() ///parameter do_save_bg=true, saves background of element to pixel buffer, this can be restore with hide()
@@ -216,6 +216,9 @@ class CComponents
class CComponentsItem : public CComponents class CComponentsItem : public CComponents
{ {
private:
///initialize all required attributes
void initVarItem();
protected: protected:
///property: define of item type, see cc_types.h for possible types ///property: define of item type, see cc_types.h for possible types
int cc_item_type; int cc_item_type;
@@ -242,8 +245,6 @@ class CComponentsItem : public CComponents
///an item will be hide or overpainted with other methods, or it's embedded (bound) in a parent form. ///an item will be hide or overpainted with other methods, or it's embedded (bound) in a parent form.
void paintInit(bool do_save_bg); void paintInit(bool do_save_bg);
///initialize all required attributes
void initVarItem();
public: public:
CComponentsItem(); CComponentsItem();