Snapd.Icon

g GObject.Object GObject.Object Snapd.Icon Snapd.Icon GObject.Object->Snapd.Icon

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_data ()

get_mime_type ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

data

GLib.Bytes

r/w/co

Icon data

mime-type

str

r/w/co

Icon mime type

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Snapd.Icon(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Snapd.IconClass

Snapd.Icon contains icon data.

New in version 1.0.

get_data()
Returns:

the binary data.

Return type:

GLib.Bytes

Get the binary data for this icon.

New in version 1.0.

get_mime_type()
Returns:

a MIME type.

Return type:

str

Get the mime-type for this icon, e.g. “image/png”.

New in version 1.0.

Property Details

Snapd.Icon.props.data
Name:

data

Type:

GLib.Bytes

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Icon data

Snapd.Icon.props.mime_type
Name:

mime-type

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Icon mime type