X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fframe.hh;h=3937afc21d3c9112d9d7776d97c1cc6360b41d7a;hb=00bc993775b916de76772bdc5e31618076194797;hp=0a22cbaa1244edd75e6b05123a801151e6fbd259;hpb=77ab46d1e35d48e73c201e6de88b26f48bb06425;p=chaz%2Fopenbox diff --git a/src/frame.hh b/src/frame.hh index 0a22cbaa..3937afc2 100644 --- a/src/frame.hh +++ b/src/frame.hh @@ -18,6 +18,7 @@ extern "C" { #include "otk/screeninfo.hh" #include "otk/style.hh" #include "otk/widget.hh" +#include "otk/ustring.hh" #include @@ -39,9 +40,6 @@ private: Client *_client; const otk::ScreenInfo *_screen; - //! The style to use for size and display the decorations - otk::Style *_style; - //! The size of the frame on each side of the client window otk::Strut _size; @@ -77,6 +75,9 @@ public: //! Destroys the Frame object virtual ~Frame(); + //! Returns the size of the frame on each side of the client + const otk::Strut& size() const { return _size; } + //! Set the style to decorate the frame with virtual void setStyle(otk::Style *style); @@ -88,7 +89,7 @@ public: //! Displays unfocused decorations virtual void unfocus(); - void setTitle(const std::string &text); + void setTitle(const otk::ustring &text); //! Reparents the client window from the root window onto the frame void grabClient();