X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Flabel.hh;h=3bb931d6394b92a03928a8171d2aeb0eee2167c1;hb=1e58c863bbaddd2f2dbebfde740ca842e8837a1c;hp=1b31ae79a5b91703096c71f80e295f9241bbb095;hpb=99cd843fc6dc7a7f55b6c90fd1162f233853aad2;p=chaz%2Fopenbox diff --git a/otk/label.hh b/otk/label.hh index 1b31ae79..3bb931d6 100644 --- a/otk/label.hh +++ b/otk/label.hh @@ -17,9 +17,12 @@ public: Label(Widget *parent); virtual ~Label(); - inline const ustring& getText(void) const { return _text; } + inline const ustring& text(void) const { return _text; } void setText(const ustring &text); + virtual inline bool isHighlighted() const { return _highlight; } + virtual void setHighlighted(bool h); + RenderStyle::Justify horizontalJustify() const { return _justify_horz; } virtual void setHorizontalJustify(RenderStyle::Justify j); RenderStyle::Justify verticalJustify() const { return _justify_vert; } @@ -53,6 +56,8 @@ private: RenderStyle::Justify _justify_vert; //! The drawing offset for the text int _drawx; + //! If the widget is highlighted or not + bool _highlight; }; }