Custom menu

Fork of Menu by Peihsun Yeh

Committer:
LeoHsueh
Date:
Thu Feb 26 11:57:11 2015 +0000
Revision:
3:3fceb6ff921e
Parent:
2:2654dc659298
Child:
4:396eff5be1a1
Add title, action method.; Del input.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pyeh9 0:577f0ec71f4c 1 #ifndef SELECTION_H
pyeh9 0:577f0ec71f4c 2 #define SELECTION_H
pyeh9 0:577f0ec71f4c 3
pyeh9 1:84d263c8932d 4 #include "Menu.h"
pyeh9 1:84d263c8932d 5
pyeh9 1:84d263c8932d 6 class Menu;
pyeh9 1:84d263c8932d 7
pyeh9 0:577f0ec71f4c 8 class Selection {
pyeh9 0:577f0ec71f4c 9 public:
LeoHsueh 3:3fceb6ff921e 10 Selection(void (*)(), int, Menu *, const char *);
pyeh9 2:2654dc659298 11 void (*fun)(); // pointer to a function to execute
LeoHsueh 3:3fceb6ff921e 12 const char* selText; // selection text
pyeh9 2:2654dc659298 13 int pos; // selection position
pyeh9 1:84d263c8932d 14 Menu *childMenu;
pyeh9 0:577f0ec71f4c 15
LeoHsueh 3:3fceb6ff921e 16 private:
LeoHsueh 3:3fceb6ff921e 17
pyeh9 2:2654dc659298 18
pyeh9 0:577f0ec71f4c 19 };
pyeh9 0:577f0ec71f4c 20
LeoHsueh 3:3fceb6ff921e 21 #endif