DotIndicator is only used within TouchGFX.
 
Symbols
loading...
Files
loading...

DotIndicator class

@class DotIndicator DotIndicator shows a number of small dots where one of the dots is highlighted. This widget is part of the TouchGFX Open Widget Repository. https://github.com/draupnergraphics/touchgfx-widgets @sa DotIndicator

Syntax

class DotIndicator : public Container { public:     DotIndicator();     virtual ~DotIndicator();     void setNumberOfDots(uint8_t size);     void setBitmaps(const Bitmap& normalDot, const Bitmap& highlightedDot);     void goRight();     void goLeft();     void setHighlightPosition(uint8_t index); private:     static const uint8_t MAX_SIZE = 10;     ListLayout unselectedDots;     Image dotHighlighted;     Image dotNormal[MAX_SIZE];     uint8_t numberOfDots;     uint8_t currentDot; };

Fields

MAX_SIZE

No summary provided. Read more...

unselectedDots

No summary provided. Read more...

dotHighlighted

No summary provided. Read more...

dotNormal

No summary provided. Read more...

numberOfDots

No summary provided. Read more...

currentDot

No summary provided. Read more...

Methods

setNumberOfDots()

@fn void DotIndicator::setNumberOfDots(uint8_t size); Sets the number of dots that should be displayed. Read more...

setBitmaps()

@fn void DotIndicator::setBitmaps(const Bitmap& normalDot, const Bitmap& highlightedDot); Sets the bitmaps to be used for normal and highlighted dots. Note that the bitmaps should include the spacing between the dots and that they must have the same width and height. Read more...

goRight()

@fn void DotIndicator::goRight(); Highlight the dot to the right of the current highlighted dot. Read more...

goLeft()

@fn void DotIndicator::goLeft(); Highlight the dot to the left of the current highlighted dot. Read more...

setHighlightPosition()

@fn void DotIndicator::setHighlightPosition(uint8_t index); Sets highlight position. Read more...

setBitmaps()

@fn void DotIndicator::setBitmaps(const Bitmap& normalDot, const Bitmap& highlightedDot); Sets the bitmaps to be used for normal and highlighted dots. Note that the bitmaps should include the spacing between the dots and that they must have the same width and height. Read more...