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 // For compilers that support precompilation, includes "wx.h".
19 #include "wx/wxprec.h"
28 #include "wx/settings.h"
31 // ----------------------------------------------------------------------------
33 // ----------------------------------------------------------------------------
35 wxSystemScreenType
wxSystemSettings::ms_screen
= wxSYS_SCREEN_NONE
;
37 // ----------------------------------------------------------------------------
38 // ----------------------------------------------------------------------------
40 wxSystemScreenType
wxSystemSettings::GetScreenType()
42 if (ms_screen
== wxSYS_SCREEN_NONE
)
44 // wxUniv will be used on small devices, too.
45 int x
= GetMetric( wxSYS_SCREEN_X
);
47 ms_screen
= wxSYS_SCREEN_DESKTOP
;
50 ms_screen
= wxSYS_SCREEN_SMALL
;
53 ms_screen
= wxSYS_SCREEN_PDA
;
56 ms_screen
= wxSYS_SCREEN_TINY
;
58 // This is probably a bug, but VNC seems to report 0
60 ms_screen
= wxSYS_SCREEN_DESKTOP
;
66 void wxSystemSettings::SetScreenType( wxSystemScreenType screen
)
71 #if WXWIN_COMPATIBILITY_2_4
73 wxColour
wxSystemSettings::GetSystemColour(int index
)
75 return GetColour((wxSystemColour
)index
);
78 wxFont
wxSystemSettings::GetSystemFont(int index
)
80 return GetFont((wxSystemFont
)index
);
83 int wxSystemSettings::GetSystemMetric(int index
)
85 return GetMetric((wxSystemMetric
)index
);
88 #endif // WXWIN_COMPATIBILITY_2_4