X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/25057abaacf5ccf30bf136ec2ac430eb61664c3b..53b6d7a29879a67a54e1f26e77a0697fecacf839:/docs/latex/wx/artprov.tex diff --git a/docs/latex/wx/artprov.tex b/docs/latex/wx/artprov.tex index c30aaaf824..690fd24b39 100644 --- a/docs/latex/wx/artprov.tex +++ b/docs/latex/wx/artprov.tex @@ -29,8 +29,7 @@ provider with \end{verbatim} There's another way of taking advantage of this class: you can use it in your code and use -platform native icons as provided by -\helpref{wxArtProvider::GetBitmap}{wxartprovidergetbitmap} or +platform native icons as provided by \helpref{wxArtProvider::GetBitmap}{wxartprovidergetbitmap} or \helpref{wxArtProvider::GetIcon}{wxartprovidergeticon} (NB: this is not yet really possible as of wxWidgets 2.3.3, the set of wxArtProvider bitmaps is too small). @@ -177,6 +176,24 @@ The bitmap if one of registered providers recognizes the ID or wxNullBitmap othe Same as \helpref{wxArtProvider::GetBitmap}{wxartprovidergetbitmap}, but return a wxIcon object (or wxNullIcon on failure). +\func{static wxSize}{GetSizeHint}{\param{const wxArtClient\& }{client}, \param{bool }{platform\_default = false}} + +Returns a suitable size hint for the given {\it wxArtClient}. If +{\it platform\_default} is \true, return a size based on the current platform, +otherwise return the size from the topmost wxArtProvider. {\it wxDefaultSize} may be +returned if the client doesn't have a specified size, like wxART\_OTHER for example. + +\membersection{wxArtProvider::InsertProvider}\label{wxartproviderinsertprovider} + +\func{static void}{InsertProvider}{\param{wxArtProvider* }{provider}} + +Register new art provider and add it to the bottom of providers stack (i.e. +it will be queried as the last one). + +\wxheading{See also} + +\helpref{PushProvider}{wxartproviderpushprovider} + \membersection{wxArtProvider::PopProvider}\label{wxartproviderctor} \func{static bool}{PopProvider}{\void} @@ -187,7 +204,12 @@ Remove latest added provider and delete it. \func{static void}{PushProvider}{\param{wxArtProvider* }{provider}} -Register new art provider (add it to the top of providers stack). +Register new art provider and add it to the top of providers stack (i.e. it +will be queried as the first provider). + +\wxheading{See also} + +\helpref{InsertProvider}{wxartproviderinsertprovider} \membersection{wxArtProvider::RemoveProvider}\label{wxartproviderremoveprovider}