X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fgui%2Fepixmap.h;h=2db26f251283b8963efddce82e6e736f887a18bd;hb=43ee1a487f6052811ba3076c3d7d44bf865b8a4d;hp=04196befca002f7aa2ec9c875025d6aa2139c57f;hpb=4404768ce6bb07bf2784da7806444acd462c3a33;p=vuplus_dvbapp diff --git a/lib/gui/epixmap.h b/lib/gui/epixmap.h index 04196be..2db26f2 100644 --- a/lib/gui/epixmap.h +++ b/lib/gui/epixmap.h @@ -1,26 +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 setPixmap(ePtr &pixmap); void setPixmapFromFile(const char *filename); - void setAlphatest(bool alphatest); + 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