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, ePtr<gPixmap> &pixmap);
56 void setPixmap(int bs, int bp, gPixmap &pixmap);
63 colListboxSelectedBackground,
64 colListboxSelectedForeground,
65 colListboxMarkedBackground,
66 colListboxMarkedForeground,
67 colListboxMarkedAndSelectedBackground,
68 colListboxMarkedAndSelectedForeground,
70 colWindowTitleForeground,
71 colWindowTitleBackground,
75 void setColor(int what, const gRGB &back);
77 void setTitleOffset(const eSize &offset);
78 void setTitleFont(gFont *fnt);
83 ePtr<gPixmap> m_pixmap[9];
84 int m_border_top, m_border_left, m_border_right, m_border_bottom;
87 borderSet m_border[bsMax];
94 void drawBorder(gPainter &painter, const eRect &size, struct borderSet &border, int where);