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"
26 #include "wx/dfb/private.h"
29 wxColour
wxSystemSettingsNative::GetColour(wxSystemColour
WXUNUSED(index
))
31 // not implemented, the mean is in wxUniversal
32 return wxColour(0,0,0);
35 wxFont
wxSystemSettingsNative::GetFont(wxSystemFont index
)
39 case wxSYS_OEM_FIXED_FONT
:
40 case wxSYS_ANSI_FIXED_FONT
:
41 case wxSYS_SYSTEM_FIXED_FONT
:
45 wxFONTFAMILY_TELETYPE
,
50 case wxSYS_ANSI_VAR_FONT
:
51 case wxSYS_SYSTEM_FONT
:
52 case wxSYS_DEVICE_DEFAULT_FONT
:
53 case wxSYS_DEFAULT_GUI_FONT
:
63 wxFAIL_MSG( _T("unknown font type") );
68 int wxSystemSettingsNative::GetMetric(wxSystemMetric index
,
69 wxWindow
* WXUNUSED(win
))
76 wxDisplaySize(&val
, NULL
);
79 wxDisplaySize(NULL
, &val
);
90 wxFAIL_MSG( _T("unsupported metric") );
95 bool wxSystemSettingsNative::HasFeature(wxSystemFeature index
)
99 case wxSYS_CAN_ICONIZE_FRAME
:
100 case wxSYS_CAN_DRAW_FRAME_DECORATIONS
:
101 case wxSYS_TABLET_PRESENT
:
105 wxFAIL_MSG( _T("unknown feature") );