X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fgui%2Fepixmap.h;h=9a6e20db616a3a10f439fc2f73fdc872736c85a1;hp=ce1e7a56978757461bfd245a1a6a670796d80b50;hb=d7ab294b7c6543df3eb4d59748e5fb71357ab3b1;hpb=c5f61282a2391235e05ff40bc40a2f0852ea1a9f diff --git a/lib/gui/epixmap.h b/lib/gui/epixmap.h index ce1e7a5..9a6e20d 100644 --- a/lib/gui/epixmap.h +++ b/lib/gui/epixmap.h @@ -1,25 +1,34 @@ -#ifndef __lib_gui_epximap_h +#ifndef __lib_gui_epixmap_h #define __lib_gui_epixmap_h #include class ePixmap: public eWidget { - bool m_alphatest; + int m_alphatest; + int m_scale; public: ePixmap(eWidget *parent); - + void setPixmap(gPixmap *pixmap); - void setPixmapFromFile(const char *filename); - void setAlphatest(bool alphatest); + void setPixmap(ePtr &pixmap); + void setPixmapFromFile(const char *filename); + void setAlphatest(int alphatest); /* 1 for alphatest, 2 for alphablend */ + void setScale(int scale); + void setBorderWidth(int pixel); + void setBorderColor(const gRGB &color); protected: - ePtr m_pixmap; - int event(int event, void *data=0, void *data2=0); + ePtr m_pixmap; + int event(int event, void *data=0, void *data2=0); + void checkSize(); private: enum eLabelEvent - { - evtChangedPixmap = evtUserWidget, - }; + { + evtChangedPixmap = evtUserWidget, + }; + bool m_have_border_color; + int m_border_width; + gRGB m_border_color; }; #endif