1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/dfb/settings.cpp
3 // Purpose: wxSystemSettings implementation
4 // Author: Vaclav Slavik
7 // Copyright: (c) 2006 REA Elektronik GmbH
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // For compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
18 #include "wx/settings.h"
21 #include "wx/colour.h"
23 #include "wx/gdicmn.h"
27 wxColour
wxSystemSettingsNative::GetColour(wxSystemColour
WXUNUSED(index
))
29 // overridden by wxSystemSettings::GetColour in wxUniversal
30 return wxColour(0,0,0);
33 wxFont
wxSystemSettingsNative::GetFont(wxSystemFont index
)
37 case wxSYS_OEM_FIXED_FONT
:
38 case wxSYS_ANSI_FIXED_FONT
:
39 case wxSYS_SYSTEM_FIXED_FONT
:
43 wxFONTFAMILY_TELETYPE
,
48 case wxSYS_ANSI_VAR_FONT
:
49 case wxSYS_SYSTEM_FONT
:
50 case wxSYS_DEVICE_DEFAULT_FONT
:
51 case wxSYS_DEFAULT_GUI_FONT
:
61 wxFAIL_MSG( "unknown font type" );
66 int wxSystemSettingsNative::GetMetric(wxSystemMetric index
,
67 wxWindow
* WXUNUSED(win
))
74 wxDisplaySize(&val
, NULL
);
77 wxDisplaySize(NULL
, &val
);
85 bool wxSystemSettingsNative::HasFeature(wxSystemFeature index
)
89 case wxSYS_CAN_ICONIZE_FRAME
:
90 case wxSYS_CAN_DRAW_FRAME_DECORATIONS
:
91 case wxSYS_TABLET_PRESENT
:
95 wxFAIL_MSG( "unknown feature" );