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 <!-- ##### STRUCT GtkIconSource ##### -->
49 <!-- ##### STRUCT GtkIconFactory ##### -->
55 <!-- ##### STRUCT GtkIconSet ##### -->
61 <!-- ##### ENUM GtkIconSize ##### -->
66 @GTK_ICON_SIZE_INVALID:
68 @GTK_ICON_SIZE_SMALL_TOOLBAR:
69 @GTK_ICON_SIZE_LARGE_TOOLBAR:
70 @GTK_ICON_SIZE_BUTTON:
72 @GTK_ICON_SIZE_DIALOG:
74 <!-- ##### FUNCTION gtk_icon_source_copy ##### -->
83 <!-- ##### FUNCTION gtk_icon_source_free ##### -->
91 <!-- ##### FUNCTION gtk_icon_factory_add ##### -->
101 <!-- ##### FUNCTION gtk_icon_factory_add_default ##### -->
109 <!-- ##### FUNCTION gtk_icon_factory_lookup ##### -->
119 <!-- ##### FUNCTION gtk_icon_factory_lookup_default ##### -->
128 <!-- ##### FUNCTION gtk_icon_factory_new ##### -->
136 <!-- ##### FUNCTION gtk_icon_factory_remove_default ##### -->
144 <!-- ##### FUNCTION gtk_icon_set_add_source ##### -->
153 <!-- ##### FUNCTION gtk_icon_set_copy ##### -->
162 <!-- ##### FUNCTION gtk_icon_set_new ##### -->
170 <!-- ##### FUNCTION gtk_icon_set_new_from_pixbuf ##### -->
179 <!-- ##### FUNCTION gtk_icon_set_ref ##### -->
188 <!-- ##### FUNCTION gtk_icon_set_render_icon ##### -->
203 <!-- ##### FUNCTION gtk_icon_set_unref ##### -->
211 <!-- ##### FUNCTION gtk_icon_size_lookup ##### -->
220 <!-- # Unused Parameters # -->
224 <!-- ##### FUNCTION gtk_icon_size_register ##### -->
233 <!-- # Unused Parameters # -->
237 <!-- ##### FUNCTION gtk_icon_size_register_alias ##### -->
246 <!-- ##### FUNCTION gtk_icon_size_from_name ##### -->
255 <!-- ##### FUNCTION gtk_icon_size_get_name ##### -->
264 <!-- ##### FUNCTION gtk_icon_set_get_sizes ##### -->
274 <!-- ##### FUNCTION gtk_icon_source_get_direction ##### -->
283 <!-- ##### FUNCTION gtk_icon_source_get_direction_wildcarded ##### -->
292 <!-- ##### FUNCTION gtk_icon_source_get_filename ##### -->
301 <!-- ##### FUNCTION gtk_icon_source_get_pixbuf ##### -->
310 <!-- ##### FUNCTION gtk_icon_source_get_size ##### -->
319 <!-- ##### FUNCTION gtk_icon_source_get_size_wildcarded ##### -->
328 <!-- ##### FUNCTION gtk_icon_source_get_state ##### -->
337 <!-- ##### FUNCTION gtk_icon_source_get_state_wildcarded ##### -->
346 <!-- ##### FUNCTION gtk_icon_source_new ##### -->
354 <!-- ##### FUNCTION gtk_icon_source_set_direction ##### -->
363 <!-- ##### FUNCTION gtk_icon_source_set_direction_wildcarded ##### -->
372 <!-- ##### FUNCTION gtk_icon_source_set_filename ##### -->
381 <!-- ##### FUNCTION gtk_icon_source_set_pixbuf ##### -->
390 <!-- ##### FUNCTION gtk_icon_source_set_size ##### -->
399 <!-- ##### FUNCTION gtk_icon_source_set_size_wildcarded ##### -->
408 <!-- ##### FUNCTION gtk_icon_source_set_state ##### -->
417 <!-- ##### FUNCTION gtk_icon_source_set_state_wildcarded ##### -->