gtk.icon_paintable

Module for IconPaintable class

Types 3

Contains information found when looking up an icon in gtk.icon_theme.IconTheme.

gtk.icon_paintable.IconPaintable implements gdk.paintable.Paintable.

Methods
GType _gType() @property
IconPaintable self()Returns `this`, for use in `with` statements.
IconPaintableGidBuilder builder()Get builder for [gtk.icon_paintable.IconPaintable] Returns: New builder object
gio.file.File file() @propertyGet `file` property. Returns: The file representing the icon, if any.
string iconName() @propertyGet `iconName` property. Returns: The icon name that was chosen during lookup.
gtk.icon_paintable.IconPaintable newForFile(gio.file.File file, int size, int scale)Creates a [gtk.icon_paintable.IconPaintable] for a file with a given size and scale.
gio.file.File getFile()Gets the [gio.file.File] that was used to load the icon.
string getIconName()Get the icon name being used for this icon.
bool isSymbolic()Checks if the icon is symbolic or not.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gtk.icon_paintable.IconPaintable

Methods
T file(gio.file.File propval)Set `file` property. Params: propval = The file representing the icon, if any. Returns: Builder instance for fluent chaining
T iconName(string propval)Set `iconName` property. Params: propval = The icon name that was chosen during lookup. Returns: Builder instance for fluent chaining
Methods
IconPaintable build()Create object from builder. Returns: New object