38 lines
610 B
C++
38 lines
610 B
C++
/*
|
|
* MenuObjEvent.h
|
|
*
|
|
* Created on: Dec 11, 2022
|
|
* Author: tylen
|
|
*/
|
|
|
|
#ifndef MENU_MENUOBJEVENT_H_
|
|
#define MENU_MENUOBJEVENT_H_
|
|
|
|
class MenuObjEvent
|
|
{
|
|
public:
|
|
virtual ~MenuObjEvent (){};
|
|
|
|
enum EventType
|
|
{
|
|
/** Start of the event */
|
|
eFocus,
|
|
/** End of the event*/
|
|
eUnFocus,
|
|
/** Refresh event */
|
|
eRefresh,
|
|
/** Button toggle event type */
|
|
eClick,
|
|
/** Rotary clockwise */
|
|
eRollClockWise,
|
|
/** Rotary counter clockwise */
|
|
eRollCClockWise,
|
|
};
|
|
MenuObjEvent (EventType e = eFocus) : type (e){};
|
|
EventType type;
|
|
};
|
|
|
|
|
|
|
|
#endif /* MENU_MENUOBJEVENT_H_ */
|