주요 내용으로 건너뛰기

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 voidhandleClickEvent(const ClickEvent & event)
This handler is invoked when a mouse click or display touch event has been detected by the system.
virtual voidhandleDragEvent(const DragEvent & event)
This handler is invoked when a drag event has been detected by the system.
virtual voidhandleGestureEvent(const GestureEvent & event)
This handler is invoked when a gesture event has been detected by the system.
virtual voidhandleKeyEvent(uint8_t c)
This handler is invoked when a key (or button) event has been detected by the system.
virtual voidhandlePendingScreenTransition()
This handler is invoked when a change screen event is pending.
virtual voidhandleTickEvent()
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.

Parameters:
eventThe 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.

Parameters:
eventThe 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.

Parameters:
eventThe event data.

Reimplemented by: touchgfx::Application::handleGestureEvent

handleKeyEvent

virtual void handleKeyEvent(uint8_tc)

This handler is invoked when a key (or button) event has been detected by the system.

Parameters:
cThe key or button pressed.

Reimplemented by: touchgfx::Application::handleKeyEvent

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.