1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // TODO: these settings should probably be configurable from some central or
13 // per-user file, which can be edited using a Windows-control-panel clone.
14 // Also they should be documented better. Some are very MS Windows-ish.
17 #pragma implementation "settings.h"
20 #include "wx/settings.h"
21 #include "wx/gdicmn.h"
23 wxColour
wxSystemSettingsNative::GetColour(wxSystemColour index
)
27 case wxSYS_COLOUR_APPWORKSPACE
:
28 return wxColour( 0xc0c0c0 );
34 // Overridden mostly by wxSystemSettings::GetColour in wxUniversal
38 wxFont
wxSystemSettingsNative::GetFont(wxSystemFont index
)
42 case wxSYS_SYSTEM_FIXED_FONT
:
44 return wxFont(12, wxMODERN
, wxNORMAL
, wxNORMAL
, FALSE
);
47 case wxSYS_DEVICE_DEFAULT_FONT
:
48 case wxSYS_SYSTEM_FONT
:
49 case wxSYS_DEFAULT_GUI_FONT
:
52 return wxFont(12, wxSWISS
, wxNORMAL
, wxNORMAL
, FALSE
);
60 // Get a system metric, e.g. scrollbar size
61 int wxSystemSettingsNative::GetMetric(wxSystemMetric index
)
65 case wxSYS_MOUSE_BUTTONS
:
98 case wxSYS_HSCROLL_ARROW_X
:
101 case wxSYS_HSCROLL_ARROW_Y
:
113 case wxSYS_ICONSPACING_X
:
116 case wxSYS_ICONSPACING_Y
:
119 case wxSYS_WINDOWMIN_X
:
122 case wxSYS_WINDOWMIN_Y
:
131 case wxSYS_FRAMESIZE_X
:
134 case wxSYS_FRAMESIZE_Y
:
137 case wxSYS_SMALLICON_X
:
140 case wxSYS_SMALLICON_Y
:
143 case wxSYS_HSCROLL_Y
:
146 case wxSYS_VSCROLL_X
:
149 case wxSYS_VSCROLL_ARROW_X
:
152 case wxSYS_VSCROLL_ARROW_Y
:
158 case wxSYS_CAPTION_Y
:
164 case wxSYS_NETWORK_PRESENT
:
167 case wxSYS_PENWINDOWS_PRESENT
:
170 case wxSYS_SHOW_SOUNDS
:
173 case wxSYS_SWAP_BUTTONS
:
181 bool wxSystemSettingsNative::HasFeature(wxSystemFeature index
)
185 case wxSYS_CAN_ICONIZE_FRAME
:
186 case wxSYS_CAN_DRAW_FRAME_DECORATIONS
: