Struct

GtkIconSource

Description

struct GtkIconSource {
  /* No available fields */
}
No description available.

Constructors

gtk_icon_source_new

Creates a new GtkIconSource. A GtkIconSource contains a GdkPixbuf (or image filename) that serves as the base image for one or more of the icons in a GtkIconSet, along with a specification for which icons in the icon set will be based on that pixbuf or image file. An icon set contains a set of icons that represent “the same” logical concept in different states, different global text directions, and different sizes.

Deprecated since: 3.10

Instance methods

gtk_icon_source_copy

Creates a copy of source; mostly useful for language bindings.

Deprecated since: 3.10

gtk_icon_source_free

Frees a dynamically-allocated icon source, along with its filename, size, and pixbuf fields if those are not NULL.

Deprecated since: 3.10

gtk_icon_source_get_direction

Obtains the text direction this icon source applies to. The return value is only useful/meaningful if the text direction is not wildcarded.

Deprecated since: 3.10

gtk_icon_source_get_direction_wildcarded

Gets the value set by gtk_icon_source_set_direction_wildcarded().

Deprecated since: 3.10

gtk_icon_source_get_filename

Retrieves the source filename, or NULL if none is set. The filename is not a copy, and should not be modified or expected to persist beyond the lifetime of the icon source.

Deprecated since: 3.10

gtk_icon_source_get_icon_name

Retrieves the source icon name, or NULL if none is set. The icon_name is not a copy, and should not be modified or expected to persist beyond the lifetime of the icon source.

Deprecated since: 3.10

gtk_icon_source_get_pixbuf

Retrieves the source pixbuf, or NULL if none is set. In addition, if a filename source is in use, this function in some cases will return the pixbuf from loaded from the filename. This is, for example, true for the GtkIconSource passed to the GtkStyle render_icon() virtual function. The reference count on the pixbuf is not incremented.

Deprecated since: 3.10

gtk_icon_source_get_size

Obtains the icon size this source applies to. The return value is only useful/meaningful if the icon size is not wildcarded.

Deprecated since: 3.10

gtk_icon_source_get_size_wildcarded

Gets the value set by gtk_icon_source_set_size_wildcarded().

Deprecated since: 3.10

gtk_icon_source_get_state

Obtains the widget state this icon source applies to. The return value is only useful/meaningful if the widget state is not wildcarded.

Deprecated since: 3.10

gtk_icon_source_get_state_wildcarded

Gets the value set by gtk_icon_source_set_state_wildcarded().

Deprecated since: 3.10

gtk_icon_source_set_direction

Sets the text direction this icon source is intended to be used with.

Deprecated since: 3.10

gtk_icon_source_set_direction_wildcarded

If the text direction is wildcarded, this source can be used as the base image for an icon in any GtkTextDirection. If the text direction is not wildcarded, then the text direction the icon source applies to should be set with gtk_icon_source_set_direction(), and the icon source will only be used with that text direction.

Deprecated since: 3.10

gtk_icon_source_set_filename

Sets the name of an image file to use as a base image when creating icon variants for GtkIconSet. The filename must be absolute.

Deprecated since: 3.10

gtk_icon_source_set_icon_name

Sets the name of an icon to look up in the current icon theme to use as a base image when creating icon variants for GtkIconSet.

Deprecated since: 3.10

gtk_icon_source_set_pixbuf

Sets a pixbuf to use as a base image when creating icon variants for GtkIconSet.

Deprecated since: 3.10

gtk_icon_source_set_size

Sets the icon size this icon source is intended to be used with.

Deprecated since: 3.10

gtk_icon_source_set_size_wildcarded

If the icon size is wildcarded, this source can be used as the base image for an icon of any size. If the size is not wildcarded, then the size the source applies to should be set with gtk_icon_source_set_size() and the icon source will only be used with that specific size.

Deprecated since: 3.10

gtk_icon_source_set_state

Sets the widget state this icon source is intended to be used with.

Deprecated since: 3.10

gtk_icon_source_set_state_wildcarded

If the widget state is wildcarded, this source can be used as the base image for an icon in any GtkStateType. If the widget state is not wildcarded, then the state the source applies to should be set with gtk_icon_source_set_state() and the icon source will only be used with that specific state.

Deprecated since: 3.10