-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMenuItemSD.h
28 lines (21 loc) · 846 Bytes
/
MenuItemSD.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
#ifndef _MenuItemSD_H_
#define _MenuItemSD_H_
#include "MenuItem.h"
class MenuItemSD : public MenuItem {
static uint16_t maxFileCount;
public:
String path;
bool isDir;
MenuItemSD(const String& titleStr, std::function<void(MenuItem*)>cb)
: MenuItem(titleStr, cb), path(), isDir(true) {};
MenuItemSD(const String& titleStr, const std::vector<MenuItem*> &sub)
: MenuItem(titleStr, sub), path(), isDir(true) {};
// MenuItemSD(const String& t, std::function<void(MenuItem*)>cb, int tg = 0) : MenuItem(t, cb, tg) , path(), isDir(true) {};
// MenuItemSD(const String& t, MenuItem* sub[] = 0, int tg = 0) : MenuItem(t, sub, tg) , path(), isDir(true) {};
MenuItemSD(const String& p, bool isdir, const String& t)
: MenuItem(t), path(p), isDir(isdir) {};
virtual void OnEnter();
virtual void OnAfterDraw();
};
//*/
#endif