]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/settings.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: palmos/settings.cpp
3 // Purpose: wxSystemSettingsNative implementation for Palm OS
4 // Author: William Osborne
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
29 #include "wx/gdicmn.h"
32 #include "wx/settings.h"
34 #ifndef SPI_GETFLATMENU
35 #define SPI_GETFLATMENU 0x1022
38 #include "wx/module.h"
39 #include "wx/fontutil.h"
41 // ----------------------------------------------------------------------------
43 // ----------------------------------------------------------------------------
45 // ----------------------------------------------------------------------------
47 // ----------------------------------------------------------------------------
49 // the font returned by GetFont(wxSYS_DEFAULT_GUI_FONT): it is created when
50 // GetFont() is called for the first time and deleted by wxSystemSettingsModule
51 static wxFont
*gs_fontDefault
= NULL
;
53 // ============================================================================
55 // ============================================================================
57 // ----------------------------------------------------------------------------
58 // wxSystemSettingsNative
59 // ----------------------------------------------------------------------------
61 // ----------------------------------------------------------------------------
63 // ----------------------------------------------------------------------------
65 wxColour
wxSystemSettingsNative::GetColour(wxSystemColour index
)
70 // ----------------------------------------------------------------------------
72 // ----------------------------------------------------------------------------
74 wxFont
wxCreateFontFromStockObject(int index
)
80 wxFont
wxSystemSettingsNative::GetFont(wxSystemFont index
)
86 // ----------------------------------------------------------------------------
87 // system metrics/features
88 // ----------------------------------------------------------------------------
90 // Get a system metric, e.g. scrollbar size
91 int wxSystemSettingsNative::GetMetric(wxSystemMetric index
)
96 bool wxSystemSettingsNative::HasFeature(wxSystemFeature index
)
101 // ----------------------------------------------------------------------------
102 // function from wx/msw/wrapcctl.h: there is really no other place for it...
103 // ----------------------------------------------------------------------------
105 #if wxUSE_LISTCTRL || wxUSE_TREECTRL
107 extern wxFont
wxGetCCDefaultFont()
113 #endif // wxUSE_LISTCTRL || wxUSE_TREECTRL