1 /////////////////////////////////////////////////////////////////////////////
2 // Name: common/settcmn.cpp
3 // Purpose: common (to all ports) wxWindow functions
4 // Author: Robert Roebling
6 // Copyright: (c) wxWidgets team
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 // ============================================================================
12 // ============================================================================
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
18 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
19 #pragma implementation "settings.h"
22 // For compilers that support precompilation, includes "wx.h".
23 #include "wx/wxprec.h"
32 #include "wx/settings.h"
35 // ----------------------------------------------------------------------------
37 // ----------------------------------------------------------------------------
39 wxSystemScreenType
wxSystemSettings::ms_screen
= wxSYS_SCREEN_NONE
;
41 // ----------------------------------------------------------------------------
42 // ----------------------------------------------------------------------------
44 wxSystemScreenType
wxSystemSettings::GetScreenType()
46 if (ms_screen
== wxSYS_SCREEN_NONE
)
48 // wxUniv will be used on small devices, too.
49 int x
= GetMetric( wxSYS_SCREEN_X
);
51 ms_screen
= wxSYS_SCREEN_DESKTOP
;
54 ms_screen
= wxSYS_SCREEN_SMALL
;
57 ms_screen
= wxSYS_SCREEN_PDA
;
60 ms_screen
= wxSYS_SCREEN_TINY
;
62 // This is probably a bug, but VNC seems to report 0
64 ms_screen
= wxSYS_SCREEN_DESKTOP
;
70 void wxSystemSettings::SetScreenType( wxSystemScreenType screen
)
75 #if WXWIN_COMPATIBILITY_2_4
77 wxColour
wxSystemSettings::GetSystemColour(int index
)
79 return GetColour((wxSystemColour
)index
);
82 wxFont
wxSystemSettings::GetSystemFont(int index
)
84 return GetFont((wxSystemFont
)index
);
87 int wxSystemSettings::GetSystemMetric(int index
)
89 return GetMetric((wxSystemMetric
)index
);
92 #endif // WXWIN_COMPATIBILITY_2_4