- typedef std::list<OtkWidget *> OtkWidgetList;
-
- OtkWidget(OtkWidget *parent, Direction = Horizontal);
- OtkWidget(OtkApplication *app, Direction direction = Horizontal,
- Cursor cursor = 0, int bevel_width = 1);
- OtkWidget(Style *style, Direction direction = Horizontal,
- Cursor cursor = 0, int bevel_width = 1);
-
- virtual ~OtkWidget();
-
- virtual void update(void);
-
- int exposeHandler(const XExposeEvent &e);
- int configureHandler(const XConfigureEvent &e);
-
- inline Window getWindow(void) const { return _window; }
- inline const OtkWidget *getParent(void) const { return _parent; }
- inline const OtkWidgetList &getChildren(void) const { return _children; }
- inline unsigned int getScreen(void) const { return _screen; }
- inline const Rect &getRect(void) const { return _rect; }
-
- void move(const Point &to);
- void move(int x, int y);
-
- virtual void setWidth(int);
- virtual void setHeight(int);
-
- virtual int width() const { return _rect.width(); }
- virtual int height() const { return _rect.height(); }
-
- virtual void resize(const Point &to);
- virtual void resize(int x, int y);
-
- virtual void setGeometry(const Rect &new_geom);
- virtual void setGeometry(const Point &topleft, int width, int height);
- virtual void setGeometry(int x, int y, int width, int height);
+ Widget(int screen, EventDispatcher *ed, Direction direction = Horizontal,
+ int bevel = 3, bool overrideredir = false);
+ Widget(Widget *parent, Direction direction = Horizontal, int bevel = 3);
+ virtual ~Widget();