Libosinfo.AvatarFormat¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Whether alpha channel is supported in the avatar. |
||
r |
The required height (in pixels) of the avatar. |
||
r |
The allowed mime-types for the avatar |
||
r |
The required width (in pixels) of the avatar |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Libosinfo.AvatarFormat(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
the necessary information to create an avatar for an user
- Return type:
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:
New in version 0.2.2.
- get_height()¶
- Returns:
the required height (in pixels) of the avatar, or -1.
- Return type:
New in version 0.2.2.
Property Details¶
- Libosinfo.AvatarFormat.props.alpha¶
-
Whether alpha channel is supported in the avatar.
- Libosinfo.AvatarFormat.props.height¶
-
The required height (in pixels) of the avatar.
- Libosinfo.AvatarFormat.props.mime_types¶
-
The allowed mime-types for the avatar.