CoverTransition
A Transition that slides the new screen over the previous from the given direction.
Inherits from: Transition
Public Functions
CoverTransition(const uint8_t transitionSteps =20) | |
Initializes a new instance of the CoverTransition class. | |
virtual void | handleTickEvent() |
Handles the tick event when transitioning. | |
virtual void | init() |
Initializes the transition. | |
virtual void | tearDown() |
Tears down the Animation. | |
Protected Functions
virtual void | initMoveDrawable(Drawable & d) |
Moves the Drawable to its initial position just outside of the visible area of the display. | |
virtual void | tickMoveDrawable(Drawable & d) |
Moves the Drawable to the new position as calculated in handleTickEvent(). | |
Additional inherited members
Public Functions inherited from Transition
virtual void | invalidate() |
Invalidates the screen when starting the Transition. | |
bool | isDone() const |
Query if the transition is done transitioning. | |
virtual void | setScreenContainer(Container & cont) |
Sets the ScreenContainer. | |
Transition() | |
Initializes a new instance of the Transition class. | |
virtual | ~Transition() |
Finalizes an instance of the Transition class. | |
Protected Attributes inherited from Transition
bool | done |
Flag that indicates when the transition is done. This should be set by implementing classes. | |
Container * | screenContainer |
The screen Container of the Screen transitioning to. | |
Public Functions Documentation
CoverTransition
CoverTransition | ( | const uint8_t | transitionSteps =20 | ) | |
Initializes a new instance of the CoverTransition class.
transitionSteps | (Optional) Number of steps in the transition animation. |
handleTickEvent
virtual void handleTickEvent | ( | ) |
Handles the tick event when transitioning.
It moves the contents of the Screen's container. The direction of the transition determines the direction the contents of the container moves.
Reimplements: touchgfx::Transition::handleTickEvent
init
virtual void init | ( | ) |
Initializes the transition.
Called after the constructor is called, when the application changes the transition.
Reimplements: touchgfx::Transition::init
tearDown
virtual void tearDown | ( | ) |
Tears down the Animation.
Called before the destructor is called, when the application changes the transition.
Reimplements: touchgfx::Transition::tearDown
Protected Functions Documentation
initMoveDrawable
virtual void initMoveDrawable | ( | Drawable & | d | ) | |
Moves the Drawable to its initial position just outside of the visible area of the display.
d | The Drawable to move. |
tickMoveDrawable
virtual void tickMoveDrawable | ( | Drawable & | d | ) | |
Moves the Drawable to the new position as calculated in handleTickEvent().
d | The Drawable to move. |