1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/colschem.h
3 // Purpose: wxColourScheme class provides the colours to use for drawing
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_UNIV_COLSCHEM_H_
13 #define _WX_UNIV_COLSCHEM_H_
15 class WXDLLEXPORT wxWindow
;
17 #include "wx/colour.h"
18 #include "wx/checkbox.h"
20 // ----------------------------------------------------------------------------
22 // ----------------------------------------------------------------------------
24 class WXDLLEXPORT wxColourScheme
27 // the standard colours
30 // the background colour for a window
33 // the different background and text colours for the control
38 // the label text for the normal and the disabled state
40 CONTROL_TEXT_DISABLED
,
41 CONTROL_TEXT_DISABLED_SHADOW
,
43 // the scrollbar background colour for the normal and pressed states
47 // the background and text colour for the highlighted item
51 // these colours are used for drawing the shadows of 3D objects
57 // the titlebar background colours for the normal and focused states
61 // the titlebar text colours
65 // the default gauge fill colour
68 // desktop background colour (only used by framebuffer ports)
71 // wxFrame's background colour
77 // get a standard colour
78 virtual wxColour
Get(StdColour col
) const = 0;
80 // get the background colour for the given window
81 virtual wxColour
GetBackground(wxWindow
*win
) const = 0;
83 // virtual dtor for any base class
84 virtual ~wxColourScheme();
87 // some people just can't spell it correctly :-)
88 typedef wxColourScheme wxColorScheme
;
90 // ----------------------------------------------------------------------------
92 // ----------------------------------------------------------------------------
94 // retrieve the default colour from the theme or the given scheme
95 #define wxSCHEME_COLOUR(scheme, what) scheme->Get(wxColorScheme::what)
96 #define wxTHEME_COLOUR(what) \
97 wxSCHEME_COLOUR(wxTheme::Get()->GetColourScheme(), what)
99 // get the background colour for the window in the current theme
100 #define wxTHEME_BG_COLOUR(win) \
101 wxTheme::Get()->GetColourScheme()->GetBackground(win)
103 #endif // _WX_UNIV_COLSCHEM_H_