X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d63d2c3c6cbbd574dda4f8b00ebe6c661735edd5..34d336d2c8e99b15045cd1ef7d40cbee4c0f18bb:/lib/gui/epixmap.h diff --git a/lib/gui/epixmap.h b/lib/gui/epixmap.h index e69de29b..6280fb34 100644 --- a/lib/gui/epixmap.h +++ b/lib/gui/epixmap.h @@ -0,0 +1,29 @@ +#ifndef __lib_gui_epixmap_h +#define __lib_gui_epixmap_h + +#include + +class ePixmap: public eWidget +{ + int m_alphatest; + int m_scale; +public: + ePixmap(eWidget *parent); + + void setPixmap(gPixmap *pixmap); + void setPixmap(ePtr &pixmap); + void setPixmapFromFile(const char *filename); + void setAlphatest(int alphatest); /* 1 for alphatest, 2 for alphablend */ + void setScale(int scale); +protected: + ePtr m_pixmap; + int event(int event, void *data=0, void *data2=0); + void checkSize(); +private: + enum eLabelEvent + { + evtChangedPixmap = evtUserWidget, + }; +}; + +#endif