better marking of current cursor in Components.Input
[enigma2.git] / lib / gui / elabel.h
index 7e07f4389fe114ba58ad1b65a604fc3e56e9ede4..df57e7b597e3e11fff73724d5081bd5416661aee 100644 (file)
@@ -6,10 +6,12 @@
 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();
+
        enum
        {
                alignLeft,
@@ -22,18 +24,28 @@ public:
        
        void setVAlign(int align);
        void setHAlign(int align);
+       
+       void setForegroundColor(const gRGB &col);
+       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);
+       int m_pos;
 private:
+       int m_have_foreground_color;
+       gRGB m_foreground_color;
+       
        enum eLabelEvent
        {
                evtChangedText = evtUserWidget,
                evtChangedFont,
-               evtChangedAlignment
+               evtChangedAlignment,
+               evtChangedMarkedPos
        };
-       std::string m_text;
 };
 
 #endif