X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FToolbar.h;h=93d92055ef5696df7b6396d250790c1cd596a9ee;hb=f75083669f65aadd6b32f8ed25880ca362296a2f;hp=bf67b506d209f73731f14594d23a158379935977;hpb=307da13fff916694f870ecb77aaf3ce0cf51d09e;p=chaz%2Fopenbox diff --git a/src/Toolbar.h b/src/Toolbar.h index bf67b506..93d92055 100644 --- a/src/Toolbar.h +++ b/src/Toolbar.h @@ -29,6 +29,7 @@ #include "Timer.h" #include "Resource.h" #include "Screen.h" +#include "Geometry.h" // forward declaration class Toolbar; @@ -92,9 +93,9 @@ private: } hide_handler; Openbox &openbox; + BScreen &screen; Resource &config; BImageControl *image_ctrl; - BScreen &screen; BTimer *clock_timer, *hide_timer; Toolbarmenu *toolbarmenu; @@ -114,12 +115,16 @@ public: inline const Window &getWindowID() const { return frame.window; } - inline unsigned int getWidth() const { return frame.width; } - inline unsigned int getHeight() const { return frame.height; } + //inline unsigned int getWidth() const { return frame.width; } + //inline unsigned int getHeight() const { return frame.height; } unsigned int getExposedHeight() const; - int getX() const; - int getY() const; + //int getX() const; + //int getY() const; + + Rect area() const; + //Size size() const { return area().size(); } + //Point origin() const { return area().origin(); } void buttonPressEvent(XButtonEvent *); void buttonReleaseEvent(XButtonEvent *);