X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Flabel.hh;h=cd9ef5a1276dad1d87fa61e3ab0fb6a794df3d4b;hb=9a3459e983a11d74ec9f5dc415ce0af551c4b74e;hp=b3e9c16655256dcbfc9fa682c3446426a7205be7;hpb=f51f1c775f3f09cf184ead323d111985c888d52e;p=chaz%2Fopenbox diff --git a/otk/label.hh b/otk/label.hh index b3e9c166..cd9ef5a1 100644 --- a/otk/label.hh +++ b/otk/label.hh @@ -14,10 +14,11 @@ namespace otk { class Label : public Widget { public: + Label(int screen, EventDispatcher *ed, int bevel = 3); 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; } @@ -31,13 +32,13 @@ public: const Font *font() const { return _font; } virtual void setFont(const Font *f); - virtual void calcDefaultSizes(); - virtual void styleChanged(const RenderStyle &style); virtual void renderForeground(Surface &surface); protected: + virtual void calcDefaultSizes(); + //! The color the label will use for rendering its text RenderColor *_forecolor;