Custom menu

Fork of Menu by Peihsun Yeh

Committer:
LeoHsueh
Date:
Tue Mar 03 03:57:46 2015 +0000
Revision:
4:396eff5be1a1
Parent:
3:3fceb6ff921e
Fix to use FunctionPointer.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pyeh9 0:577f0ec71f4c 1 #ifndef MENU_H
pyeh9 0:577f0ec71f4c 2 #define MENU_H
pyeh9 0:577f0ec71f4c 3
pyeh9 0:577f0ec71f4c 4 #include "mbed.h"
pyeh9 0:577f0ec71f4c 5 #include "Selection.h"
pyeh9 0:577f0ec71f4c 6 #include <vector>
pyeh9 0:577f0ec71f4c 7
pyeh9 1:84d263c8932d 8 class Selection;
pyeh9 1:84d263c8932d 9
pyeh9 0:577f0ec71f4c 10 class Menu {
pyeh9 0:577f0ec71f4c 11 public:
pyeh9 0:577f0ec71f4c 12 vector<Selection> selections;
pyeh9 1:84d263c8932d 13
LeoHsueh 3:3fceb6ff921e 14 Menu(const char *, Menu *parent);
LeoHsueh 3:3fceb6ff921e 15 const char *menuID;
LeoHsueh 3:3fceb6ff921e 16 Menu *parent;
pyeh9 0:577f0ec71f4c 17
pyeh9 0:577f0ec71f4c 18 void add(const Selection &toAdd);
pyeh9 0:577f0ec71f4c 19 char *getText(int);
LeoHsueh 3:3fceb6ff921e 20 private:
LeoHsueh 3:3fceb6ff921e 21
pyeh9 0:577f0ec71f4c 22 };
LeoHsueh 3:3fceb6ff921e 23 #endif