1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/settings.cpp
3 // Purpose: wxSystemSettingsNative implementation for Palm OS
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by: Wlodzimierz ABX Skiba - native implementation
8 // Copyright: (c) William Osborne, Wlodzimierz Skiba
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
27 #include "wx/settings.h"
31 #include "wx/gdicmn.h"
34 #include "wx/module.h"
35 #include "wx/fontutil.h"
39 // ============================================================================
41 // ============================================================================
43 // ----------------------------------------------------------------------------
44 // wxSystemSettingsNative
45 // ----------------------------------------------------------------------------
47 // ----------------------------------------------------------------------------
49 // ----------------------------------------------------------------------------
51 wxColour
wxSystemSettingsNative::GetColour(wxSystemColour index
)
53 // point to unused entry to mark lack of assignment
54 UIColorTableEntries which
= UILastColorTableEntry
;
58 case wxSYS_COLOUR_BACKGROUND
:
59 case wxSYS_COLOUR_WINDOW
:
62 case wxSYS_COLOUR_WINDOWFRAME
:
63 case wxSYS_COLOUR_ACTIVECAPTION
:
66 case wxSYS_COLOUR_SCROLLBAR
:
70 case wxSYS_COLOUR_INACTIVECAPTION:
71 case wxSYS_COLOUR_MENU:
72 case wxSYS_COLOUR_MENUTEXT:
73 case wxSYS_COLOUR_WINDOWTEXT:
74 case wxSYS_COLOUR_CAPTIONTEXT:
75 case wxSYS_COLOUR_ACTIVEBORDER:
76 case wxSYS_COLOUR_INACTIVEBORDER:
77 case wxSYS_COLOUR_APPWORKSPACE:
78 case wxSYS_COLOUR_HIGHLIGHT:
79 case wxSYS_COLOUR_HIGHLIGHTTEXT:
80 case wxSYS_COLOUR_BTNFACE:
81 case wxSYS_COLOUR_BTNSHADOW:
82 case wxSYS_COLOUR_GRAYTEXT:
83 case wxSYS_COLOUR_BTNTEXT:
84 case wxSYS_COLOUR_INACTIVECAPTIONTEXT:
85 case wxSYS_COLOUR_BTNHIGHLIGHT:
86 case wxSYS_COLOUR_3DDKSHADOW:
87 case wxSYS_COLOUR_3DLIGHT:
88 case wxSYS_COLOUR_INFOTEXT:
89 case wxSYS_COLOUR_INFOBK:
90 case wxSYS_COLOUR_LISTBOX:
91 case wxSYS_COLOUR_HOTLIGHT:
92 case wxSYS_COLOUR_GRADIENTACTIVECAPTION:
93 case wxSYS_COLOUR_GRADIENTINACTIVECAPTION:
94 case wxSYS_COLOUR_MENUHILIGHT:
95 case wxSYS_COLOUR_MENUBAR:
98 if ( which
== UILastColorTableEntry
)
103 UIColorGetTableEntryRGB (which
,&rgbP
);
105 return wxColour(rgbP
.r
,rgbP
.g
,rgbP
.b
);
108 // ----------------------------------------------------------------------------
110 // ----------------------------------------------------------------------------
112 wxFont
wxCreateFontFromStockObject(int index
)
118 wxFont
wxSystemSettingsNative::GetFont(wxSystemFont index
)
124 // ----------------------------------------------------------------------------
125 // system metrics/features
126 // ----------------------------------------------------------------------------
128 // Get a system metric, e.g. scrollbar size
129 int wxSystemSettingsNative::GetMetric(wxSystemMetric index
, wxWindow
* WXUNUSED(win
))
137 WinScreenGetAttribute(winScreenWidth
, &attrP
);
142 WinScreenGetAttribute(winScreenHeight
, &attrP
);
150 bool wxSystemSettingsNative::HasFeature(wxSystemFeature index
)