X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Fwidget.hh;h=60fd2ddbea98ffbf75cfb7538ca00bda7a469bf6;hb=c09095554429d93f2e1f4fef2d6028a523f6206c;hp=85eefe79de3a028e73d84b5548108f6859b0895d;hpb=9834a687fc5180f0beba99bc15fe5763f5c20317;p=chaz%2Fopenbox diff --git a/otk/widget.hh b/otk/widget.hh index 85eefe79..60fd2ddb 100644 --- a/otk/widget.hh +++ b/otk/widget.hh @@ -27,6 +27,9 @@ public: virtual void update(void); + virtual bool expose(const XExposeEvent &e); + virtual bool configure(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; } @@ -39,6 +42,9 @@ public: 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); @@ -104,6 +110,7 @@ private: Direction _direction; Cursor _cursor; int _bevel_width; + int _ignore_config; bool _visible; bool _focused;