RiveQtQuickPlugin
|
#include <riveqtquickitem.h>
Inherits QQuickItem.
Public Types | |
enum | LoadingStatus |
Properties | |
QString | fileSource |
LoadingStatus | loadingStatus |
QVector< ArtBoardInfo > | artboards |
QVector< AnimationInfo > | animations |
QVector< StateMachineInfo > | stateMachines |
int | currentArtboardIndex |
int | currentAnimationIndex |
int | currentStateMachineIndex |
bool | interactive |
RiveStateMachineInput * | stateMachineInterface |
RiveRenderSettings::RenderQuality | renderQuality |
RiveRenderSettings::PostprocessingMode | postprocessingMode |
RiveRenderSettings::FillMode | fillMode |
int | frameRate |
A quick item for Rive-based animations.
This class represents a QQuickItem that provides functionalities to work with Rive animations.
|
read |
Contains a list of available animations.
This property holds a list of animations present in the loaded Rive file. Each animation entry, as defined by the AnimationInfo struct, provides meta information like the animation's name, duration, frame rate, and ID.
|
read |
Contains a list of available artboards.
This property holds a list of artboards present in the loaded Rive file. Each artboard contains meta information, as defined by the ArtBoardInfo class, providing details about the artboard's specifications and properties.
|
readwrite |
Represents the currently active animation index.
Change this property's value to alter the animation being played back. The index corresponds to the position of the animation in the animations
list. Modifying the index will start the specified animation.
currentStateMachineIndex
signifies that no state machine is selected.
|
readwrite |
Represents the currently active artboard index.
Set this property to change the active artboard being displayed. The index corresponds to the position of the artboard in the artboards
list. Changing the index will immediately reflect the change in the displayed content.
|
readwrite |
Represents the currently active state machine index.
Altering this property's value changes the active state machine. The index corresponds to the position of the state machine in the stateMachines
list. Set the property to -1
to deselect any active state machine.
|
readwrite |
Represents the source file for the Rive animation.
This property holds the path to the Rive animation file that will be used by the RiveQtQuickItem. Setting this property will initiate the loading process for the given animation. Once the animation is successfully loaded, users can manipulate and control playback via the other properties and methods provided by this class.
|
readwrite |
Represents the fill mode setting.
This property determines how the Rive animation fits within the bounding box of the item.
The possible modes are:
|
read |
Represents the frame rate of the animation.
This property provides the frame rate (in frames per second) at which the loaded Rive animation is intended to be played. It gives an insight into the expected playback speed of the animation.
|
readwrite |
Indicates if the item is interactive.
When set to true, the item responds to mouse interactions. If set to false, it will not register any mouse interactions, except hover effects.
|
read |
Indicates the loading status of the Rive file.
This property represents the current state of the Rive file loading process.
The possible statuses are:
|
readwrite |
Represents the postprocessing.
The property defines whether the RiveQtQuickItem should be postprocessed
The possible modes are:
|
readwrite |
Represents the render quality setting.
This property defines the visual quality of the rendered Rive animation.
The possible qualities are:
|
readwrite |
Represents the state machine property interface.
This object allows introspection and manipulation of the properties and states provided by Rive's state machine. For more details and advanced usage, refer to the detailed documentation specific to RiveStateMachineInput.
|
read |
Contains a list of available state machines.
This property provides a list of state machines that are defined in the loaded Rive file. Each state machine entry, as defined by the StateMachineInfo struct, provides meta information, helping users to understand the structure and possible states of the machine.