BlockTransition
A Transition that draws two small blocks in every frame. It is therefore very useful on MCUs with limited performance.
Inherits from: Transition
Public Functions
| BlockTransition() | |
| Initializes a new instance of the BlockTransition class. | |
| virtual void | handleTickEvent() |
| Handles the tick event when transitioning. | |
| virtual void | init() |
| Initializes the transition. | |
| virtual void | invalidate() |
| Block transition does not require an invalidation. | |
| virtual void | tearDown() |
| Tears down the Animation. | |
Additional inherited members
Public Functions inherited from 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
BlockTransition
Initializes a new instance of the BlockTransition class.
| transitionSteps | (Optional) Number of steps in the transition animation. |
handleTickEvent
| virtual void handleTickEvent | ( | ) |
Handles the tick event when transitioning.
It uncovers and invalidates two blocks in every frame, for a total of 24 frames.
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
invalidate
| virtual void invalidate | ( | ) |
Block transition does not require an invalidation.
Invalidation is handled by the class. Do no invalidation initially.
Reimplements: touchgfx::Transition::invalidate
tearDown
| virtual void tearDown | ( | ) |
Tears down the Animation.
Called before the destructor is called, when the application changes the transition.
Reimplements: touchgfx::Transition::tearDown