allow access to gfbdc from python to set resolution
[enigma2.git] / lib / gdi / grc.h
index fb9e2ea19db64542a1aabf6a6e819b64e74d4079..57d3dce4098e71006eca2ad5e67dbd2e7edbbb14 100644 (file)
@@ -23,6 +23,7 @@
 #include <lib/gdi/region.h>
 #include <lib/gdi/gfont.h>
 
+#ifndef SWIG
 class eTextPara;
 
 class gDC;
@@ -58,6 +59,8 @@ struct gOpcode
                flip,
                notify,
                
+               enableSpinner, disableSpinner, incrementSpinner,
+               
                shutdown
        } opcode;
 
@@ -161,6 +164,13 @@ private:
 
        eFixedMessagePump<int> m_notify_pump;
        void recv_notify(const int &i);
+
+       ePtr<gDC> m_spinner_dc;
+       int m_spinner_enabled;
+       
+       void enableSpinner();
+       void disableSpinner();
+
 public:
        gRC();
        virtual ~gRC();
@@ -168,7 +178,9 @@ public:
        void submit(const gOpcode &o);
 
        Signal0<void> notify;
-
+       
+       void setSpinnerDC(gDC *dc) { m_spinner_dc = dc; }
+       
        static gRC *getInstance();
 };
 
@@ -244,10 +256,12 @@ public:
        void flip();
        void notify();
 };
+#endif
 
 class gDC: public iObject
 {
 DECLARE_REF(gDC);
+#ifndef SWIG
 protected:
        ePtr<gPixmap> m_pixmap;
 
@@ -259,8 +273,15 @@ protected:
        std::stack<gRegion> m_clip_stack;
        gRegion m_current_clip;
        
+       ePtr<gPixmap> m_spinner_saved, m_spinner_temp;
+       ePtr<gPixmap> *m_spinner_pic;
+       eRect m_spinner_pos;
+       int m_spinner_num, m_spinner_i;
 public:
        virtual void exec(gOpcode *opcode);
+#else
+public:
+#endif
        gDC(gPixmap *pixmap);
        gDC();
        virtual ~gDC();
@@ -269,6 +290,11 @@ public:
        gRGB getRGB(gColor col);
        virtual eSize size() { return m_pixmap->size(); }
        virtual int islocked() { return 0; }
+       
+       void enableSpinner();
+       void disableSpinner();
+       void incrementSpinner();
+       void setSpinner(eRect pos, ePtr<gPixmap> *pic, int len);
 };
 
 #endif