X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a158acac6d488f58e5afc7c0ce51908a8ce6f25d..ceb9b8db81a7ae5d1c997610a689e47d322a5dfd:/interface/wx/artprov.h
diff --git a/interface/wx/artprov.h b/interface/wx/artprov.h
index 33196e22eb..0fa1b70397 100644
--- a/interface/wx/artprov.h
+++ b/interface/wx/artprov.h
@@ -3,9 +3,20 @@
// Purpose: interface of wxArtProvider
// Author: wxWidgets team
// RCS-ID: $Id$
-// Licence: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
+/**
+ This type identifies the client of the art objects requested to wxArtProvider.
+*/
+typedef class wxString wxArtClient;
+
+/**
+ This type identifies a specific art object which can be requested to wxArtProvider.
+*/
+typedef class wxString wxArtID;
+
+
/**
@class wxArtProvider
@@ -45,14 +56,10 @@
code and use platform native icons as provided by wxArtProvider::GetBitmap or
wxArtProvider::GetIcon.
- @todo IS THIS NB TRUE?
- (@note this is not yet really possible as of wxWidgets 2.3.3, the set of wxArtProvider
- bitmaps is too small).
-
- @section wxartprovider_identify Identifying art resources
+ @section artprovider_identify Identifying art resources
Every bitmap and icon bundle are known to wxArtProvider under an unique ID that
- is used when requesting a resource from it. The ID is represented by wxArtID type
+ is used when requesting a resource from it. The ID is represented by the ::wxArtID type
and can have one of these predefined values (you can see bitmaps represented by these
constants in the @ref page_samples_artprov):
@@ -72,10 +79,12 @@
@li wxART_GO_BACK
@li wxART_GO_FORWARD
@li wxART_GO_UP
-
@li wxART_GO_DOWN
@li wxART_GO_TO_PARENT
@li wxART_GO_HOME
+ @li wxART_GOTO_FIRST (since 2.9.2)
+ |
+ @li wxART_GOTO_LAST (since 2.9.2)
@li wxART_PRINT
@li wxART_HELP
@li wxART_TIP
@@ -89,11 +98,11 @@
@li wxART_NORMAL_FILE
@li wxART_TICK_MARK
@li wxART_CROSS_MARK
- |
@li wxART_MISSING_IMAGE
@li wxART_NEW
@li wxART_FILE_OPEN
@li wxART_FILE_SAVE
+ |
@li wxART_FILE_SAVE_AS
@li wxART_DELETE
@li wxART_COPY
@@ -101,6 +110,9 @@
@li wxART_PASTE
@li wxART_UNDO
@li wxART_REDO
+ @li wxART_PLUS (since 2.9.2)
+ @li wxART_MINUS (since 2.9.2)
+ @li wxART_CLOSE
@li wxART_QUIT
@li wxART_FIND
@li wxART_FIND_AND_REPLACE
@@ -116,19 +128,27 @@
@note
When running under GTK+ 2, GTK+ stock item IDs (e.g. @c "gtk-cdrom") may be used
- as well. Additionally, if wxGTK was compiled against GTK+ >= 2.4, then it is also
- possible to load icons from current icon theme by specifying their name (without
- extension and directory components).
- Icon themes recognized by GTK+ follow the freedesktop.org Icon Themes specification
- (see http://freedesktop.org/Standards/icon-theme-spec).
+ as well:
+ @code
+ #ifdef __WXGTK__
+ wxBitmap bmp = wxArtProvider::GetBitmap("gtk-cdrom", wxART_MENU);
+ #endif
+ @endcode
+ For a list of the GTK+ stock items please refer to the
+ GTK+ documentation
+ page.
+ It is also possible to load icons from the current icon theme by specifying their name
+ (without extension and directory components).
+ Icon themes recognized by GTK+ follow the freedesktop.org
+ Icon Themes specification.
Note that themes are not guaranteed to contain all icons, so wxArtProvider may
return ::wxNullBitmap or ::wxNullIcon.
The default theme is typically installed in @c /usr/share/icons/hicolor.
- @section wxartprovider_clients Clients
+ @section artprovider_clients Clients
- Client is the entity that calls wxArtProvider's GetBitmap or GetIcon function.
+ The @e client is the entity that calls wxArtProvider's GetBitmap() or GetIcon() function.
It is represented by wxClientID type and can have one of these values:
@li wxART_TOOLBAR
@@ -141,7 +161,7 @@
@li wxART_OTHER (used for all requests that don't fit into any of the
categories above)
- Client ID servers as a hint to wxArtProvider that is supposed to help it to
+ Client ID serve as a hint to wxArtProvider that is supposed to help it to
choose the best looking bitmap. For example it is often desirable to use
slightly different icons in menus and toolbars even though they represent
the same action (e.g. wxART_FILE_OPEN). Remember that this is really only a
@@ -149,7 +169,7 @@
identical bitmap for different client values!
@library{wxcore}
- @category{misc,data}
+ @category{misc}
@see the @ref page_samples_artprov for an example of wxArtProvider usage.
*/
|