virtual void setGeometry(int x, int y, int width, int height);
inline bool isVisible(void) const { return _visible; };
- virtual void show(void);
- virtual void hide(void);
+ virtual void show(bool recursive = false);
+ virtual void hide(bool recursive = false);
inline bool isFocused(void) const { return _focused; };
virtual void focus(void);
void setStretchableVert(bool s_vert = true) { _stretchable_vert = s_vert; }
inline Cursor getCursor(void) const { return _cursor; }
+ void setCursor(Cursor cursor) {
+ _cursor = cursor;
+ XDefineCursor(OBDisplay::display, _window, _cursor);
+ }
inline int getBevelWidth(void) const { return _bevel_width; }
void setBevelWidth(int bevel_width)
void setDirection(Direction dir) { _direction = dir; }
inline Style *getStyle(void) const { return _style; }
- void setStyle(Style *style) { assert(style); _style = style; }
+ virtual void setStyle(Style *style) { assert(style); _style = style; }
inline OtkEventDispatcher *getEventDispatcher(void)
{ return _event_dispatcher; }
void setEventDispatcher(OtkEventDispatcher *disp);
+ void unmanaged(void) { _unmanaged = true; }
+
protected:
bool _dirty;
bool _fixed_width;
bool _fixed_height;
+ bool _unmanaged;
+
OtkEventDispatcher *_event_dispatcher;
OtkApplication *_application;
};