X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Flabel.hh;fp=otk%2Flabel.hh;h=ff1755d78fe82b143c85bf941a461bed7fb8ba0a;hb=d8d9b42777ace234f3471918e1210062578f8188;hp=e52c34f473c0a521ce392836377ac1dcbe15dbac;hpb=0ba441fe8f379ec506000f7fa29f867cb6bc0d51;p=chaz%2Fopenbox diff --git a/otk/label.hh b/otk/label.hh index e52c34f4..ff1755d7 100644 --- a/otk/label.hh +++ b/otk/label.hh @@ -16,13 +16,17 @@ public: inline const ustring &getText(void) const { return _text; } void setText(const ustring &text) { _text = text; _dirty = true; } - void update(void); + virtual void renderForeground(void); virtual void setStyle(Style *style); private: - //! Text displayed in the label + //! Text to be displayed in the label ustring _text; + //! The actual text being shown, may be a subset of _text + ustring _drawtext; + //! The drawing offset for the text + int _drawx; }; }