1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/colschem.h
3 // Purpose: wxColourScheme class provides the colours to use for drawing
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_UNIV_COLSCHEM_H_
12 #define _WX_UNIV_COLSCHEM_H_
14 class WXDLLIMPEXP_FWD_CORE wxWindow
;
16 #include "wx/colour.h"
17 #include "wx/checkbox.h"
19 // ----------------------------------------------------------------------------
21 // ----------------------------------------------------------------------------
23 class WXDLLIMPEXP_CORE wxColourScheme
26 // the standard colours
29 // the background colour for a window
32 // the different background and text colours for the control
37 // the label text for the normal and the disabled state
39 CONTROL_TEXT_DISABLED
,
40 CONTROL_TEXT_DISABLED_SHADOW
,
42 // the scrollbar background colour for the normal and pressed states
46 // the background and text colour for the highlighted item
50 // these colours are used for drawing the shadows of 3D objects
56 // the titlebar background colours for the normal and focused states
60 // the titlebar text colours
64 // the default gauge fill colour
67 // desktop background colour (only used by framebuffer ports)
70 // wxFrame's background colour
76 // get a standard colour
77 virtual wxColour
Get(StdColour col
) const = 0;
79 // get the background colour for the given window
80 virtual wxColour
GetBackground(wxWindow
*win
) const = 0;
82 // virtual dtor for any base class
83 virtual ~wxColourScheme() {}
86 // some people just can't spell it correctly :-)
87 typedef wxColourScheme wxColorScheme
;
89 // ----------------------------------------------------------------------------
91 // ----------------------------------------------------------------------------
93 // retrieve the default colour from the theme or the given scheme
94 #define wxSCHEME_COLOUR(scheme, what) scheme->Get(wxColorScheme::what)
95 #define wxTHEME_COLOUR(what) \
96 wxSCHEME_COLOUR(wxTheme::Get()->GetColourScheme(), what)
98 // get the background colour for the window in the current theme
99 #define wxTHEME_BG_COLOUR(win) \
100 wxTheme::Get()->GetColourScheme()->GetBackground(win)
102 #endif // _WX_UNIV_COLSCHEM_H_