X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf763f5b942d40121b1d647d2a34d48410965c09..ca30acad7aafad24e6a0fad86df25842110862c7:/wxPython/src/_settings.i?ds=inline diff --git a/wxPython/src/_settings.i b/wxPython/src/_settings.i index 379a988fac..b4bc618260 100644 --- a/wxPython/src/_settings.i +++ b/wxPython/src/_settings.i @@ -148,6 +148,12 @@ enum wxSystemScreenType //--------------------------------------------------------------------------- +MustHaveApp(wxSystemSettings::GetColour); +MustHaveApp(wxSystemSettings::GetFont); +MustHaveApp(wxSystemSettings::GetMetric); +MustHaveApp(wxSystemSettings::HasFeature); +MustHaveApp(wxSystemSettings::GetScreenType); +MustHaveApp(wxSystemSettings::SetScreenType); class wxSystemSettings { @@ -175,27 +181,21 @@ public: }; -// %pythoncode { -// %# backwards compatibility aliasses -// SystemSettings_GetSystemColour = SystemSettings_GetColour -// SystemSettings_GetSystemFont = SystemSettings_GetFont -// SystemSettings_GetSystemMetric = SystemSettings_GetMetric -// } - - //--------------------------------------------------------------------------- +MAKE_CONST_WXSTRING(WINDOW_DEFAULT_VARIANT); + class wxSystemOptions : public wxObject { public: - wxSystemOptions() { } + wxSystemOptions(); // User-customizable hints to wxWindows or associated libraries // These could also be used to influence GetSystem... calls, indeed // to implement SetSystemColour/Font/Metric static void SetOption(const wxString& name, const wxString& value); - %name(SetOptionInt) static void SetOption(const wxString& name, int value); + %Rename(SetOptionInt, static void, SetOption(const wxString& name, int value)); static wxString GetOption(const wxString& name) ; static int GetOptionInt(const wxString& name) ; static bool HasOption(const wxString& name) ;