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.
virtual void setPositionOfCarouselElement(uint8_t index,
int16_t x,
int16_t y,
uint16_t width,
uint16_t height);
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.
Functions called by Carousel::setPositionOfCarouselElement()
Carousel::setPositionOfCarouselElement()
__assert_func() all items filtered out
Data read by Carousel::setPositionOfCarouselElement()
Data written by Carousel::setPositionOfCarouselElement()
Carousel::setPositionOfCarouselElement()