allow access to gfbdc from python to set resolution
[enigma2.git] / lib / gdi / gfbdc.h
index 16260fb202c5349fb5bbe835370caa560f22ef88..aad50f2b5d341d0e34d4490d8ccd1c6b30d3e0ed 100644 (file)
@@ -5,8 +5,13 @@
 #include "gpixmap.h"
 #include "grc.h"
 
+class gFBDC;
+
+SWIG_TEMPLATE_TYPEDEF(ePtr<gFBDC>, gFBDCPtr);
+
 class gFBDC: public gDC
 {
+#ifndef SWIG
        fbClass *fb;
        static gFBDC *instance;
        void exec(gOpcode *opcode);
@@ -16,25 +21,28 @@ class gFBDC: public gDC
        void setPalette();
        gSurface surface, surface_back;
        int m_enable_double_buffering;
+       int m_xres, m_yres;
+#endif
 public:
        void reloadSettings();
        void setAlpha(int alpha);
        void setBrightness(int brightness);
        void setGamma(int gamma);
-       
+
        int getAlpha() { return alpha; }
        int getBrightness() { return brightness; }
        int getGamma() { return gamma; }
-       
+
        int haveDoubleBuffering() { return m_enable_double_buffering; }
-       
+
+       void setResolution(int xres, int yres);
+
        void saveSettings();
-       
+
        gFBDC();
        virtual ~gFBDC();
-       static int getInstance(ePtr<gFBDC> &ptr) { if (!instance) return -1; ptr = instance; return 0; }
+       static SWIG_VOID(int) getInstance(ePtr<gFBDC> &SWIG_NAMED_OUTPUT(ptr)) { if (!instance) return -1; ptr = instance; return 0; }
        int islocked() { return fb->islocked(); }
 };
 
-
 #endif