blob: 6280fb34f36eb1cca4252b9bd10dc186242d578c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef __lib_gui_epixmap_h
#define __lib_gui_epixmap_h
#include <lib/gui/ewidget.h>
class ePixmap: public eWidget
{
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(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
{
evtChangedPixmap = evtUserWidget,
};
};
#endif
|