1 /////////////////////////////////////////////////////////////////////////////
2 // Name: common/settcmn.cpp
3 // Purpose: common (to all ports) wxWindow functions
4 // Author: Robert Roebling
6 // Copyright: (c) wxWindows team
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 // ============================================================================
12 // ============================================================================
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
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
)
47 #ifndef __WXUNIVERSAL__
49 // As a start, all GUI are desktops.
50 ms_screen
= wxSYS_SCREEN_DESKTOP
;
54 // wxUniv will be used on small devices, too.
55 int x
= GetMetric( wxSYS_SCREEN_X
);
57 ms_screen
= wxSYS_SCREEN_DESKTOP
;
60 ms_screen
= wxSYS_SCREEN_SMALL
;
63 ms_screen
= wxSYS_SCREEN_PDA
;
66 ms_screen
= wxSYS_SCREEN_TINY
;
73 void wxSystemSettings::SetScreenType( wxSystemScreenType screen
)