This commit is contained in:
parent
c9b5825e8e
commit
5ea7baa201
2 changed files with 6 additions and 5 deletions
|
@ -69,7 +69,7 @@ void CGUIObject::init(GUIId _id)
|
||||||
|
|
||||||
m_id=_id;
|
m_id=_id;
|
||||||
m_x=m_y=m_w=m_h=0;
|
m_x=m_y=m_w=m_h=0;
|
||||||
m_flags=INITIAL_FLAGS;
|
m_flags=getInitialFlags();
|
||||||
m_this=this;
|
m_this=this;
|
||||||
|
|
||||||
// Add to the end of the linked list of GUI objects..
|
// Add to the end of the linked list of GUI objects..
|
||||||
|
|
|
@ -37,10 +37,8 @@ public:
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
FLAG_SELECTED= 1<<0,
|
FLAG_SELECTED= 1<<0,
|
||||||
FLAG_HIDDEN= 1<<1,
|
FLAG_HIDDEN= 1<<2,
|
||||||
FLAG_DRAWBORDER= 1<<2,
|
FLAG_DRAWBORDER= 1<<3,
|
||||||
|
|
||||||
INITIAL_FLAGS= FLAG_DRAWBORDER,
|
|
||||||
} GUI_FLAGS;
|
} GUI_FLAGS;
|
||||||
|
|
||||||
enum
|
enum
|
||||||
|
@ -80,6 +78,9 @@ public:
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
virtual GUI_FLAGS getInitialFlags() {return FLAG_DRAWBORDER;}
|
||||||
|
virtual int isSelectable() {return false;}
|
||||||
|
|
||||||
int getX() {return m_x;}
|
int getX() {return m_x;}
|
||||||
int getY() {return m_y;}
|
int getY() {return m_y;}
|
||||||
int getW() {return m_w;}
|
int getW() {return m_w;}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue