1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/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"
27 #include "wx/settings.h"
30 // ----------------------------------------------------------------------------
32 // ----------------------------------------------------------------------------
34 wxSystemScreenType
wxSystemSettings::ms_screen
= wxSYS_SCREEN_NONE
;
36 // ----------------------------------------------------------------------------
37 // ----------------------------------------------------------------------------
39 wxSystemScreenType
wxSystemSettings::GetScreenType()
41 if (ms_screen
== wxSYS_SCREEN_NONE
)
43 // wxUniv will be used on small devices, too.
44 int x
= GetMetric( wxSYS_SCREEN_X
);
46 ms_screen
= wxSYS_SCREEN_DESKTOP
;
49 ms_screen
= wxSYS_SCREEN_SMALL
;
52 ms_screen
= wxSYS_SCREEN_PDA
;
55 ms_screen
= wxSYS_SCREEN_TINY
;
57 // This is probably a bug, but VNC seems to report 0
59 ms_screen
= wxSYS_SCREEN_DESKTOP
;
65 void wxSystemSettings::SetScreenType( wxSystemScreenType screen
)
70 #if WXWIN_COMPATIBILITY_2_4
72 wxColour
wxSystemSettings::GetSystemColour(int index
)
74 return GetColour((wxSystemColour
)index
);
77 wxFont
wxSystemSettings::GetSystemFont(int index
)
79 return GetFont((wxSystemFont
)index
);
82 int wxSystemSettings::GetSystemMetric(int index
)
84 return GetMetric((wxSystemMetric
)index
);
87 #endif // WXWIN_COMPATIBILITY_2_4