Custom menu
Fork of Menu by
Selection.h@4:396eff5be1a1, 2015-03-03 (annotated)
- 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?
User | Revision | Line number | New 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 | 4:396eff5be1a1 | 10 | Selection(FunctionPointer *fun, int, Menu *, const char *); |
LeoHsueh | 4:396eff5be1a1 | 11 | FunctionPointer *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 |