1 #ifndef __lib_gui_ewindowstyleskinned_h
2 #define __lib_gui_ewindowstyleskinned_h
4 #include <lib/gui/ewindowstyle.h>
6 class eWindowStyleSkinned: public eWindowStyle
8 DECLARE_REF(eWindowStyleSkinned);
10 eWindowStyleSkinned();
12 void handleNewSize(eWindow *wnd, eSize &size, eSize &offset);
13 void paintWindowDecoration(eWindow *wnd, gPainter &painter, const std::string &title);
14 void paintBackground(gPainter &painter, const ePoint &offset, const eSize &size);
15 void drawFrame(gPainter &painter, const eRect &frame, int what);
16 RESULT getFont(int what, ePtr<gFont> &font);
18 void setStyle(gPainter &painter, int what);
38 bpBottomRight = 0x100,
55 void setPixmap(int bs, int bp, gPixmap &pixmap);
62 colListboxSelectedBackground,
63 colListboxSelectedForeground,
64 colListboxMarkedBackground,
65 colListboxMarkedForeground,
66 colListboxMarkedAndSelectedBackground,
67 colListboxMarkedAndSelectedForeground,
69 colWindowTitleForeground,
70 colWindowTitleBackground,
74 void setColor(int what, const gRGB &back);
76 void setTitleOffset(const eSize &offset);
77 void setTitleFont(gFont *fnt);
82 ePtr<gPixmap> m_pixmap[9];
83 int m_border_top, m_border_left, m_border_right, m_border_bottom;
86 borderSet m_border[bsMax];
93 void drawBorder(gPainter &painter, const eRect &size, struct borderSet &border, int where);