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
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.
Child classes
touchgfx::TouchArea