C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
ui_control_event.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  UIControlEvent {
  NONE , PUSH , DOUBLE_PUSH , LONG_PUSH ,
  RELEASED_AFTER_LONG_TIME , RELEASED_AFTER_SHORT_TIME , INCREMENT , DECREMENT ,
  TIME_OUT
}
 The list of predefined events that a button, or more generally an User Interface Controller, can return, leaving to the application the responsibility to act as required by its specification. More...
 

Detailed Description

Author
xiansnn (xians.nosp@m.nn@h.nosp@m.otmai.nosp@m.l.co.nosp@m.m)
Version
0.1
Date
2025-01-11

Enumeration Type Documentation

◆ UIControlEvent

enum class UIControlEvent
strong

The list of predefined events that a button, or more generally an User Interface Controller, can return, leaving to the application the responsibility to act as required by its specification.

Enumerator
NONE 

null event, no operation expected.

PUSH 

event triggered when a button is pushed

DOUBLE_PUSH 

event triggered when a button is double-pushed

Todo
Not implemented. To find a way to do "DOUBLE_PUSH"
LONG_PUSH 

event triggered when a button is held more than a configurable duration.

RELEASED_AFTER_LONG_TIME 

event triggered when a button is released after a configurable duration.

RELEASED_AFTER_SHORT_TIME 

event triggered when a button is released before a configurable duration.

INCREMENT 

event that signals the user trig an increment order.

DECREMENT 

event that signals the user trig an decrement order.

TIME_OUT 

event that signals nothing happens after a configurable period of time.