gtk.icon_set
Module for [IconSet] class
class IconSet
Types 1
classIconSet : gobject.boxed.Boxed
Methods
IconSet self()Returns `this`, for use in `with` statements.gtk.icon_set.IconSet newFromPixbuf(gdkpixbuf.pixbuf.Pixbuf pixbuf)Creates a new #GtkIconSet with pixbuf as the default/fallback source image. If you don’t add any additional #GtkIconSource to the icon set, all variants of the icon will be created from pixbuf, u...void addSource(gtk.icon_source.IconSource source)Icon sets have a list of #GtkIconSource, which they use as base icons for rendering icons in different states and sizes. Icons are scaled, made to look insensitive, etc. in [gtk.icon_set.IconSet.re...gtk.icon_set.IconSet copy()Copies icon_set by value. Returns: a new #GtkIconSet identical to the first.void getSizes(out gtk.types.IconSize[] sizes)Obtains a list of icon sizes this icon set can render. The returned array must be freed with [glib.global.gfree].gdkpixbuf.pixbuf.Pixbuf renderIcon(gtk.style.Style style, gtk.types.TextDirection direction, gtk.types.StateType state, gtk.types.IconSize size, gtk.widget.Widget widget = null, string detail = null)Renders an icon using [gtk.style.Style.renderIcon]. In most cases, [gtk.widget.Widget.renderIcon] is better, since it automatically provides most of the arguments from the current widget settings. ...gdkpixbuf.pixbuf.Pixbuf renderIconPixbuf(gtk.style_context.StyleContext context, gtk.types.IconSize size)Renders an icon using [gtk.global.renderIconPixbuf]. In most cases, [gtk.widget.Widget.renderIconPixbuf] is better, since it automatically provides most of the arguments from the current widget set...cairo.surface.Surface renderIconSurface(gtk.style_context.StyleContext context, gtk.types.IconSize size, int scale, gdk.window.Window forWindow = null)Renders an icon using [gtk.global.renderIconPixbuf] and converts it to a cairo surface.