IconSource
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "gtk_icon_source_get_type ()" ) ]
[ Compact ]
[ Version ( deprecated = true , deprecated_since = "3.10" , replacement = "IconTheme" ) ]
public class IconSource
[ Compact ]
[ Version ( deprecated = true , deprecated_since = "3.10" , replacement = "IconTheme" ) ]
public class IconSource
Warning: IconSource is deprecated since 3.10. Use IconTheme.
Namespace: Gtk
Package: gtk+-3.0
Content:
Creation methods:
- public IconSource ()
Creates a new IconSource.
Methods:
- public IconSource copy ()
Creates a copy of this; mostly useful for language bindings.
- public void free ()
Frees a dynamically-allocated icon source, along with its filename, size, and pixbuf fields if those are not null.
- public TextDirection get_direction ()
Obtains the text direction this icon source applies to.
- public bool get_direction_wildcarded ()
Gets the value set by set_direction_wildcarded.
- public unowned string get_filename ()
Retrieves the source filename, or null if none is set.
- public unowned string get_icon_name ()
Retrieves the source icon name, or null if none is set.
- public unowned Pixbuf get_pixbuf ()
Retrieves the source pixbuf, or null if none is set.
- public IconSize get_size ()
Obtains the icon size this source applies to.
- public bool get_size_wildcarded ()
Gets the value set by set_size_wildcarded.
- public StateType get_state ()
Obtains the widget state this icon source applies to.
- public bool get_state_wildcarded ()
Gets the value set by set_state_wildcarded.
- public void set_direction (TextDirection direction)
Sets the text direction this icon source is intended to be used with.
- public void set_direction_wildcarded (bool setting)
If the text direction is wildcarded, this source can be used as the base image for an icon in any TextDirection.
- public void set_filename (string filename)
Sets the name of an image file to use as a base image when creating icon variants for IconSet.
- public void set_icon_name (string? 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 IconSet.
- public void set_pixbuf (Pixbuf pixbuf)
Sets a pixbuf to use as a base image when creating icon variants for IconSet.
- public void set_size (IconSize size)
Sets the icon size this icon source is intended to be used with.
- public void set_size_wildcarded (bool setting)
If the icon size is wildcarded, this source can be used as the base image for an icon of any size.
- public void set_state (StateType state)
Sets the widget state this icon source is intended to be used with.
- public void set_state_wildcarded (bool setting)
If the widget state is wildcarded, this source can be used as the base image for an icon in any StateType.