An UI element animation.
More...
#include <UiAnimation.h>
◆ State
Animation state.
Enumerator |
---|
DEFAULT | - Todo:
- Understand and document.
|
ONCE | Animate only once.
|
◆ UiAnimation() [1/2]
UiAnimation::UiAnimation |
( |
const Ogre::String & |
name, |
|
|
UiWidget * |
widget |
|
) |
| |
Constructor.
- Parameters
-
[in] | name | Animation name. |
[in] | widget | Widget to animate. |
◆ ~UiAnimation()
UiAnimation::~UiAnimation |
( |
| ) |
|
|
virtual |
◆ UiAnimation() [2/2]
UiAnimation::UiAnimation |
( |
| ) |
|
|
private |
◆ AddAlphaKeyFrame()
Adds an alpha keyframe to the animation.
- Parameters
-
[in] | key_frame | The keyframe to add. |
◆ AddHeightKeyFrame()
Adds a height keyframe to the animation.
- Parameters
-
[in] | key_frame | The keyframe to add. |
◆ AddRotationKeyFrame()
Adds a rotation keyframe to the animation.
- Parameters
-
[in] | key_frame | The keyframe to add. |
◆ AddScaleKeyFrame()
Adds a scale keyframe to the animation.
- Parameters
-
[in] | key_frame | The keyframe to add. |
◆ AddScissorKeyFrame()
Adds an scissor keyframe to the animation.
- Parameters
-
- Todo:
- Understand and document.
- Parameters
-
- Todo:
- Understand and document.
- Parameters
-
- Todo:
- Understand and document.
- Parameters
-
- Todo:
Understand and document.
What is an scissor keyframe?.
◆ AddTime()
void UiAnimation::AddTime |
( |
const float |
time | ) |
|
Adds time to the animation and updates it.
- Parameters
-
[in] | time | Time to add, in seconds. |
◆ AddWidthKeyFrame()
Adds a width keyframe to the animation.
- Parameters
-
[in] | key_frame | The keyframe to add. |
◆ AddXKeyFrame()
Adds a X position keyframe to the animation.
- Parameters
-
[in] | key_frame | The keyframe to add. |
◆ AddYKeyFrame()
Adds a Y position keyframe to the animation.
- Parameters
-
[in] | key_frame | The keyframe to add. |
◆ GetLength()
float UiAnimation::GetLength |
( |
| ) |
const |
Retrieves the animation length.
- Returns
- The animation length, in seconds.
◆ GetName()
const Ogre::String & UiAnimation::GetName |
( |
| ) |
const |
Retrieves the animation name.
- Returns
- The animation name.
◆ GetTime()
float UiAnimation::GetTime |
( |
| ) |
const |
Retrieves the animation current time.
- Returns
- The animation current time.
◆ KeyFrameGetValue() [1/2]
float UiAnimation::KeyFrameGetValue |
( |
std::vector< UiKeyFrameFloat > & |
data | ) |
|
|
private |
Gets the value from asee UiKeyFrameFloat}.
- Returns
- The value of the keyframe.
◆ KeyFrameGetValue() [2/2]
Ogre::Vector2 UiAnimation::KeyFrameGetValue |
( |
std::vector< UiKeyFrameVector2 > & |
data | ) |
|
|
private |
◆ SetLength()
void UiAnimation::SetLength |
( |
const float |
time | ) |
|
Sets the animation length.
- Parameters
-
[in] | time | The animation length, in seconds. |
◆ SetTime()
void UiAnimation::SetTime |
( |
const float |
time | ) |
|
Sets the time of the animation and updates it.
- Parameters
-
[in] | time | The time of the animation. |
◆ alpha_
◆ height_
List of height keyframes.
◆ length_
float UiAnimation::length_ |
|
private |
◆ name_
Ogre::String UiAnimation::name_ |
|
private |
◆ rotation_
List of rotation keyframes.
◆ scale_
◆ scissor_x_bottom_
- Todo:
- Understand and document.
◆ scissor_x_top_
- Todo:
- Understand and document.
◆ scissor_y_left_
- Todo:
- Understand and document.
◆ scissor_y_right_
- Todo:
- Understand and document.
◆ time_
The animation's current time.
◆ widget_
◆ width_
◆ x_
List of X position keyframes.
◆ y_
List of Y position keyframes.
The documentation for this class was generated from the following files: