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
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()
internalAddElement()
internalRemoveElement()
Examples
touchgfx::ListLayout is referenced by
4 libraries and example projects.
Child classes
touchgfx::ListLayout