Snapd.Screenshot

g GObject.Object GObject.Object Snapd.Screenshot Snapd.Screenshot GObject.Object->Snapd.Screenshot

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_height ()

get_url ()

get_width ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

height

int

r/w/co

Height of screenshot in pixels

url

str

r/w/co

URL for this screenshot

width

int

r/w/co

Width of screenshot in pixels

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Snapd.Screenshot(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Snapd.ScreenshotClass

Snapd.Screenshot contains screenshot information.

New in version 1.0.

get_height()
Returns:

a height

Return type:

int

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

New in version 1.0.

get_url()
Returns:

a URL

Return type:

str

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

New in version 1.0.

get_width()
Returns:

a width

Return type:

int

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

New in version 1.0.

Property Details

Snapd.Screenshot.props.height
Name:

height

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Height of screenshot in pixels

Snapd.Screenshot.props.url
Name:

url

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

URL for this screenshot

Snapd.Screenshot.props.width
Name:

width

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Width of screenshot in pixels