UIEventListener
touchgfx/UIEventListener.hpp
This class declares a handler interface for user interface events, i.e. events generated by the users interaction with the device. With the exception of the system timer tick, all other system events, which are not related to the user interface device peripherals (display, keys etc.) are not part of this interface.
Inherited by: Application
Public Functions
virtual void | handleClickEvent(const ClickEvent & event) |
This handler is invoked when a mouse click or display touch event has been detected by the system. | |
virtual void | handleDragEvent(const DragEvent & event) |
This handler is invoked when a drag event has been detected by the system. | |
virtual void | handleGestureEvent(const GestureEvent & event) |
This handler is invoked when a gesture event has been detected by the system. | |
virtual void | handleKeyEvent(uint8_t c) |
This handler is invoked when a key (or button) event has been detected by the system. | |
virtual void | handlePendingScreenTransition() |
This handler is invoked when a change screen event is pending. | |
virtual void | handleTickEvent() |
This handler is invoked when a system tick event has been generated. | |
virtual | ~UIEventListener() |
Finalizes an instance of the UIEventListener class. | |
Public Functions Documentation
handleClickEvent
virtual void handleClickEvent | ( | const ClickEvent & | event | ) | |
This handler is invoked when a mouse click or display touch event has been detected by the system.
event | The event data. |
Reimplemented by: touchgfx::Application::handleClickEvent
handleDragEvent
virtual void handleDragEvent | ( | const DragEvent & | event | ) | |
This handler is invoked when a drag event has been detected by the system.
event | The event data. |
Reimplemented by: touchgfx::Application::handleDragEvent
handleGestureEvent
virtual void handleGestureEvent | ( | const GestureEvent & | event | ) | |
This handler is invoked when a gesture event has been detected by the system.
event | The event data. |
Reimplemented by: touchgfx::Application::handleGestureEvent
handleKeyEvent
virtual void handleKeyEvent | ( | uint8_t | c | ) | |
This handler is invoked when a key (or button) event has been detected by the system.
c | The key or button pressed. |
Reimplemented by: touchgfx::Application::handleKeyEvent
handlePendingScreenTransition
virtual void handlePendingScreenTransition | ( | ) |
This handler is invoked when a change screen event is pending.
Reimplemented by: touchgfx::MVPApplication::handlePendingScreenTransition, touchgfx::Application::handlePendingScreenTransition
handleTickEvent
virtual void handleTickEvent | ( | ) |
This handler is invoked when a system tick event has been generated.
The system tick period is configured in the HAL.
Reimplemented by: touchgfx::Application::handleTickEvent
~UIEventListener
virtual ~UIEventListener | ( | ) |
Finalizes an instance of the UIEventListener class.