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

touchgfx::TouchArea class

@class TouchArea TouchArea.hpp touchgfx/widgets/TouchArea.hpp Invisible widget used to capture touch events. Invisible widget used to capture touch events. The TouchArea consumes drag events without the widget it self moving. @see AbstractButton

Syntax

class TouchArea : public AbstractButton { public:     TouchArea() : AbstractButton(), pressedAction(0)     {     }     virtual void draw(const Rect& invalidatedArea) const     {     }     virtual void handleDragEvent(const DragEvent& evt)     {     }     virtual void handleClickEvent(const ClickEvent& event);     virtual Rect getSolidRect() const     {         return Rect(0, 0, 0, 0);     }     void setPressedAction(GenericCallback< const AbstractButton& >& callback)     {         pressedAction = &callback;     }     virtual uint16_t getType() const     {         return (uint16_t)TYPE_TOUCHAREA;     } protected:     GenericCallback< const AbstractButton& >* pressedAction;     };

Fields

pressedAction

No summary provided. Read more...

Methods

draw() const

@fn virtual void TouchArea::draw(const Rect& invalidatedArea) const A TouchArea will not draw anything. A TouchArea will not draw anything. Read more...

handleDragEvent()

@fn virtual void TouchArea::handleDragEvent(const DragEvent& evt) A TouchArea will not move when dragged. A TouchArea will not move when dragged. Read more...

handleClickEvent()

@fn virtual void TouchArea::handleClickEvent(const ClickEvent& event); A TouchArea will refine the handling of click events. A TouchArea will refine the handling of click events in order to enable the callback to the pressedAction. Read more...

getSolidRect() const

@fn virtual Rect TouchArea::getSolidRect() const A TouchArea has no solid rectangle. A TouchArea has no solid rectangle. Read more...

setPressedAction()

@fn void TouchArea::setPressedAction(GenericCallback& callback) Associates an action to be performed when the TouchArea is pressed. Associates an action to be performed when the TouchArea is pressed. Read more...

getType() const

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

Examples

touchgfx::TouchArea is referenced by 3 libraries and example projects.

References

LocationText
TouchArea.hpp:34
class TouchArea : public AbstractButton

Class Tree

Child classes
touchgfx::TouchArea
all items filtered out