]> git.saurik.com Git - wxWidgets.git/blame - include/wx/univ/colschem.h
wxDialogBase only has one ctor, so just do initialization in ctor instead of Init()
[wxWidgets.git] / include / wx / univ / colschem.h
CommitLineData
1e6feb95
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/univ/colschem.h
3// Purpose: wxColourScheme class provides the colours to use for drawing
4// Author: Vadim Zeitlin
5// Modified by:
6// Created: 19.08.00
442b35b5 7// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
65571936 8// Licence: wxWindows licence
1e6feb95
VZ
9///////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_UNIV_COLSCHEM_H_
12#define _WX_UNIV_COLSCHEM_H_
13
b5dbe15d 14class WXDLLIMPEXP_FWD_CORE wxWindow;
1e6feb95
VZ
15
16#include "wx/colour.h"
17#include "wx/checkbox.h"
18
19// ----------------------------------------------------------------------------
20// wxColourScheme
21// ----------------------------------------------------------------------------
22
53a2db12 23class WXDLLIMPEXP_CORE wxColourScheme
1e6feb95
VZ
24{
25public:
26 // the standard colours
27 enum StdColour
28 {
29 // the background colour for a window
30 WINDOW,
31
32 // the different background and text colours for the control
33 CONTROL,
34 CONTROL_PRESSED,
35 CONTROL_CURRENT,
36
37 // the label text for the normal and the disabled state
38 CONTROL_TEXT,
39 CONTROL_TEXT_DISABLED,
40 CONTROL_TEXT_DISABLED_SHADOW,
41
42 // the scrollbar background colour for the normal and pressed states
43 SCROLLBAR,
44 SCROLLBAR_PRESSED,
45
46 // the background and text colour for the highlighted item
47 HIGHLIGHT,
48 HIGHLIGHT_TEXT,
49
50 // these colours are used for drawing the shadows of 3D objects
51 SHADOW_DARK,
52 SHADOW_HIGHLIGHT,
53 SHADOW_IN,
54 SHADOW_OUT,
9c6d8b7c 55
24a23c35
VS
56 // the titlebar background colours for the normal and focused states
57 TITLEBAR,
58 TITLEBAR_ACTIVE,
9c6d8b7c 59
6296744f 60 // the titlebar text colours
24a23c35 61 TITLEBAR_TEXT,
6296744f 62 TITLEBAR_ACTIVE_TEXT,
9c6d8b7c 63
a407ff6a
VZ
64 // the default gauge fill colour
65 GAUGE,
66
6296744f
VS
67 // desktop background colour (only used by framebuffer ports)
68 DESKTOP,
1e6feb95 69
9c6d8b7c
VS
70 // wxFrame's background colour
71 FRAME,
72
1e6feb95
VZ
73 MAX
74 };
75
76 // get a standard colour
77 virtual wxColour Get(StdColour col) const = 0;
78
79 // get the background colour for the given window
80 virtual wxColour GetBackground(wxWindow *win) const = 0;
81
82 // virtual dtor for any base class
d2f3b085 83 virtual ~wxColourScheme() {}
1e6feb95
VZ
84};
85
86// some people just can't spell it correctly :-)
87typedef wxColourScheme wxColorScheme;
88
89// ----------------------------------------------------------------------------
90// macros
91// ----------------------------------------------------------------------------
92
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)
97
98// get the background colour for the window in the current theme
99#define wxTHEME_BG_COLOUR(win) \
100 wxTheme::Get()->GetColourScheme()->GetBackground(win)
101
102#endif // _WX_UNIV_COLSCHEM_H_