gio.emblem

Module for [Emblem] class

Types 3

gio.emblem.Emblem is an implementation of gio.icon.Icon that supports having an emblem, which is an icon with additional properties. It can than be added to a gio.emblemed_icon.EmblemedIcon.

Currently, only metainformation about the emblem's origin is supported. More may be added in the future.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Emblem self() nothrowReturns `this`, for use in `with` statements.
EmblemGidBuilder builder() static nothrowGet builder for [gio.emblem.Emblem] Returns: New builder object
gobject.object.ObjectWrap icon() @property nothrowGet `icon` property. Returns: The actual icon of the emblem.
gio.types.EmblemOrigin origin() @property nothrowGet `origin` property. Returns: The origin the emblem is derived from.
gio.emblem.Emblem newWithOrigin(gio.icon.Icon icon, gio.types.EmblemOrigin origin) static nothrowCreates a new emblem for icon.
gio.icon.Icon getIcon() nothrowGives back the icon from emblem. Returns: a #GIcon. The returned object belongs to the emblem and should not be modified or freed.
gio.types.EmblemOrigin getOrigin() nothrowGets the origin of the emblem. Returns: the origin of the emblem
Constructors
this(void * ptr, Flag!"Take" take)
this(gio.icon.Icon icon)Creates a new emblem for icon.

Fluent builder implementation template for gio.emblem.Emblem

Methods
T icon(gobject.object.ObjectWrap propval) nothrowSet `icon` property. Params: propval = The actual icon of the emblem. Returns: Builder instance for fluent chaining
T origin(gio.types.EmblemOrigin propval) nothrowSet `origin` property. Params: propval = The origin the emblem is derived from. Returns: Builder instance for fluent chaining

Fluent builder for gio.emblem.Emblem

Methods
Emblem build() nothrowCreate object from builder. Returns: New object