TelepathyGLib.AvatarRequirements¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
maximum_bytes |
r/w |
he maximum size in bytes of an avatar, or 0 if there is no limit. |
|
maximum_height |
r/w |
The maximum height in pixels of an avatar, or 0 if there is no limit. |
|
maximum_width |
r/w |
The maximum width in pixels of an avatar on this protocol, or 0 if there is no limit. |
|
minimum_height |
r/w |
The minimum height in pixels of an avatar, which MAY be 0 |
|
minimum_width |
r/w |
The minimum width in pixels of an avatar, which MAY be 0 |
|
recommended_height |
r/w |
The recommended height in pixels of an avatar, or 0 if there is no preferred height |
|
recommended_width |
r/w |
The recommended width in pixels of an avatar, or 0 if there is no preferred width. |
|
supported_mime_types |
[ |
r/w |
An array of supported MIME types (e.g. “image/jpeg”) Clients MAY assume that the first type in this array is preferred |
Methods¶
class |
|
Details¶
- class TelepathyGLib.AvatarRequirements¶
The requirements for setting an avatar on a particular protocol.
New in version 0.11.4.
- classmethod new(supported_mime_types, minimum_width, minimum_height, recommended_width, recommended_height, maximum_width, maximum_height, maximum_bytes)¶
- Parameters:
supported_mime_types ([
str
]) – An array of supported MIME types (e.g. “image/jpeg”) Clients MAY assume that the first type in this array is preferredminimum_width (
int
) – The minimum width in pixels of an avatar, which MAY be 0minimum_height (
int
) – The minimum height in pixels of an avatar, which MAY be 0recommended_width (
int
) – The recommended width in pixels of an avatar, or 0 if there is no preferred width.recommended_height (
int
) – The recommended height in pixels of an avatar, or 0 if there is no preferred heightmaximum_width (
int
) – The maximum width in pixels of an avatar on this protocol, or 0 if there is no limit.maximum_height (
int
) – The maximum height in pixels of an avatar, or 0 if there is no limit.maximum_bytes (
int
) – he maximum size in bytes of an avatar, or 0 if there is no limit.
- Returns:
a newly allocated
TelepathyGLib.AvatarRequirements
, free it with tp_avatar_requirements_destroy()- Return type:
Returns: says it all
New in version 0.11.4.