X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53a2db124c633f80bdb16336084262037d879a2c..e276acb530f41f0b87c4576c0215201a8a767dff:/include/wx/artprov.h diff --git a/include/wx/artprov.h b/include/wx/artprov.h index 34f365a8e9..2ece3c33b2 100644 --- a/include/wx/artprov.h +++ b/include/wx/artprov.h @@ -117,6 +117,8 @@ 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(); @@ -158,6 +165,10 @@ public: static wxIconBundle GetIconBundle(const wxArtID& id, const wxArtClient& client = wxART_OTHER); + // Gets native size for given 'client' or wxDefaultSize if it doesn't + // have native equivalent + static wxSize GetNativeSizeHint(const wxArtClient& client); + // Get the size hint of an icon from a specific wxArtClient, queries // the topmost provider if platform_dependent = false static wxSize GetSizeHint(const wxArtClient& client, bool platform_dependent = false); @@ -215,4 +226,12 @@ private: }; +#if !defined(__WXUNIVERSAL__) && \ + ((defined(__WXGTK__) && defined(__WXGTK20__)) || defined(__WXMSW__) || \ + (defined(__WXMAC__) && wxOSX_USE_COCOA_OR_CARBON)) + // *some* (partial) native implementation of wxArtProvider exists; this is + // not the same as wxArtProvider::HasNativeProvider()! + #define wxHAS_NATIVE_ART_PROVIDER_IMPL +#endif + #endif // _WX_ARTPROV_H_