touchgfx::AbstractButton::setAction() method
@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
void setAction(GenericCallback< const AbstractButton& >& callback); Arguments
callback
The callback to be executed. The callback will be given a reference to the AbstractButton.