X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Flabel.hh;h=e24858f19fe731ef91db71afae7c6bc04def9a58;hb=ee356f4265d09a542d77474ac2f4b5057e7d04fe;hp=e52c34f473c0a521ce392836377ac1dcbe15dbac;hpb=9b6e5f9cf49df78be25720f9c4b33a733b856c9b;p=chaz%2Fopenbox diff --git a/otk/label.hh b/otk/label.hh index e52c34f4..e24858f1 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); + virtual void setStyle(RenderStyle *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; }; }