Gio.EmblemedIcon - Classes - Gio 2.0 (original) (raw)
g GObject.GInterface GObject.GInterface Gio.Icon Gio.Icon GObject.GInterface->Gio.Icon GObject.Object GObject.Object Gio.EmblemedIcon Gio.EmblemedIcon GObject.Object->Gio.EmblemedIcon Gio.Icon->Gio.EmblemedIcon
Subclasses:
None
Methods¶
Inherited:
GObject.Object (37), Gio.Icon (6)
Structs:
class | new (icon, emblem) |
---|---|
add_emblem (emblem) | |
clear_emblems () | |
get_emblems () | |
get_icon () |
Virtual Methods¶
Inherited:
GObject.Object (7), Gio.Icon (4)
Properties¶
Name | Type | Flags | Short Description |
---|---|---|---|
gicon | Gio.Icon | r/w/co |
Signals¶
Inherited:
Fields¶
Inherited:
Name | Type | Access | Description |
---|---|---|---|
parent_instance | GObject.Object | r |
Class Details¶
class Gio.EmblemedIcon(**kwargs)¶
Bases:
Abstract:
No
Structure:
GEmblemedIcon
is an implementation of [iface`Gio`.Icon] that supports adding an emblem to an icon. Adding multiple emblems to an icon is ensured via [method`Gio`.EmblemedIcon.add_emblem].
Note that GEmblemedIcon
allows no control over the position of the emblems. See also [class`Gio`.Emblem] for more information.
classmethod new(icon, emblem)[source]¶
Parameters:
- icon (Gio.Icon) – a Gio.Icon
- emblem (Gio.Emblem or None) – a Gio.Emblem, or None
Returns:
a new Gio.Icon
Return type:
Creates a new emblemed icon for icon with the emblem emblem.
New in version 2.18.
Parameters:
emblem (Gio.Emblem) – a Gio.Emblem
Adds emblem to the GLib.List of Gio.Emblems.
New in version 2.18.
Removes all the emblems from icon.
New in version 2.28.
Returns:
a GLib.List ofGio.Emblems that is owned by self
Return type:
Gets the list of emblems for the icon.
New in version 2.18.
Returns:
a Gio.Icon that is owned by self
Return type:
Gets the main icon for self.
New in version 2.18.
Property Details¶
Gio.EmblemedIcon.props.gicon¶
Name:
gicon
Type:
Default Value:
Flags:
READABLE, WRITABLE, CONSTRUCT_ONLY
The [iface`Gio`.Icon] to attach emblems to.
New in version 2.18.