Extended definitions for widget event handler functions. More...
#include <event_handlers.hpp>
Public Member Functions | |
| void | onpress (std::function< void(T &)> callback) |
| Register a touchscreen event handler that triggers on press. | |
| void | onpress (std::function< void(const Event &)> callback) |
| Register a touchscreen event handler that triggers on press. | |
| void | onpress (std::function< void()> callback) |
| Register a touchscreen event handler that triggers on press. | |
| void | onrelease (std::function< void(T &)> callback) |
| Register a touchscreen event handler that triggers when the widget stops being pressed. | |
| void | onrelease (std::function< void(const Event &)> callback) |
| Register a touchscreen event handler that triggers when the widget stops being pressed. | |
| void | onrelease (std::function< void()> callback) |
| Register a touchscreen event handler that triggers when the widget stops being pressed. | |
| void | onblur (std::function< void(T &)> callback) |
| Register a touchscreen event handler that triggers when the widget stops being pressed. | |
| void | onblur (std::function< void(const Event &)> callback) |
| Register a touchscreen event handler that triggers when the widget stops being pressed. | |
| void | onblur (std::function< void()> callback) |
| Register a touchscreen event handler that triggers when the widget stops being pressed. | |
| void | onhold (std::function< void(T &, time_t)> callback) |
| Register a touchscreen event handler that repeatedly triggers when the widget is held for a while. | |
| void | onhold (std::function< void(const Event &, time_t)> callback) |
| Register a touchscreen event handler that repeatedly triggers when the widget is held for a while. | |
| void | onhold (std::function< void(time_t)> callback) |
| Register a touchscreen event handler that repeatedly triggers when the widget is held for a while. | |
| void | onhold (std::function< void(T &)> callback) |
| Register a touchscreen event handler that repeatedly triggers when the widget is held for a while. | |
| void | onhold (std::function< void(const Event &)> callback) |
| Register a touchscreen event handler that repeatedly triggers when the widget is held for a while. | |
| void | onhold (std::function< void()> callback) |
| Register a touchscreen event handler that repeatedly triggers when the widget is held for a while. | |
| void | onclick (std::function< void(T &)> callback) |
| Register a touchscreen event handler that triggers on release. | |
| void | onclick (std::function< void(const Event &)> callback) |
| Register a touchscreen event handler that triggers on release. | |
| void | onclick (std::function< void()> callback) |
| Register a touchscreen event handler that triggers on release. | |
Public Member Functions inherited from ui::CoreEventHandlers< T > | |
| virtual void | onpress (std::function< void(T &, const Event &)> callback)=0 |
| Register a touchscreen event handler that triggers on press. | |
| virtual void | onrelease (std::function< void(T &, const Event &)> callback)=0 |
| Register a touchscreen event handler that triggers when the widget stops being pressed. | |
| virtual void | onblur (std::function< void(T &, const Event &)> callback)=0 |
| Register a touchscreen event handler that triggers when the widget stops being pressed. | |
| virtual void | onhold (std::function< void(T &, const Event &, time_t)> callback)=0 |
| Register a touchscreen event handler that repeatedly triggers when the widget is held for a while. | |
| void | onclick (std::function< void(T &, const Event &)> callback) |
| Register a touchscreen event handler that triggers on release. | |
Extended definitions for widget event handler functions.
| T | The derived class. |
|
inline |
Register a touchscreen event handler that triggers when the widget stops being pressed.
| callback | A callback function that is called when a widget stops being pressed after previously receiving a "press" event. |
|
inline |
Register a touchscreen event handler that triggers when the widget stops being pressed.
| callback | A callback function that is called when a widget stops being pressed after previously receiving a "press" event. |
|
inline |
Register a touchscreen event handler that triggers when the widget stops being pressed.
| callback | A callback function that is called when a widget stops being pressed after previously receiving a "press" event. |
|
inline |
Register a touchscreen event handler that triggers on release.
This is identical to the onrelease() function.
| callback | A callback function that is called when this widget receives a "release" event. |
|
inline |
Register a touchscreen event handler that triggers on release.
This is identical to the onrelease() function.
| callback | A callback function that is called when this widget receives a "release" event. |
|
inline |
Register a touchscreen event handler that triggers on release.
This is identical to the onrelease() function.
| callback | A callback function that is called when this widget receives a "release" event. |
|
inline |
Register a touchscreen event handler that repeatedly triggers when the widget is held for a while.
| callback | A callback function that is called when this widget has been continuously pressed for a while. |
|
inline |
Register a touchscreen event handler that repeatedly triggers when the widget is held for a while.
| callback | A callback function that is called when this widget has been continuously pressed for a while. |
|
inline |
Register a touchscreen event handler that repeatedly triggers when the widget is held for a while.
| callback | A callback function that is called when this widget has been continuously pressed for a while. |
|
inline |
Register a touchscreen event handler that repeatedly triggers when the widget is held for a while.
| callback | A callback function that is called when this widget has been continuously pressed for a while. |
|
inline |
Register a touchscreen event handler that repeatedly triggers when the widget is held for a while.
| callback | A callback function that is called when this widget has been continuously pressed for a while. |
|
inline |
Register a touchscreen event handler that repeatedly triggers when the widget is held for a while.
| callback | A callback function that is called when this widget has been continuously pressed for a while. |
|
inline |
Register a touchscreen event handler that triggers on press.
| callback | A callback function that is called when this widget receives a "press" event. |
|
inline |
Register a touchscreen event handler that triggers on press.
| callback | A callback function that is called when this widget receives a "press" event. |
|
inline |
Register a touchscreen event handler that triggers on press.
| callback | A callback function that is called when this widget receives a "press" event. |
|
inline |
Register a touchscreen event handler that triggers when the widget stops being pressed.
| callback | A callback function that is called when this widget receives a "release" event. |
|
inline |
Register a touchscreen event handler that triggers when the widget stops being pressed.
| callback | A callback function that is called when this widget receives a "release" event. |
|
inline |
Register a touchscreen event handler that triggers when the widget stops being pressed.
| callback | A callback function that is called when this widget receives a "release" event. |