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"
29 #include "wx/gdicmn.h"
32 #include "wx/settings.h"
33 #include "wx/module.h"
34 #include "wx/fontutil.h"
38 // ============================================================================
40 // ============================================================================
42 // ----------------------------------------------------------------------------
43 // wxSystemSettingsNative
44 // ----------------------------------------------------------------------------
46 // ----------------------------------------------------------------------------
48 // ----------------------------------------------------------------------------
50 wxColour
wxSystemSettingsNative::GetColour(wxSystemColour index
)
52 // point to unused entry to mark lack of assignment
53 UIColorTableEntries which
= UILastColorTableEntry
;
57 case wxSYS_COLOUR_BACKGROUND
:
58 case wxSYS_COLOUR_WINDOW
:
61 case wxSYS_COLOUR_WINDOWFRAME
:
62 case wxSYS_COLOUR_ACTIVECAPTION
:
65 case wxSYS_COLOUR_SCROLLBAR
:
69 case wxSYS_COLOUR_INACTIVECAPTION:
70 case wxSYS_COLOUR_MENU:
71 case wxSYS_COLOUR_MENUTEXT:
72 case wxSYS_COLOUR_WINDOWTEXT:
73 case wxSYS_COLOUR_CAPTIONTEXT:
74 case wxSYS_COLOUR_ACTIVEBORDER:
75 case wxSYS_COLOUR_INACTIVEBORDER:
76 case wxSYS_COLOUR_APPWORKSPACE:
77 case wxSYS_COLOUR_HIGHLIGHT:
78 case wxSYS_COLOUR_HIGHLIGHTTEXT:
79 case wxSYS_COLOUR_BTNFACE:
80 case wxSYS_COLOUR_BTNSHADOW:
81 case wxSYS_COLOUR_GRAYTEXT:
82 case wxSYS_COLOUR_BTNTEXT:
83 case wxSYS_COLOUR_INACTIVECAPTIONTEXT:
84 case wxSYS_COLOUR_BTNHIGHLIGHT:
85 case wxSYS_COLOUR_3DDKSHADOW:
86 case wxSYS_COLOUR_3DLIGHT:
87 case wxSYS_COLOUR_INFOTEXT:
88 case wxSYS_COLOUR_INFOBK:
89 case wxSYS_COLOUR_LISTBOX:
90 case wxSYS_COLOUR_HOTLIGHT:
91 case wxSYS_COLOUR_GRADIENTACTIVECAPTION:
92 case wxSYS_COLOUR_GRADIENTINACTIVECAPTION:
93 case wxSYS_COLOUR_MENUHILIGHT:
94 case wxSYS_COLOUR_MENUBAR:
97 if ( which
== UILastColorTableEntry
)
102 UIColorGetTableEntryRGB (which
,&rgbP
);
104 return wxColour(rgbP
.r
,rgbP
.g
,rgbP
.b
);
107 // ----------------------------------------------------------------------------
109 // ----------------------------------------------------------------------------
111 wxFont
wxCreateFontFromStockObject(int index
)
117 wxFont
wxSystemSettingsNative::GetFont(wxSystemFont index
)
123 // ----------------------------------------------------------------------------
124 // system metrics/features
125 // ----------------------------------------------------------------------------
127 // Get a system metric, e.g. scrollbar size
128 int wxSystemSettingsNative::GetMetric(wxSystemMetric index
, wxWindow
* WXUNUSED(win
))
136 WinScreenGetAttribute(winScreenWidth
, &attrP
);
141 WinScreenGetAttribute(winScreenHeight
, &attrP
);
149 bool wxSystemSettingsNative::HasFeature(wxSystemFeature index
)