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:

GObject.ObjectClass (5)

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:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name Type Access Description
parent_instance GObject.Object r

Class Details

class Gio.EmblemedIcon(**kwargs)

Bases:

GObject.Object, Gio.Icon

Abstract:

No

Structure:

Gio.EmblemedIconClass

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:

Returns:

a new Gio.Icon

Return type:

Gio.EmblemedIcon

Creates a new emblemed icon for icon with the emblem emblem.

New in version 2.18.

add_emblem(emblem)[source]

Parameters:

emblem (Gio.Emblem) – a Gio.Emblem

Adds emblem to the GLib.List of Gio.Emblems.

New in version 2.18.

clear_emblems()[source]

Removes all the emblems from icon.

New in version 2.28.

get_emblems()[source]

Returns:

a GLib.List ofGio.Emblems that is owned by self

Return type:

[Gio.Emblem]

Gets the list of emblems for the icon.

New in version 2.18.

get_icon()[source]

Returns:

a Gio.Icon that is owned by self

Return type:

Gio.Icon

Gets the main icon for self.

New in version 2.18.

Property Details

Gio.EmblemedIcon.props.gicon

Name:

gicon

Type:

Gio.Icon

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The [iface`Gio`.Icon] to attach emblems to.

New in version 2.18.