X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/0e5307c51280792394948716d5e3ecef7d87c295..1a2572289b607810dfc4a91970a4576034c2e58a:/lib/gui/elabel.h diff --git a/lib/gui/elabel.h b/lib/gui/elabel.h index f3d280ae..84b2c5e4 100644 --- a/lib/gui/elabel.h +++ b/lib/gui/elabel.h @@ -6,10 +6,11 @@ class eLabel: public eWidget { public: - eLabel(eWidget *parent); + eLabel(eWidget *parent, int markedPos = -1); void setText(const std::string &string); + void setMarkedPos(int markedPos); void setFont(gFont *font); - gFont* eLabel::getFont(); + gFont* getFont(); enum { @@ -25,6 +26,8 @@ public: void setHAlign(int align); void setForegroundColor(const gRGB &col); + void setShadowColor(const gRGB &col); + void setShadowOffset(const ePoint &offset); void clearForegroundColor(); eSize calculateSize(); @@ -33,15 +36,18 @@ protected: int m_valign, m_halign; std::string m_text; int event(int event, void *data=0, void *data2=0); + int m_pos; private: - int m_have_foreground_color; - gRGB m_foreground_color; + int m_have_foreground_color, m_have_shadow_color; + gRGB m_foreground_color, m_shadow_color; + ePoint m_shadow_offset; enum eLabelEvent { evtChangedText = evtUserWidget, evtChangedFont, - evtChangedAlignment + evtChangedAlignment, + evtChangedMarkedPos }; };