Library of menu structure

Dependents:   lcd_menu

Committer:
pyeh9
Date:
Tue Mar 05 20:33:27 2013 +0000
Revision:
1:84d263c8932d
Parent:
0:577f0ec71f4c
Child:
2:2654dc659298
second version - all necessary files in one folder;

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 private:
pyeh9 0:577f0ec71f4c 10
pyeh9 0:577f0ec71f4c 11 public:
pyeh9 0:577f0ec71f4c 12 void (*fun)(); // pointer to a function to execute
pyeh9 0:577f0ec71f4c 13 char* selText; // selection text
pyeh9 0:577f0ec71f4c 14 int pos; // selection position
pyeh9 1:84d263c8932d 15 Menu *childMenu;
pyeh9 0:577f0ec71f4c 16
pyeh9 1:84d263c8932d 17 Selection(void (*)(), int, Menu *, char *);
pyeh9 0:577f0ec71f4c 18
pyeh9 0:577f0ec71f4c 19 //debug functions
pyeh9 0:577f0ec71f4c 20 };
pyeh9 0:577f0ec71f4c 21
pyeh9 0:577f0ec71f4c 22 #endif