fixed refcount of eListboxPythonStringContent
[enigma2.git] / lib / gui / ewindowstyle.h
index d5da5a34e324342b7731c1bd07bb89349baef658..74ff88d5ebb040729262b7aaabfa53da350ce4dc 100644 (file)
@@ -13,9 +13,21 @@ public:
        virtual void handleNewSize(eWindow *wnd, const eSize &size) = 0;
        virtual void paintWindowDecoration(eWindow *wnd, gPainter &painter, const std::string &title) = 0;
        virtual void paintBackground(gPainter &painter, const ePoint &offset, const eSize &size) = 0;
-       virtual void setForegroundStyle(gPainter &painter) = 0;
-       virtual void drawButtonFrame(gPainter &painter, const eRect &frame) = 0;
+       virtual void setStyle(gPainter &painter, int what) = 0;
+       enum {
+               styleLabel,
+               styleListboxSelected,
+               styleListboxNormal
+       };
+       
+       virtual void drawFrame(gPainter &painter, const eRect &frame, int type) = 0;
+       
+       enum {
+               frameButton,
+               frameListboxEntry
+       };
        virtual ~eWindowStyle() = 0;
+
 };
 
 class eWindowStyleSimple: public eWindowStyle
@@ -31,8 +43,8 @@ public:
        void handleNewSize(eWindow *wnd, const eSize &size);
        void paintWindowDecoration(eWindow *wnd, gPainter &painter, const std::string &title);
        void paintBackground(gPainter &painter, const ePoint &offset, const eSize &size);
-       void setForegroundStyle(gPainter &painter);
-       void drawButtonFrame(gPainter &painter, const eRect &frame);
+       void setStyle(gPainter &painter, int what);
+       void drawFrame(gPainter &painter, const eRect &frame, int what);
 };
 
 #endif