Libosinfo.AvatarFormat

g GObject.Object GObject.Object Libosinfo.Entity Libosinfo.Entity GObject.Object->Libosinfo.Entity Libosinfo.AvatarFormat Libosinfo.AvatarFormat Libosinfo.Entity->Libosinfo.AvatarFormat

Subclasses:

None

Methods

Inherited:

Libosinfo.Entity (15), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_alpha ()

get_height ()

get_mime_types ()

get_width ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Libosinfo.Entity (1)

Name

Type

Flags

Short Description

alpha

bool

r

Whether alpha channel is supported in the avatar.

height

int

r

The required height (in pixels) of the avatar.

mime-types

int

r

The allowed mime-types for the avatar

width

int

r

The required width (in pixels) of the avatar

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Libosinfo.Entity

r

Class Details

class Libosinfo.AvatarFormat(**kwargs)
Bases:

Libosinfo.Entity

Abstract:

No

Structure:

Libosinfo.AvatarFormatClass

classmethod new()
Returns:

the necessary information to create an avatar for an user

Return type:

Libosinfo.AvatarFormat

Construct a new user avatar file for an Libosinfo.InstallScript.

New in version 0.2.8.

get_alpha()
Returns:

Whether alpha channel is supported in the avatar.

Return type:

bool

New in version 0.2.2.

get_height()
Returns:

the required height (in pixels) of the avatar, or -1.

Return type:

int

New in version 0.2.2.

get_mime_types()
Returns:

the required mime-types of the avatar.

Return type:

[str]

New in version 0.2.2.

get_width()
Returns:

the required width (in pixels) of the avatar, or -1.

Return type:

int

New in version 0.2.2.

Property Details

Libosinfo.AvatarFormat.props.alpha
Name:

alpha

Type:

bool

Default Value:

True

Flags:

READABLE

Whether alpha channel is supported in the avatar.

Libosinfo.AvatarFormat.props.height
Name:

height

Type:

int

Default Value:

-1

Flags:

READABLE

The required height (in pixels) of the avatar.

Libosinfo.AvatarFormat.props.mime_types
Name:

mime-types

Type:

int

Default Value:

None

Flags:

READABLE

The allowed mime-types for the avatar.

Libosinfo.AvatarFormat.props.width
Name:

width

Type:

int

Default Value:

-1

Flags:

READABLE

The required width (in pixels) of the avatar.