Carousel::setPositionOfCarouselElement() is only used within TouchGFX.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesTouchGFXCarousel::setPositionOfCarouselElement()

Carousel::setPositionOfCarouselElement() method

@fn virtual void Carousel::setPositionOfCarouselElement(uint8_t index, int16_t x, int16_t y, uint16_t width, uint16_t height); Setup a carousel graphical element. This is what defines the position and sizes of all the graphical elements in the carousel, so must be called for all visible elements and the two invisible end elements in the carousel.

Syntax

virtual void setPositionOfCarouselElement(uint8_t index,     int16_t x,     int16_t y,     uint16_t width,     uint16_t height);
Implemented in Carousel.cpp:58

Arguments

index

the index of the visible/invisible element to specify position and size for. Index 0 is the invisible element to the left. 1-5 is the visible elements from left to right. 6 is the index for the invisible element to the right.

x

the x coordinate for the visible/invisible element.

y

the y coordinate for the visible/invisible element.

width

the width for the visible/invisible element.

height

the height for the visible/invisible element.

References

LocationText
Carousel.cpp:58
void Carousel::setPositionOfCarouselElement(uint8_t index, int16_t x, int16_t y, uint16_t width, uint16_t height)
Carousel.hpp:89
virtual void setPositionOfCarouselElement(uint8_t index, int16_t x, int16_t y, uint16_t width, uint16_t height);

Call Tree

Functions called by Carousel::setPositionOfCarouselElement()
Carousel::setPositionOfCarouselElement()
__assert_func()
all items filtered out