X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1972900ebf36cdec7feb9083854a12ef4bf45d2c..1ddb6d28576c3ab21f80d8a3815fcccb1545961c:/include/wx/sysopt.h?ds=sidebyside diff --git a/include/wx/sysopt.h b/include/wx/sysopt.h index 90d802215b..f0eee94229 100644 --- a/include/wx/sysopt.h +++ b/include/wx/sysopt.h @@ -18,7 +18,11 @@ // Enables an application to influence the wxWidgets implementation // ---------------------------------------------------------------------------- -class WXDLLIMPEXP_BASE wxSystemOptions : public wxObject +class +#if wxUSE_SYSTEM_OPTIONS +WXDLLIMPEXP_BASE +#endif +wxSystemOptions : public wxObject { public: wxSystemOptions() { } @@ -34,6 +38,11 @@ public: static wxString GetOption(const wxString& name); static int GetOptionInt(const wxString& name); static bool HasOption(const wxString& name); + + static bool IsFalse(const wxString& name) + { + return HasOption(name) && GetOptionInt(name) == 0; + } }; #if !wxUSE_SYSTEM_OPTIONS