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
)
25 // Overridden by wxSystemSettings::GetColour in wxUniversal
26 // to do the Right Thing
30 wxFont
wxSystemSettingsNative::GetFont(wxSystemFont index
)
34 case wxSYS_SYSTEM_FIXED_FONT
:
36 return wxFont(12, wxMODERN
, wxNORMAL
, wxNORMAL
, FALSE
);
39 case wxSYS_DEVICE_DEFAULT_FONT
:
40 case wxSYS_SYSTEM_FONT
:
41 case wxSYS_DEFAULT_GUI_FONT
:
44 return wxFont(12, wxSWISS
, wxNORMAL
, wxNORMAL
, FALSE
);
52 // Get a system metric, e.g. scrollbar size
53 int wxSystemSettingsNative::GetMetric(wxSystemMetric index
)
57 case wxSYS_MOUSE_BUTTONS
:
90 case wxSYS_HSCROLL_ARROW_X
:
93 case wxSYS_HSCROLL_ARROW_Y
:
105 case wxSYS_ICONSPACING_X
:
108 case wxSYS_ICONSPACING_Y
:
111 case wxSYS_WINDOWMIN_X
:
114 case wxSYS_WINDOWMIN_Y
:
123 case wxSYS_FRAMESIZE_X
:
126 case wxSYS_FRAMESIZE_Y
:
129 case wxSYS_SMALLICON_X
:
132 case wxSYS_SMALLICON_Y
:
135 case wxSYS_HSCROLL_Y
:
138 case wxSYS_VSCROLL_X
:
141 case wxSYS_VSCROLL_ARROW_X
:
144 case wxSYS_VSCROLL_ARROW_Y
:
150 case wxSYS_CAPTION_Y
:
156 case wxSYS_NETWORK_PRESENT
:
159 case wxSYS_PENWINDOWS_PRESENT
:
162 case wxSYS_SHOW_SOUNDS
:
165 case wxSYS_SWAP_BUTTONS
:
173 bool wxSystemSettingsNative::HasFeature(wxSystemFeature index
)
177 case wxSYS_CAN_ICONIZE_FRAME
:
178 case wxSYS_CAN_DRAW_FRAME_DECORATIONS
: