touchgfx::AbstractButton class
@class AbstractButton AbstractButton.hpp touchgfx/widgets/AbstractButton.hpp This class defines an abstract interface for button-like elements. This class defines an abstract interface for button-like elements. A button is a clickable element that has two states - pressed or released - and executes an action when the pressed->released transition is made. @see Widget
Methods
handleClickEvent()
@fn virtual void AbstractButton::handleClickEvent(const ClickEvent& event); Updates the current state of the button. Updates the current state of the button - pressed or released - and invalidates it. If a transition from the pressed to the released state was made, the associated action is executed and then the Widget is invalidated. @see Drawable::handleClickEvent().
Read more...
setAction()
@fn void AbstractButton::setAction(GenericCallback& callback) Associates an action to be performed when the AbstractButton is clicked. Associates an action to be performed when the AbstractButton is clicked. @see GenericCallback.
Read more...
getPressedState() const
@fn virtual bool AbstractButton::getPressedState() const Function to determine whether this AbstractButton is currently pressed. Function to determine whether this AbstractButton is currently pressed.
Read more...
getType() const
@fn virtual uint16_t AbstractButton::getType() const For GUI testing only. For GUI testing only. Returns type of this drawable.
Read more...
Examples
touchgfx::AbstractButton is referenced by
4 libraries and example projects.
Parent classes
Child classes
touchgfx::AbstractButton
Variables of touchgfx::AbstractButton type
touchgfx::AbstractButton