TouchGFX + 0/1 examples
CodeScope will show references to touchgfx::Widget from the following samples and libraries:
Examples
STM32F429I-Discovery
Demonstrations
 
Symbols
loading...
Files
loading...

touchgfx::Widget class

@class Widget Widget.hpp touchgfx/widgets/Widget.hpp A Widget is a Drawable leaf (i.e. not a container). A Widget is a Drawable leaf (i.e. not a container). It does not currently contain any implementation code, since the Drawable base class handles everything related to leaf nodes. Extend this when implementing custom widgets. @see Drawable

Syntax

class Widget : public Drawable { public:     Widget() : Drawable() { }     virtual ~Widget() { }     virtual void getLastChild(int16_t x, int16_t y, Drawable** last)     {         if (isVisible() && isTouchable())         {             *last = this;         }     }     virtual uint16_t getType() const     {         return (uint16_t)TYPE_WIDGET;     } };

Methods

getLastChild()

@fn virtual void Widget::getLastChild(int16_t x, int16_t y, Drawable** last) Function for obtaining the the last child of this widget that intersects with the specified point. Function for obtaining the the last child of this widget that intersects with the specified point. Used in input event handling for obtaining the appropriate drawable that should receive the event. Note that input events must be delegated to the last drawable of the tree (meaning highest z-order / front-most drawable). Only containers can have children, so this implementation simply yields itself as result. The container implementation will filter children that do not intersect with the point or are not visible/enabled, so performing those checks are unnecessary. Read more...

getType() const

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

Examples

touchgfx::Widget is referenced by 1 libraries and example projects.