]> git.saurik.com Git - wxWidgets.git/blame - include/wx/univ/colschem.h
added wxEncodingToCodepage() and implemented it properly (using in32 API instead...
[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
7// RCS-ID: $Id$
442b35b5 8// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
1e6feb95
VZ
9// Licence: wxWindows license
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_UNIV_COLSCHEM_H_
13#define _WX_UNIV_COLSCHEM_H_
14
15#ifdef __GNUG__
16 #pragma interface "colschem.h"
17#endif
18
19class WXDLLEXPORT wxWindow;
20
21#include "wx/colour.h"
22#include "wx/checkbox.h"
23
24// ----------------------------------------------------------------------------
25// wxColourScheme
26// ----------------------------------------------------------------------------
27
28class WXDLLEXPORT wxColourScheme
29{
30public:
31 // the standard colours
32 enum StdColour
33 {
34 // the background colour for a window
35 WINDOW,
36
37 // the different background and text colours for the control
38 CONTROL,
39 CONTROL_PRESSED,
40 CONTROL_CURRENT,
41
42 // the label text for the normal and the disabled state
43 CONTROL_TEXT,
44 CONTROL_TEXT_DISABLED,
45 CONTROL_TEXT_DISABLED_SHADOW,
46
47 // the scrollbar background colour for the normal and pressed states
48 SCROLLBAR,
49 SCROLLBAR_PRESSED,
50
51 // the background and text colour for the highlighted item
52 HIGHLIGHT,
53 HIGHLIGHT_TEXT,
54
55 // these colours are used for drawing the shadows of 3D objects
56 SHADOW_DARK,
57 SHADOW_HIGHLIGHT,
58 SHADOW_IN,
59 SHADOW_OUT,
24a23c35
VS
60
61 // the titlebar background colours for the normal and focused states
62 TITLEBAR,
63 TITLEBAR_ACTIVE,
6296744f
VS
64
65 // the titlebar text colours
24a23c35 66 TITLEBAR_TEXT,
6296744f
VS
67 TITLEBAR_ACTIVE_TEXT,
68
69 // desktop background colour (only used by framebuffer ports)
70 DESKTOP,
1e6feb95
VZ
71
72 MAX
73 };
74
75 // get a standard colour
76 virtual wxColour Get(StdColour col) const = 0;
77
78 // get the background colour for the given window
79 virtual wxColour GetBackground(wxWindow *win) const = 0;
80
81 // virtual dtor for any base class
82 virtual ~wxColourScheme();
83};
84
85// some people just can't spell it correctly :-)
86typedef wxColourScheme wxColorScheme;
87
88// ----------------------------------------------------------------------------
89// macros
90// ----------------------------------------------------------------------------
91
92// retrieve the default colour from the theme or the given scheme
93#define wxSCHEME_COLOUR(scheme, what) scheme->Get(wxColorScheme::what)
94#define wxTHEME_COLOUR(what) \
95 wxSCHEME_COLOUR(wxTheme::Get()->GetColourScheme(), what)
96
97// get the background colour for the window in the current theme
98#define wxTHEME_BG_COLOUR(win) \
99 wxTheme::Get()->GetColourScheme()->GetBackground(win)
100
101#endif // _WX_UNIV_COLSCHEM_H_