Gly.FrameRequest¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
|||
r |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gly.FrameRequest(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Defines which parts of an image to load.
::: warning Loaders can and frequently will ignore instructions set in
GlyFrameRequest. The reason is that for most loaders many instructions don’t have a meaningful interpretation.New in version 2.0.
- classmethod new()¶
- Returns:
a new [class`FrameRequest`]
- Return type:
Creates a new frame request.
New in version 2.0.
- set_loop_animation(loop_animation)¶
- Parameters:
loop_animation (
bool) –
Controls if first frame is returned after last frame
By default, this option is set to
TRUE, returning the first frame, if the previously requested frame was the last frame.New in version 2.0.1.
- set_scale(width, height)¶
-
Set maximum dimensions for the frame. The texture will be scaled to be within the maximum dimensions while keeping its aspect ratio. This option is especially useful to SVGs which will be rendered at the respective size.
::: warning Most loaders will ignore this option. Currently, only the SVG loader is known to obay it.
New in version 2.0.
Property Details¶
- Gly.FrameRequest.props.loop_animation¶