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 _gType() @property
Emblem self()Returns `this`, for use in `with` statements.
EmblemGidBuilder builder()Get builder for [gio.emblem.Emblem] Returns: New builder object
gobject.object.ObjectWrap icon() @propertyGet `icon` property. Returns: The actual icon of the emblem.
gio.types.EmblemOrigin origin() @propertyGet `origin` property. Returns: The origin the emblem is derived from.
gio.emblem.Emblem newWithOrigin(gio.icon.Icon icon, gio.types.EmblemOrigin origin)Creates a new emblem for icon.
gio.icon.Icon getIcon()Gives 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()Gets 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.
Methods
T icon(gobject.object.ObjectWrap propval)Set `icon` property. Params: propval = The actual icon of the emblem. Returns: Builder instance for fluent chaining
T origin(gio.types.EmblemOrigin propval)Set `origin` property. Params: propval = The origin the emblem is derived from. Returns: Builder instance for fluent chaining

Fluent builder for [gio.emblem.Emblem]

Methods