X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/44433f650cd3e5f9f66253b74d194fcb01578595..1109344c9409572f9829e46971b71a7fe1d3c8cc:/lib/gui/ewindowstyleskinned.h diff --git a/lib/gui/ewindowstyleskinned.h b/lib/gui/ewindowstyleskinned.h index 79557386..2a30f178 100644 --- a/lib/gui/ewindowstyleskinned.h +++ b/lib/gui/ewindowstyleskinned.h @@ -8,12 +8,14 @@ class eWindowStyleSkinned: public eWindowStyle DECLARE_REF(eWindowStyleSkinned); public: eWindowStyleSkinned(); +#ifndef SWIG void handleNewSize(eWindow *wnd, eSize &size, eSize &offset); void paintWindowDecoration(eWindow *wnd, gPainter &painter, const std::string &title); void paintBackground(gPainter &painter, const ePoint &offset, const eSize &size); - void setStyle(gPainter &painter, int what); void drawFrame(gPainter &painter, const eRect &frame, int what); RESULT getFont(int what, ePtr &font); +#endif + void setStyle(gPainter &painter, int what); enum { bsWindow, @@ -50,9 +52,30 @@ public: bpiBottomRight = 8, }; + void setPixmap(int bs, int bp, ePtr &pixmap); void setPixmap(int bs, int bp, gPixmap &pixmap); - void setDefaultBackgroundColor(const gRGB &back); + enum { + colBackground, + colLabelForeground, + colListboxBackground, + colListboxForeground, + colListboxSelectedBackground, + colListboxSelectedForeground, + colListboxMarkedBackground, + colListboxMarkedForeground, + colListboxMarkedAndSelectedBackground, + colListboxMarkedAndSelectedForeground, + + colWindowTitleForeground, + colWindowTitleBackground, + colMax + }; + + void setColor(int what, const gRGB &back); + + void setTitleOffset(const eSize &offset); + void setTitleFont(gFont *fnt); private: struct borderSet @@ -63,7 +86,10 @@ private: borderSet m_border[bsMax]; - gRGB m_background_color; + gRGB m_color[colMax]; + + eSize m_title_offset; + ePtr m_fnt; void drawBorder(gPainter &painter, const eRect &size, struct borderSet &border, int where); };