blob: 2db26f251283b8963efddce82e6e736f887a18bd (
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
30
31
32
33
34
|
#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);
void setBorderWidth(int pixel);
void setBorderColor(const gRGB &color);
protected:
ePtr<gPixmap> 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
|