OHOS::Animator
Graphic
Description:
Represents an animator.
This class is used to set the animator attributes, such as the duration, whether an animator is repeated, start and stop of an animator.
Since:
1.0
Version:
1.0
Public Member Function Name
|
Description
|
()
|
A default constructor used to create an Animator instance.
|
(AnimatorCallback callback, view, uint32_t time, bool repeat)
|
A constructor used to create an instance.
|
~Animator ()
|
virtual
A destructor used to delete the instance.
|
Start ()
|
void
Starts this animator.
|
()
|
void
Stops this animator.
|
Pause ()
|
void
Pauses this animator.
|
()
|
void
Resumes this animator from where it was paused.
|
GetState () const
|
uint8_t
Obtains the current state of this animator.
|
(uint8_t state)
|
Sets the current state for this animator.
|
GetTime () const
|
uint32_t
Obtains the total duration of this animator.
|
(uint32_t time)
|
void
Sets the total duration for this animator.
|
() const
|
uint32_t
Obtains the running time of this animator.
|
SetRunTime (uint32_t runTime)
|
void
Sets the running time for this animator.
|
() const
|
bool
Checks whether this animator is repeated.
|
operator new (size_t size)
|
void
Overrides the new function.
|
(void p)
|
Overrides the delete function.
|