-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVerticalMenuItem.h
41 lines (32 loc) · 1.03 KB
/
VerticalMenuItem.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// VerticalMenuItem.h
#pragma once
#ifndef _VERTICALMENUITEM_h
#define _VERTICALMENUITEM_h
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
#include "FishLightProgram.h"
#include "BuildConsts.h"
//#include "VerticalMenuScreen.h"
#include "VerticalMenuItemType.h"
#include "VerticalMenuFunction.h"
#include "MenuItemFunc.h"
class VerticalMenuItem
{
public:
String name{ "" };
MenuItemFunc changeAction{ nullptr };
MenuItemFunc confirmAction{ nullptr };
MenuItemFunc cancelAction{ nullptr };
VerticalMenuItem(const String& name);
virtual ~VerticalMenuItem(){}
virtual void DrawToScreen(FishLightProgram* program, VerticalMenuScreen* screen, bool isSelected) {}
virtual void OnPressRight(FishLightProgram* program, VerticalMenuScreen* screen) {}
virtual void OnPressLeft(FishLightProgram* program, VerticalMenuScreen* screen) {}
#if FIVE_BUTTON_BUILD
virtual void OnPressEnter(FishLightProgram* program, VerticalMenuScreen* screen) {}
#endif
};
#endif