X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5dbe15d0bacde245539f54c4d97af6b4696f01f..4f2511d706e5274a34e1521e11c1b95fed735b42:/include/wx/artprov.h diff --git a/include/wx/artprov.h b/include/wx/artprov.h index e841dba099..9b9ffa7ca6 100644 --- a/include/wx/artprov.h +++ b/include/wx/artprov.h @@ -111,12 +111,14 @@ typedef wxString wxArtID; // wxArtProvider class // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxArtProvider : public wxObject +class WXDLLIMPEXP_CORE wxArtProvider : public wxObject { public: // Dtor removes the provider from providers stack if it's still on it virtual ~wxArtProvider(); + // Does this platform implement native icons theme? + static bool HasNativeProvider(); // Add new provider to the top of providers stack (i.e. the provider will // be queried first of all). @@ -124,7 +126,12 @@ public: // Add new provider to the bottom of providers stack (i.e. the provider // will be queried as the last one). - static void Insert(wxArtProvider *provider); + static void PushBack(wxArtProvider *provider); + +#if WXWIN_COMPATIBILITY_2_8 + // use PushBack(), it's the same thing + wxDEPRECATED( static void Insert(wxArtProvider *provider) ); +#endif // Remove latest added provider and delete it. static bool Pop(); @@ -148,6 +155,11 @@ public: const wxArtClient& client = wxART_OTHER, const wxSize& size = wxDefaultSize); + // Helper used by several generic classes: return the icon corresponding to + // the standard wxICON_INFORMATION/WARNING/ERROR/QUESTION flags (only one + // can be set) + static wxIcon GetMessageBoxIcon(int flags); + // Query the providers for iconbundle with given ID and return it. Return // wxNullIconBundle if no provider provides it. static wxIconBundle GetIconBundle(const wxArtID& id,