X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14440cc658a50df30181d6698cae0a803a2040ba..99c4be680622f58a48a04dfe0835b59d2c41afea:/include/wx/artprov.h diff --git a/include/wx/artprov.h b/include/wx/artprov.h index 9b9ffa7ca6..7bca512e8d 100644 --- a/include/wx/artprov.h +++ b/include/wx/artprov.h @@ -165,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); @@ -222,4 +226,12 @@ private: }; +#if !defined(__WXUNIVERSAL__) && \ + ((defined(__WXGTK__) && defined(__WXGTK20__)) || defined(__WXMSW__) || \ + (defined(__WXMAC__) && wxOSX_USE_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_