blob: 096ef0d80548ad630a1abe54a9f0bb11a91076e0 (
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
35
36
37
38
39
40
41
42
43
44
|
#ifndef __elabel_h
#define __elabel_h
#include <lib/gui/ewidget.h>
#include <lib/gdi/grc.h>
#include <lib/gui/decoration.h>
// Definition Blit Flags
#define BF_ALPHATEST 1
class eLabel: public eDecoWidget
{
protected:
int blitFlags;
int flags;
eTextPara *para;
gColor transparentBackgroundColor;
int align;
void validate( const eSize* s=0 );
int eventHandler(const eWidgetEvent &event);
void redrawWidget(gPainter *target, const eRect &area);
int yOffs;
ePtr<gPixmap> shortcutPixmap; // shortcut pixmap to be displayed right after description
public:
void invalidate();
enum { flagVCenter = 64 };
eLabel(eWidget *parent, int flags=0 /* RS_WRAP */ , int takefocus=0, const char* deco="eLabel" );
~eLabel();
void setBlitFlags( int flags );
void setFlags(int flags);
void removeFlags(int flags);
void setAlign(int align);
void setShortcutPixmap(const eString &shortcut);
int setProperty(const eString &prop, const eString &value);
void setPixmapPosition( const ePoint &p );
eSize getExtend();
ePoint getLeftTop();
ePoint pixmap_position, text_position;
};
#endif
|