1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface defs for wxSystemSettings and wxSystemOptions
7 // Created: 3-July-1997
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
16 //---------------------------------------------------------------------------
21 //---------------------------------------------------------------------------
27 wxSYS_OEM_FIXED_FONT = 10,
28 wxSYS_ANSI_FIXED_FONT,
31 wxSYS_DEVICE_DEFAULT_FONT,
32 wxSYS_DEFAULT_PALETTE,
33 wxSYS_SYSTEM_FIXED_FONT,
34 wxSYS_DEFAULT_GUI_FONT,
42 wxSYS_COLOUR_SCROLLBAR,
43 wxSYS_COLOUR_BACKGROUND,
44 wxSYS_COLOUR_DESKTOP = wxSYS_COLOUR_BACKGROUND,
45 wxSYS_COLOUR_ACTIVECAPTION,
46 wxSYS_COLOUR_INACTIVECAPTION,
49 wxSYS_COLOUR_WINDOWFRAME,
50 wxSYS_COLOUR_MENUTEXT,
51 wxSYS_COLOUR_WINDOWTEXT,
52 wxSYS_COLOUR_CAPTIONTEXT,
53 wxSYS_COLOUR_ACTIVEBORDER,
54 wxSYS_COLOUR_INACTIVEBORDER,
55 wxSYS_COLOUR_APPWORKSPACE,
56 wxSYS_COLOUR_HIGHLIGHT,
57 wxSYS_COLOUR_HIGHLIGHTTEXT,
59 wxSYS_COLOUR_3DFACE = wxSYS_COLOUR_BTNFACE,
60 wxSYS_COLOUR_BTNSHADOW,
61 wxSYS_COLOUR_3DSHADOW = wxSYS_COLOUR_BTNSHADOW,
62 wxSYS_COLOUR_GRAYTEXT,
64 wxSYS_COLOUR_INACTIVECAPTIONTEXT,
65 wxSYS_COLOUR_BTNHIGHLIGHT,
66 wxSYS_COLOUR_BTNHILIGHT = wxSYS_COLOUR_BTNHIGHLIGHT,
67 wxSYS_COLOUR_3DHIGHLIGHT = wxSYS_COLOUR_BTNHIGHLIGHT,
68 wxSYS_COLOUR_3DHILIGHT = wxSYS_COLOUR_BTNHIGHLIGHT,
69 wxSYS_COLOUR_3DDKSHADOW,
71 wxSYS_COLOUR_INFOTEXT,
74 wxSYS_COLOUR_HOTLIGHT,
75 wxSYS_COLOUR_GRADIENTACTIVECAPTION,
76 wxSYS_COLOUR_GRADIENTINACTIVECAPTION,
77 wxSYS_COLOUR_MENUHILIGHT,
88 wxSYS_MOUSE_BUTTONS = 1,
99 wxSYS_HSCROLL_ARROW_X,
100 wxSYS_HSCROLL_ARROW_Y,
116 wxSYS_VSCROLL_ARROW_X,
117 wxSYS_VSCROLL_ARROW_Y,
121 wxSYS_NETWORK_PRESENT,
122 wxSYS_PENWINDOWS_PRESENT,
131 wxSYS_CAN_DRAW_FRAME_DECORATIONS = 1,
132 wxSYS_CAN_ICONIZE_FRAME
137 enum wxSystemScreenType
139 wxSYS_SCREEN_NONE = 0, // not yet defined
141 wxSYS_SCREEN_TINY, // <
142 wxSYS_SCREEN_PDA, // >= 320x240
143 wxSYS_SCREEN_SMALL, // >= 640x480
144 wxSYS_SCREEN_DESKTOP // >= 800x600
149 //---------------------------------------------------------------------------
152 class wxSystemSettings
155 // get a standard system colour
156 static wxColour GetColour(wxSystemColour index);
158 // get a standard system font
159 static wxFont GetFont(wxSystemFont index);
161 // get a system-dependent metric
162 static int GetMetric(wxSystemMetric index);
164 // return True if the port has certain feature
165 static bool HasFeature(wxSystemFeature index);
168 // Get system screen design (desktop, pda, ..) used for
169 // laying out various dialogs.
170 static wxSystemScreenType GetScreenType();
173 static void SetScreenType( wxSystemScreenType screen );
178 //---------------------------------------------------------------------------
180 class wxSystemOptions : public wxObject
185 // User-customizable hints to wxWindows or associated libraries
186 // These could also be used to influence GetSystem... calls, indeed
187 // to implement SetSystemColour/Font/Metric
189 static void SetOption(const wxString& name, const wxString& value);
190 %name(SetOptionInt) static void SetOption(const wxString& name, int value);
191 static wxString GetOption(const wxString& name) ;
192 static int GetOptionInt(const wxString& name) ;
193 static bool HasOption(const wxString& name) ;
198 //---------------------------------------------------------------------------