experimental scaling for pixmaps, requires more work (surface is likely not an accel...
[enigma2.git] / lib / gui / epixmap.h
index 04196befca002f7aa2ec9c875025d6aa2139c57f..6280fb34f36eb1cca4252b9bd10dc186242d578c 100644 (file)
@@ -1,21 +1,24 @@
-#ifndef __lib_gui_epximap_h
+#ifndef __lib_gui_epixmap_h
 #define __lib_gui_epixmap_h
 
 #include <lib/gui/ewidget.h>
 
 class ePixmap: public eWidget
 {
-       bool m_alphatest;
+       int m_alphatest;
+       int m_scale;
 public:
        ePixmap(eWidget *parent);
-       
+
        void setPixmap(gPixmap *pixmap);
        void setPixmap(ePtr<gPixmap> &pixmap);
        void setPixmapFromFile(const char *filename);
-       void setAlphatest(bool alphatest);
+       void setAlphatest(int alphatest); /* 1 for alphatest, 2 for alphablend */
+       void setScale(int scale);
 protected:
        ePtr<gPixmap> m_pixmap;
        int event(int event, void *data=0, void *data2=0);
+       void checkSize();
 private:
        enum eLabelEvent
        {