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 _getGType() static nothrow
GType _gType() @property nothrow
IconPaintable self() nothrowReturns `this`, for use in `with` statements.
IconPaintableGidBuilder builder() static nothrowGet builder for [gtk.icon_paintable.IconPaintable] Returns: New builder object
gio.file.File file() @property nothrowGet `file` property. Returns: The file representing the icon, if any.
string iconName() @property nothrowGet `iconName` property. Returns: The icon name that was chosen during lookup.
gtk.icon_paintable.IconPaintable newForFile(gio.file.File file, int size, int scale) static nothrowCreates a [gtk.icon_paintable.IconPaintable] for a file with a given size and scale.
gio.file.File getFile() nothrowGets the [gio.file.File] that was used to load the icon.
string getIconName() nothrowGet the icon name being used for this icon.
bool isSymbolic() nothrowChecks 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) nothrowSet `file` property. Params: propval = The file representing the icon, if any. Returns: Builder instance for fluent chaining
T iconName(string propval) nothrowSet `iconName` property. Params: propval = The icon name that was chosen during lookup. Returns: Builder instance for fluent chaining
Methods
IconPaintable build() nothrowCreate object from builder. Returns: New object