91 actionMap[type] = std::move (actionCallback);
98 return actionMap.find (type) != actionMap.end();
106 auto iter = actionMap.find (type);
108 if (iter == actionMap.end())
A simple wrapper for building a collection of supported accessibility actions and corresponding callb...
bool invoke(AccessibilityActionType type) const
If an action has been registered for the provided action type, invokes the action and returns true.
AccessibilityActions & addAction(AccessibilityActionType type, std::function< void()> actionCallback)
Adds an action.
bool contains(AccessibilityActionType type) const
Returns true if the specified action is supported.
AccessibilityActions()=default
Constructor.
AccessibilityActionType
An action that can be performed by an accessible UI element.
@ showMenu
Represents the user showing a contextual menu for a UI element.
@ focus
Indicates that the UI element has received focus.
@ toggle
Represents a "toggle" action.
@ press
Represents a "press" action.