TouchGFX + 0/4 examples
CodeScope will show references to touchgfx::ListLayout from the following samples and libraries:
Examples
STM32469I-Discovery
Demonstrations
STM32469I_EVAL
Demonstrations
STM324x9I_EVAL
Demonstrations
STM32F429I-Discovery
Demonstrations
 
Symbols
loading...
Files
loading...

touchgfx::ListLayout class

@class ListLayout ListLayout.hpp touchgfx/containers/ListLayout.hpp This class provides a layout mechanism for arranging Drawable instances adjacently in the specified Direction. This class provides a layout mechanism for arranging Drawable instances adjacently in the specified Direction. The first element in the ListLayout is positioned in the ListLayout origin (0,0). The dimension of this class is automatically expanded to cover the area of the added Drawable instances. @see Container

Syntax

class ListLayout : public Container { public:     ListLayout(const Direction d = SOUTH)         : Container(), direction(d), offset(0)     {         assert((d == SOUTH || d == EAST) && "Chosen direction not supported");     }     virtual ~ListLayout() { }     virtual void setDirection(const Direction d);     virtual Direction getDirection() const     {         return direction;     }     virtual void add(Drawable& d);     virtual void remove(Drawable& d);     virtual void insert(Drawable* previousElement, Drawable& d);     virtual void removeAll();     virtual uint16_t getType() const     {         return (uint16_t)TYPE_LISTLAYOUT;     } private:     void internalAddElementAt(Drawable& d, int16_t coord);     void internalAddElement(Drawable& d);     void internalRemoveElement(Drawable& d, int16_t coord);     Direction direction;     int16_t offset; };

Fields

direction

No summary provided. Read more...

offset

No summary provided. Read more...

Methods

setDirection()

@fn virtual void ListLayout::setDirection(const Direction d); Sets the direction of the ListLayout. Sets the direction of the ListLayout. If elements have already been added to the ListLayout, these elements will be repositioned to adhere to the new direction. @see getDirection(). Read more...

getDirection() const

@fn virtual Direction ListLayout::getDirection() const Gets the direction of the ListLayout. Gets the direction of the ListLayout. @see setDirection(). Read more...

add()

@fn virtual void ListLayout::add(Drawable& d); Adds a Drawable instance to the end of the list. Adds a Drawable instance to the end of the list. The Drawable dimensions shall be set prior to addition. Read more...

remove()

@fn virtual void ListLayout::remove(Drawable& d); Removes a Drawable. Removes a Drawable. Safe to call even if drawable has not been added. Read more...

insert()

@fn virtual void ListLayout::insert(Drawable* previousElement, Drawable& d); Inserts a Drawable. Inserts a Drawable. Read more...

removeAll()

@fn virtual void ListLayout::removeAll(); Removes all children. Removes all children by resetting their parent and sibling pointers. In addition, the geometry is reset and any parent is signaled of the change. Read more...

getType() const

@fn virtual uint16_t ListLayout::getType() const For GUI testing only. For GUI testing only. Returns type of this drawable. Read more...

internalAddElementAt()

No summary provided. Read more...

internalAddElement()

No summary provided. Read more...

internalRemoveElement()

No summary provided. Read more...

Examples

touchgfx::ListLayout is referenced by 4 libraries and example projects.

References

LocationText
ListLayout.hpp:38
class ListLayout : public Container

Class Tree

Child classes
touchgfx::ListLayout
all items filtered out