X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fgui%2Fepixmap.h;h=2db26f251283b8963efddce82e6e736f887a18bd;hb=99e6ea49ff22e993eecce31af689da1b3b85157c;hp=220db1ffc527b6eaede74848446ab6def4841337;hpb=44433f650cd3e5f9f66253b74d194fcb01578595;p=vuplus_dvbapp diff --git a/lib/gui/epixmap.h b/lib/gui/epixmap.h index 220db1f..2db26f2 100644 --- a/lib/gui/epixmap.h +++ b/lib/gui/epixmap.h @@ -1,23 +1,34 @@ -#ifndef __lib_gui_epximap_h +#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); + void setBorderWidth(int pixel); + void setBorderColor(const gRGB &color); protected: ePtr m_pixmap; int event(int event, void *data=0, void *data2=0); + void checkSize(); private: enum eLabelEvent { evtChangedPixmap = evtUserWidget, }; + bool m_have_border_color; + int m_border_width; + gRGB m_border_color; }; #endif