touchgfx::ZoomAnimationImage::startZoomAndMoveAnimation() is only used within TouchGFX.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesTouchGFXtouchgfx::ZoomAnimationImage::startZoomAndMoveAnimation()

touchgfx::ZoomAnimationImage::startZoomAndMoveAnimation() method

@fn void ZoomAnimationImage::startZoomAndMoveAnimation(int16_t endX, int16_t endY, int16_t endWidth, int16_t endHeight, uint16_t duration, ZoomMode zoomMode = FIXED_LEFT_AND_TOP, EasingEquation xProgressionEquation = &touchgfx::EasingEquations::linearEaseNone, EasingEquation yProgressionEquation = &touchgfx::EasingEquations::linearEaseNone, EasingEquation widthProgressionEquation = &touchgfx::EasingEquations::linearEaseNone, EasingEquation heightProgressionEquation = &touchgfx::EasingEquations::linearEaseNone); Setup and starts the zoom and move animation. Setup and starts the zoom and move animation. At end of the animation the image will have been resized to the endWidth and endHeight and have moved from its original position to the endX and endY. Please note that the ZoomMode might influence the actual end position since the zoom transformation might change the X and Y of the image. The ZoomMode FIXED_LEFT_AND_TOP ensures that the endX and endY will be the actual end position. The development of the width, height, X and Y during the animation is described by the supplied EasingEquations. The container is registered as a TimerWidget. Unregistering is handled automatically when the animation has finished.

Syntax

void startZoomAndMoveAnimation(int16_t endX,     int16_t endY,     int16_t endWidth,     int16_t endHeight,     uint16_t duration,     ZoomMode zoomMode = FIXED_LEFT_AND_TOP,     EasingEquation xProgressionEquation = &touchgfx::EasingEquations::linearEaseNone,     EasingEquation yProgressionEquation = &touchgfx::EasingEquations::linearEaseNone,     EasingEquation widthProgressionEquation = &touchgfx::EasingEquations::linearEaseNone,     EasingEquation heightProgressionEquation = &touchgfx::EasingEquations::linearEaseNone);

Arguments

endX

The X position of the image at animation end. Relative to the container or view that holds the ZoomAnimationImage.

endY

The Y position of the image at animation end. Relative to the container or view that holds the ZoomAnimationImage.

endWidth

The width of the image at animation end.

endHeight

The height of the image at animation end.

duration

The duration of the animation measured in ticks.

zoomMode

The zoom mode that will be used during the animation. Default = FIXED_LEFT_AND_TOP.

xProgressionEquation

The equation that describes the development of the X position during the animation. Default = EasingEquations::linearEaseNone.

yProgressionEquation

The equation that describes the development of the Y position during the animation. Default = EasingEquations::linearEaseNone.

widthProgressionEquation

The equation that describes the development of the width during the animation. Default = EasingEquations::linearEaseNone.

heightProgressionEquation

The equation that describes the development of the height during the animation. Default = EasingEquations::linearEaseNone.