Snapd.Media

g GObject.Object GObject.Object Snapd.Media Snapd.Media GObject.Object->Snapd.Media

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_height ()

get_media_type ()

get_url ()

get_width ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

height

int

r/w/co

Height of media in pixels

type

str

r/w/co

Type for this media

url

str

r/w/co

URL for this media

width

int

r/w/co

Width of media in pixels

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Snapd.Media(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Snapd.MediaClass

Snapd.Media contains media information.

New in version 1.45.

get_height()
Returns:

a height

Return type:

int

Get the height of the media in pixels or 0 if unknown.

New in version 1.45.

get_media_type()
Returns:

a type name

Return type:

str

Get the type for this media, e.g. “icon” or “screenshot”.

New in version 1.45.

get_url()
Returns:

a URL

Return type:

str

Get the URL for this media, e.g. “http://example.com/media.png”

New in version 1.45.

get_width()
Returns:

a width

Return type:

int

Get the width of the media in pixels or 0 if unknown.

New in version 1.45.

Property Details

Snapd.Media.props.height
Name:

height

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Height of media in pixels

Snapd.Media.props.type
Name:

type

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Type for this media

Snapd.Media.props.url
Name:

url

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

URL for this media

Snapd.Media.props.width
Name:

width

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Width of media in pixels