dont open epglist when no epg is avail
[enigma2.git] / lib / gui / elabel.h
index b1f7c2c..f3d280a 100644 (file)
@@ -8,14 +8,41 @@ class eLabel: public eWidget
 public:
        eLabel(eWidget *parent);
        void setText(const std::string &string);
+       void setFont(gFont *font);
+       gFont* eLabel::getFont();
+
+       enum
+       {
+               alignLeft,
+               alignTop=alignLeft,
+               alignCenter,
+               alignRight,
+               alignBottom=alignRight,
+               alignBlock
+       };
+       
+       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);
 private:
+       int m_have_foreground_color;
+       gRGB m_foreground_color;
+       
        enum eLabelEvent
        {
-               evtChangedText = evtUserWidget
+               evtChangedText = evtUserWidget,
+               evtChangedFont,
+               evtChangedAlignment
        };
-       std::string m_text;
 };
 
 #endif