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

touchgfx::Container class

@class Container Container.hpp touchgfx/containers/Container.hpp A Container is a Drawable that can have child nodes. A Container is a Drawable that can have child nodes. The z-order of children is determined by the order in which Drawables are added to the container - the Drawable added last will be front-most on the screen. This class overrides a few functions in Drawable in order to traverse child nodes. Note that containers act as view ports - that is, only the parts of children that intersect with the geometry of the container will be visible (e.g. setting a container's width to 0 will render all children invisible). @see Drawable

Syntax

class Container : public Drawable { public:     Container() : Drawable(),         firstChild(0)     {     }     virtual ~Container() { }     virtual void add(Drawable& d);     virtual void remove(Drawable& d);     virtual void removeAll();     virtual void unlink();     virtual bool contains(const Drawable& d);     virtual void insert(Drawable* previous, Drawable& d);     virtual void getLastChild(int16_t x, int16_t y, Drawable** last);     virtual void draw(const Rect& invalidatedArea) const;     virtual Rect getSolidRect() const;     virtual void forEachChild(GenericCallback<Drawable&>* function);     virtual uint16_t getType() const     {         return (uint16_t)TYPE_CONTAINER;     }     Drawable* getFirstChild()     {         return firstChild;     } protected:     virtual Rect getContainedArea() const;     virtual void moveChildrenRelative(int16_t deltaX, int16_t deltaY);     Drawable* firstChild;      friend class Screen;     virtual void setupDrawChain(const Rect& invalidatedArea, Drawable** nextPreviousElement); };

Fields

firstChild

No summary provided. Read more...

Methods

add()

@fn virtual void Container::add(Drawable& d); Adds a Drawable instance as child to this Container. Adds a Drawable instance as child to this Container. Read more...

remove()

@fn virtual void Container::remove(Drawable& d); Removes a Drawable instance from the list of children. Removes a Drawable instance from the list of children. Read more...

removeAll()

@fn virtual void Container::removeAll(); Removes all children by resetting their parent and sibling pointers. Removes all children by resetting their parent and sibling pointers. Read more...

unlink()

@fn virtual void Container::unlink(); Removes all children by unlinking the first child. Removes all children by unlinking the first child. The parent and sibling pointers of the children are not reset. Read more...

contains()

@fn virtual bool Container::contains(const Drawable& d); Query if this object contains the given drawable. Query if this object contains the given drawable. Read more...

insert()

@fn virtual void Container::insert(Drawable* previous, Drawable& d); Inserts a Drawable instance after the specified child node. Inserts a Drawable instance after the specified child node. If previous is null, the drawable will be inserted as the first element in the list. Read more...

getLastChild()

@fn virtual void Container::getLastChild(int16_t x, int16_t y, Drawable** last); Gets the last child of this container. Gets the last (=highest Z-order) child of this container that is enabled, visible and intersects with the specified point. Recursive function. @see Drawable::getLastChild. Read more...

draw() const

@fn virtual void Container::draw(const Rect& invalidatedArea) const; Draws the children of this container. Draws the children of this container. Only used when JSMOC is disabled. Read more...

getSolidRect() const

@fn virtual Rect Container::getSolidRect() const; Gets solid rectangle of a Container. Gets solid rectangle of a Container. JSMOC does not operate directly on containers. Read more...

forEachChild()

@fn virtual void Container::forEachChild(GenericCallback* function); Calls the specified function for each child in the container. Calls the specified function for each child in the container. Function to call must have the following prototype: void T::func(Drawable&amp;) @see ListLayout::insert for a usage example. Read more...

getType() const

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

getFirstChild()

@fn Drawable* Container::getFirstChild() Obtain a pointer to the first child of this container. Useful if you want to manually iterate the children added to this container. Read more...

getContainedArea() const

@fn virtual Rect Container::getContainedArea() const; Gets a rectangle describing the total area covered by the children of this container. Gets a rectangle describing the total area covered by the children of this container. Read more...

moveChildrenRelative()

@fn virtual void Container::moveChildrenRelative(int16_t deltaX, int16_t deltaY); Calls moveRelative on all children. Calls moveRelative on all children. Read more...

setupDrawChain()

No summary provided. Read more...

Examples

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

Class Tree

Parent classes
Child classes
touchgfx::Container
all items filtered out