]>
Commit | Line | Data |
---|---|---|
2bda0e17 | 1 | ///////////////////////////////////////////////////////////////////////////// |
8bf30fe9 | 2 | // Name: wx/msw/settings.h |
2bda0e17 KB |
3 | // Purpose: wxSystemSettings class |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 01/02/97 | |
7 | // RCS-ID: $Id$ | |
bbcdf8bc | 8 | // Copyright: (c) Julian Smart |
8bf30fe9 | 9 | // Licence: wxWindows licence |
2bda0e17 KB |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
bbcdf8bc JS |
12 | #ifndef _WX_SETTINGS_H_ |
13 | #define _WX_SETTINGS_H_ | |
2bda0e17 KB |
14 | |
15 | #ifdef __GNUG__ | |
16 | #pragma interface "settings.h" | |
17 | #endif | |
18 | ||
916d0b61 HH |
19 | #include "wx/colour.h" |
20 | #include "wx/font.h" | |
2bda0e17 | 21 | |
8bf30fe9 | 22 | class WXDLLEXPORT wxSystemSettings : public wxObject |
2bda0e17 KB |
23 | { |
24 | public: | |
8bf30fe9 | 25 | wxSystemSettings() { } |
2bda0e17 KB |
26 | |
27 | // Get a system colour | |
8bf30fe9 | 28 | static wxColour GetSystemColour(int index); |
2bda0e17 KB |
29 | |
30 | // Get a system font | |
8bf30fe9 | 31 | static wxFont GetSystemFont(int index); |
2bda0e17 KB |
32 | |
33 | // Get a system metric, e.g. scrollbar size | |
8bf30fe9 | 34 | static int GetSystemMetric(int index); |
d3211838 JS |
35 | |
36 | // User-customizable hints to wxWindows or associated libraries | |
37 | // These could also be used to influence GetSystem... calls, indeed | |
38 | // to implement SetSystemColour/Font/Metric | |
39 | ||
40 | static void SetOption(const wxString& name, const wxString& value); | |
41 | static void SetOption(const wxString& name, int value); | |
42 | static wxString GetOption(const wxString& name) ; | |
43 | static int GetOptionInt(const wxString& name) ; | |
44 | static bool HasOption(const wxString& name) ; | |
2bda0e17 KB |
45 | }; |
46 | ||
47 | #endif | |
bbcdf8bc | 48 | // _WX_SETTINGS_H_ |