]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/settings.h
1. regenerated the makefiles to include menucmn.cpp
[wxWidgets.git] / include / wx / msw / settings.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: settings.h
3 // Purpose: wxSystemSettings class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_SETTINGS_H_
13 #define _WX_SETTINGS_H_
14
15 #ifdef __GNUG__
16 #pragma interface "settings.h"
17 #endif
18
19 #include "wx/setup.h"
20 #include "wx/colour.h"
21 #include "wx/font.h"
22
23 #define wxSYS_WHITE_BRUSH 0
24 #define wxSYS_LTGRAY_BRUSH 1
25 #define wxSYS_GRAY_BRUSH 2
26 #define wxSYS_DKGRAY_BRUSH 3
27 #define wxSYS_BLACK_BRUSH 4
28 #define wxSYS_NULL_BRUSH 5
29 #define wxSYS_HOLLOW_BRUSH wxSYS_NULL_BRUSH
30 #define wxSYS_WHITE_PEN 6
31 #define wxSYS_BLACK_PEN 7
32 #define wxSYS_NULL_PEN 8
33 #define wxSYS_OEM_FIXED_FONT 10
34 #define wxSYS_ANSI_FIXED_FONT 11
35 #define wxSYS_ANSI_VAR_FONT 12
36 #define wxSYS_SYSTEM_FONT 13
37 #define wxSYS_DEVICE_DEFAULT_FONT 14
38 #define wxSYS_DEFAULT_PALETTE 15
39 #define wxSYS_SYSTEM_FIXED_FONT 16 // Obsolete
40 #define wxSYS_DEFAULT_GUI_FONT 17
41
42 #define wxSYS_COLOUR_SCROLLBAR 0
43 #define wxSYS_COLOUR_BACKGROUND 1
44 #define wxSYS_COLOUR_ACTIVECAPTION 2
45 #define wxSYS_COLOUR_INACTIVECAPTION 3
46 #define wxSYS_COLOUR_MENU 4
47 #define wxSYS_COLOUR_WINDOW 5
48 #define wxSYS_COLOUR_WINDOWFRAME 6
49 #define wxSYS_COLOUR_MENUTEXT 7
50 #define wxSYS_COLOUR_WINDOWTEXT 8
51 #define wxSYS_COLOUR_CAPTIONTEXT 9
52 #define wxSYS_COLOUR_ACTIVEBORDER 10
53 #define wxSYS_COLOUR_INACTIVEBORDER 11
54 #define wxSYS_COLOUR_APPWORKSPACE 12
55 #define wxSYS_COLOUR_HIGHLIGHT 13
56 #define wxSYS_COLOUR_HIGHLIGHTTEXT 14
57 #define wxSYS_COLOUR_BTNFACE 15
58 #define wxSYS_COLOUR_BTNSHADOW 16
59 #define wxSYS_COLOUR_GRAYTEXT 17
60 #define wxSYS_COLOUR_BTNTEXT 18
61 #define wxSYS_COLOUR_INACTIVECAPTIONTEXT 19
62 #define wxSYS_COLOUR_BTNHIGHLIGHT 20
63
64 #define wxSYS_COLOUR_3DDKSHADOW 21
65 #define wxSYS_COLOUR_3DLIGHT 22
66 #define wxSYS_COLOUR_INFOTEXT 23
67 #define wxSYS_COLOUR_INFOBK 24
68
69 #define wxSYS_COLOUR_DESKTOP wxSYS_COLOUR_BACKGROUND
70 #define wxSYS_COLOUR_3DFACE wxSYS_COLOUR_BTNFACE
71 #define wxSYS_COLOUR_3DSHADOW wxSYS_COLOUR_BTNSHADOW
72 #define wxSYS_COLOUR_3DHIGHLIGHT wxSYS_COLOUR_BTNHIGHLIGHT
73 #define wxSYS_COLOUR_3DHILIGHT wxSYS_COLOUR_BTNHIGHLIGHT
74 #define wxSYS_COLOUR_BTNHILIGHT wxSYS_COLOUR_BTNHIGHLIGHT
75
76 // Metrics
77 #define wxSYS_MOUSE_BUTTONS 1
78 #define wxSYS_BORDER_X 2
79 #define wxSYS_BORDER_Y 3
80 #define wxSYS_CURSOR_X 4
81 #define wxSYS_CURSOR_Y 5
82 #define wxSYS_DCLICK_X 6
83 #define wxSYS_DCLICK_Y 7
84 #define wxSYS_DRAG_X 8
85 #define wxSYS_DRAG_Y 9
86 #define wxSYS_EDGE_X 10
87 #define wxSYS_EDGE_Y 11
88 #define wxSYS_HSCROLL_ARROW_X 12
89 #define wxSYS_HSCROLL_ARROW_Y 13
90 #define wxSYS_HTHUMB_X 14
91 #define wxSYS_ICON_X 15
92 #define wxSYS_ICON_Y 16
93 #define wxSYS_ICONSPACING_X 17
94 #define wxSYS_ICONSPACING_Y 18
95 #define wxSYS_WINDOWMIN_X 19
96 #define wxSYS_WINDOWMIN_Y 20
97 #define wxSYS_SCREEN_X 21
98 #define wxSYS_SCREEN_Y 22
99 #define wxSYS_FRAMESIZE_X 23
100 #define wxSYS_FRAMESIZE_Y 24
101 #define wxSYS_SMALLICON_X 25
102 #define wxSYS_SMALLICON_Y 26
103 #define wxSYS_HSCROLL_Y 27
104 #define wxSYS_VSCROLL_X 28
105 #define wxSYS_VSCROLL_ARROW_X 29
106 #define wxSYS_VSCROLL_ARROW_Y 30
107 #define wxSYS_VTHUMB_Y 31
108 #define wxSYS_CAPTION_Y 32
109 #define wxSYS_MENU_Y 33
110 #define wxSYS_NETWORK_PRESENT 34
111 #define wxSYS_PENWINDOWS_PRESENT 35
112 #define wxSYS_SHOW_SOUNDS 36
113 #define wxSYS_SWAP_BUTTONS 37
114
115 class WXDLLEXPORT wxSystemSettings: public wxObject
116 {
117 public:
118 inline wxSystemSettings(void) {}
119
120 // Get a system colour
121 static wxColour GetSystemColour(int index);
122
123 // Get a system font
124 static wxFont GetSystemFont(int index);
125
126 // Get a system metric, e.g. scrollbar size
127 static int GetSystemMetric(int index);
128 };
129
130 #endif
131 // _WX_SETTINGS_H_