1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
6 Manipulating stock icons
8 <!-- ##### SECTION Long_Description ##### -->
12 Browse the available stock icons in the list of stock IDs found <link
13 linkend="gtk-Stock-Items">here</link>. You can also use
14 the <application>gtk-demo</application> application for this purpose.
18 An icon factory manages a collection of #GtkIconSet; a #GtkIconSet manages a
19 set of variants of a particular icon (i.e. a #GtkIconSet contains variants for
20 different sizes and widget states). Icons in an icon factory are named by a
21 stock ID, which is a simple string identifying the icon. Each #GtkStyle has a
22 list of #GtkIconFactory derived from the current theme; those icon factories
23 are consulted first when searching for an icon. If the theme doesn't set a
24 particular icon, GTK+ looks for the icon in a list of default icon factories,
25 maintained by gtk_icon_factory_add_default() and
26 gtk_icon_factory_remove_default(). Applications with icons should add a default
27 icon factory with their icons, which will allow themes to override the icons
32 To display an icon, always use gtk_style_lookup_icon_set() on the widget that
33 will display the icon, or the convenience function
34 gtk_widget_render_icon(). These functions take the theme into account when
35 looking up the icon to use for a given stock ID.
38 <!-- ##### SECTION See_Also ##### -->
43 <!-- ##### SECTION Stability_Level ##### -->
46 <!-- ##### STRUCT GtkIconSource ##### -->
52 <!-- ##### STRUCT GtkIconFactory ##### -->
58 <!-- ##### STRUCT GtkIconSet ##### -->
64 <!-- ##### ENUM GtkIconSize ##### -->
69 @GTK_ICON_SIZE_INVALID:
71 @GTK_ICON_SIZE_SMALL_TOOLBAR:
72 @GTK_ICON_SIZE_LARGE_TOOLBAR:
73 @GTK_ICON_SIZE_BUTTON:
75 @GTK_ICON_SIZE_DIALOG:
77 <!-- ##### FUNCTION gtk_icon_source_copy ##### -->
86 <!-- ##### FUNCTION gtk_icon_source_free ##### -->
94 <!-- ##### FUNCTION gtk_icon_factory_add ##### -->
104 <!-- ##### FUNCTION gtk_icon_factory_add_default ##### -->
112 <!-- ##### FUNCTION gtk_icon_factory_lookup ##### -->
122 <!-- ##### FUNCTION gtk_icon_factory_lookup_default ##### -->
131 <!-- ##### FUNCTION gtk_icon_factory_new ##### -->
139 <!-- ##### FUNCTION gtk_icon_factory_remove_default ##### -->
147 <!-- ##### FUNCTION gtk_icon_set_add_source ##### -->
156 <!-- ##### FUNCTION gtk_icon_set_copy ##### -->
165 <!-- ##### FUNCTION gtk_icon_set_new ##### -->
173 <!-- ##### FUNCTION gtk_icon_set_new_from_pixbuf ##### -->
182 <!-- ##### FUNCTION gtk_icon_set_ref ##### -->
191 <!-- ##### FUNCTION gtk_icon_set_render_icon ##### -->
206 <!-- ##### FUNCTION gtk_icon_set_unref ##### -->
214 <!-- ##### FUNCTION gtk_icon_size_lookup ##### -->
223 <!-- # Unused Parameters # -->
227 <!-- ##### FUNCTION gtk_icon_size_lookup_for_settings ##### -->
239 <!-- ##### FUNCTION gtk_icon_size_register ##### -->
248 <!-- # Unused Parameters # -->
252 <!-- ##### FUNCTION gtk_icon_size_register_alias ##### -->
261 <!-- ##### FUNCTION gtk_icon_size_from_name ##### -->
270 <!-- ##### FUNCTION gtk_icon_size_get_name ##### -->
279 <!-- ##### FUNCTION gtk_icon_set_get_sizes ##### -->
289 <!-- ##### FUNCTION gtk_icon_source_get_direction ##### -->
298 <!-- ##### FUNCTION gtk_icon_source_get_direction_wildcarded ##### -->
307 <!-- ##### FUNCTION gtk_icon_source_get_filename ##### -->
316 <!-- ##### FUNCTION gtk_icon_source_get_pixbuf ##### -->
325 <!-- ##### FUNCTION gtk_icon_source_get_icon_name ##### -->
334 <!-- ##### FUNCTION gtk_icon_source_get_size ##### -->
343 <!-- ##### FUNCTION gtk_icon_source_get_size_wildcarded ##### -->
352 <!-- ##### FUNCTION gtk_icon_source_get_state ##### -->
361 <!-- ##### FUNCTION gtk_icon_source_get_state_wildcarded ##### -->
370 <!-- ##### FUNCTION gtk_icon_source_new ##### -->
378 <!-- ##### FUNCTION gtk_icon_source_set_direction ##### -->
387 <!-- ##### FUNCTION gtk_icon_source_set_direction_wildcarded ##### -->
396 <!-- ##### FUNCTION gtk_icon_source_set_filename ##### -->
405 <!-- ##### FUNCTION gtk_icon_source_set_pixbuf ##### -->
414 <!-- ##### FUNCTION gtk_icon_source_set_icon_name ##### -->
423 <!-- ##### FUNCTION gtk_icon_source_set_size ##### -->
432 <!-- ##### FUNCTION gtk_icon_source_set_size_wildcarded ##### -->
441 <!-- ##### FUNCTION gtk_icon_source_set_state ##### -->
450 <!-- ##### FUNCTION gtk_icon_source_set_state_wildcarded ##### -->