trunk 20080912
[gitenigma.git] / include / lib / gui / decoration.h
blob7116b7fb75fb5a9acc75016045737a72b9498c08
1 #ifndef __lib_gui_decoration_h
2 #define __lib_gui_decoration_h
4 #include <lib/base/erect.h>
5 #include <lib/base/estring.h>
6 class gPixmap;
7 class gPainter;
9 class eDecoration
11 gPixmap *iTopLeft, *iTop,
12 *iTopRight, *iLeft, *iRight,
13 *iBottomLeft, *iBottom, *iBottomRight;
15 eString basename;
16 public:
17 operator bool() { return iTopLeft || iTop || iTopRight || iLeft || iRight || iBottomLeft || iBottom || iBottomRight; }
19 eDecoration();
21 bool load(const eString& basename);
23 void drawDecoration(gPainter *target, ePoint size );
24 int borderTop, borderLeft, borderBottom, borderRight;
27 #endif