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 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
9 // Licence: wxWindows license
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_UNIV_COLSCHEM_H_
13 #define _WX_UNIV_COLSCHEM_H_
16 #pragma interface "colschem.h"
19 class WXDLLEXPORT wxWindow
;
21 #include "wx/colour.h"
22 #include "wx/checkbox.h"
24 // ----------------------------------------------------------------------------
26 // ----------------------------------------------------------------------------
28 class WXDLLEXPORT wxColourScheme
31 // the standard colours
34 // the background colour for a window
37 // the different background and text colours for the control
42 // the label text for the normal and the disabled state
44 CONTROL_TEXT_DISABLED
,
45 CONTROL_TEXT_DISABLED_SHADOW
,
47 // the scrollbar background colour for the normal and pressed states
51 // the background and text colour for the highlighted item
55 // these colours are used for drawing the shadows of 3D objects
64 // get a standard colour
65 virtual wxColour
Get(StdColour col
) const = 0;
67 // get the background colour for the given window
68 virtual wxColour
GetBackground(wxWindow
*win
) const = 0;
70 // virtual dtor for any base class
71 virtual ~wxColourScheme();
74 // some people just can't spell it correctly :-)
75 typedef wxColourScheme wxColorScheme
;
77 // ----------------------------------------------------------------------------
79 // ----------------------------------------------------------------------------
81 // retrieve the default colour from the theme or the given scheme
82 #define wxSCHEME_COLOUR(scheme, what) scheme->Get(wxColorScheme::what)
83 #define wxTHEME_COLOUR(what) \
84 wxSCHEME_COLOUR(wxTheme::Get()->GetColourScheme(), what)
86 // get the background colour for the window in the current theme
87 #define wxTHEME_BG_COLOUR(win) \
88 wxTheme::Get()->GetColourScheme()->GetBackground(win)
90 #endif // _WX_UNIV_COLSCHEM_H_