Skip to main content

WipeTransition

touchgfx/transitions/WipeTransition.hpp

A Transition that expands the new screen over the previous from the given direction. This transition only draws the pixels in the framebuffer once, and never moves any pixels. It is therefore very useful on MCUs with limited performance.

Inherits from: Transition

Public Functions​

virtual voidhandleTickEvent()
Handles the tick event when transitioning.
virtual voidinit()
Initializes the transition.
virtual voidinvalidate()
Invalidates the screen when starting the Transition.
WipeTransition(const uint8_t transitionSteps =20)
Initializes a new instance of the WipeTransition class.

Additional inherited members​

Protected Classes inherited from Transition​

classFullSolidRect
A Widget that reports solid and but does not draw anything.

Public Functions inherited from Transition​

boolisDone() const
Query if the transition is done transitioning.
virtual voidsetScreenContainer(Container & cont)
Sets the ScreenContainer.
virtual voidtearDown()
Tears down the Animation.
Transition()
Initializes a new instance of the Transition class.
virtual ~Transition()
Finalizes an instance of the Transition class.

Protected Attributes inherited from Transition​

booldone
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​

handleTickEvent​

virtual void handleTickEvent()

Handles the tick event when transitioning.

It uncovers and invalidates increasing parts of the new screen elements.

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()

Invalidates the screen when starting the Transition.

Default is to invalidate the whole screen. Subclasses can do partial invalidation.

Reimplements: touchgfx::Transition::invalidate

WipeTransition​

WipeTransition(const uint8_ttransitionSteps =20)

Initializes a new instance of the WipeTransition class.

Parameters:
transitionSteps(Optional) Number of steps in the transition animation.