fix warnings
[enigma2.git] / lib / gui / elabel.h
index c19eb0ac369591ce1c05368ef8721a6e16312b66..84b2c5e4ba23977d797059ad28b24dc07cb37898 100644 (file)
@@ -6,10 +6,12 @@
 class eLabel: public eWidget
 {
 public:
 class eLabel: public eWidget
 {
 public:
-       eLabel(eWidget *parent);
+       eLabel(eWidget *parent, int markedPos = -1);
        void setText(const std::string &string);
        void setText(const std::string &string);
+       void setMarkedPos(int markedPos);
        void setFont(gFont *font);
        void setFont(gFont *font);
-       
+       gFont* getFont();
+
        enum
        {
                alignLeft,
        enum
        {
                alignLeft,
@@ -22,17 +24,30 @@ public:
        
        void setVAlign(int align);
        void setHAlign(int align);
        
        void setVAlign(int align);
        void setHAlign(int align);
+       
+       void setForegroundColor(const gRGB &col);
+       void setShadowColor(const gRGB &col);
+       void setShadowOffset(const ePoint &offset);
+       void clearForegroundColor();
+       
+       eSize calculateSize();
 protected:
        ePtr<gFont> m_font;
        int m_valign, m_halign;
        std::string m_text;
        int event(int event, void *data=0, void *data2=0);
 protected:
        ePtr<gFont> m_font;
        int m_valign, m_halign;
        std::string m_text;
        int event(int event, void *data=0, void *data2=0);
+       int m_pos;
 private:
 private:
+       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,
        enum eLabelEvent
        {
                evtChangedText = evtUserWidget,
                evtChangedFont,
-               evtChangedAlignment
+               evtChangedAlignment,
+               evtChangedMarkedPos
        };
 };
 
        };
 };