gtk.icon_source
Module for [IconSource] class
class IconSource
Types 1
classIconSource : gobject.boxed.Boxed
Methods
gtk.icon_source.IconSource copy() nothrowCreates a copy of source; mostly useful for language bindings. Returns: a new #GtkIconSourcegtk.types.TextDirection getDirection() nothrowObtains the text direction this icon source applies to. The return value is only useful/meaningful if the text direction is not wildcarded. Returns: text direction this source matchesbool getDirectionWildcarded() nothrowGets the value set by [gtk.icon_source.IconSource.setDirectionWildcarded]. Returns: true if this icon source is a base for any text direction variantstring getFilename() nothrowRetrieves 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. Returns: image filename....string getIconName() nothrowRetrieves 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. Returns: icon name. Th...gdkpixbuf.pixbuf.Pixbuf getPixbuf() nothrowRetrieves 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 exam...gtk.types.IconSize getSize() nothrowObtains the icon size this source applies to. The return value is only useful/meaningful if the icon size is not wildcarded. Returns: icon size (#GtkIconSize) this source matches.bool getSizeWildcarded() nothrowGets the value set by [gtk.icon_source.IconSource.setSizeWildcarded]. Returns: true if this icon source is a base for any icon size variantgtk.types.StateType getState() nothrowObtains the widget state this icon source applies to. The return value is only useful/meaningful if the widget state is not wildcarded. Returns: widget state this source matchesbool getStateWildcarded() nothrowGets the value set by [gtk.icon_source.IconSource.setStateWildcarded]. Returns: true if this icon source is a base for any widget state variantvoid setDirection(gtk.types.TextDirection direction) nothrowSets the text direction this icon source is intended to be used with.void setDirectionWildcarded(bool setting) nothrowIf 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...void setFilename(string filename) nothrowSets the name of an image file to use as a base image when creating icon variants for #GtkIconSet. The filename must be absolute.void setIconName(string iconName = null) nothrowSets 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.void setPixbuf(gdkpixbuf.pixbuf.Pixbuf pixbuf) nothrowSets a pixbuf to use as a base image when creating icon variants for #GtkIconSet.void setSize(gtk.types.IconSize size) nothrowSets the icon size this icon source is intended to be used with.void setSizeWildcarded(bool setting) nothrowIf 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_s...void setState(gtk.types.StateType state) nothrowSets the widget state this icon source is intended to be used with.void setStateWildcarded(bool setting) nothrowIf 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...