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
EmblemGidBuilder builder()Get builder for [gio.emblem.Emblem] Returns: New builder objectgobject.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 emblemConstructors
this(gio.icon.Icon icon)Creates a new emblem for icon.classEmblemGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gio.icon.IconGidBuilderImpl!T
Methods
T icon(gobject.object.ObjectWrap propval)Set `icon` property. Params: propval = The actual icon of the emblem. Returns: Builder instance for fluent chainingT origin(gio.types.EmblemOrigin propval)Set `origin` property. Params: propval = The origin the emblem is derived from. Returns: Builder instance for fluent chaining