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 license
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
)
49 // As a start, all GUI are desktops.
50 ms_screen
= wxSYS_SCREEN_DESKTOP
;
54 // wxUniv will be used on small devices, too.
57 wxGetDisplaySize( &x
, &y
);
59 ms_screen
= wxSYS_SCREEN_DESKTOP
;
62 ms_screen
= wxSYS_SCREEN_SMALL
;
65 ms_screen
= wxSYS_SCREEN_PDA
;
68 ms_screen
= wxSYS_SCREEN_TINY
;
75 void wxSystemSettings::SetScreenType( wxSystemScreenType screen
)