Menu system broken
Dependencies: ANSITermMenuSystem
Fork of menuSystemMbed by
menuItem.h@8:6ddb8c26387a, 2013-05-04 (annotated)
- Committer:
- Rybowonder
- Date:
- Sat May 04 17:37:57 2013 +0000
- Revision:
- 8:6ddb8c26387a
- Parent:
- 4:1178a1905490
For Mitchener
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbedDevLondon | 0:a5ece7312edc | 1 | // |
mbedDevLondon | 0:a5ece7312edc | 2 | // menuItem.h |
mbedDevLondon | 0:a5ece7312edc | 3 | // menuSystem |
mbedDevLondon | 0:a5ece7312edc | 4 | // |
mbedDevLondon | 0:a5ece7312edc | 5 | // Created by BradDSmith on 2013-02-26. |
mbedDevLondon | 0:a5ece7312edc | 6 | // Copyright (c) 2013 BradDSmith. All rights reserved. |
mbedDevLondon | 0:a5ece7312edc | 7 | // |
mbedDevLondon | 0:a5ece7312edc | 8 | |
mbedDevLondon | 0:a5ece7312edc | 9 | #ifndef __menuSystem__menuItem__ |
mbedDevLondon | 0:a5ece7312edc | 10 | #define __menuSystem__menuItem__ |
mbedDevLondon | 0:a5ece7312edc | 11 | |
mbedDevLondon | 0:a5ece7312edc | 12 | #include <string> |
mbedDevLondon | 0:a5ece7312edc | 13 | |
mbedDevLondon | 0:a5ece7312edc | 14 | using namespace std; |
mbedDevLondon | 0:a5ece7312edc | 15 | |
mbedDevLondon | 0:a5ece7312edc | 16 | #include "XYPoint.h" |
mbedDevLondon | 0:a5ece7312edc | 17 | |
mbedDevLondon | 0:a5ece7312edc | 18 | class menuItem { |
mbedDevLondon | 0:a5ece7312edc | 19 | int menuID; |
mbedDevLondon | 0:a5ece7312edc | 20 | XYPoint position; |
mbedDevLondon | 0:a5ece7312edc | 21 | string Text; |
mbedDevLondon | 0:a5ece7312edc | 22 | |
mbedDevLondon | 0:a5ece7312edc | 23 | public: |
mbedDevLondon | 0:a5ece7312edc | 24 | menuItem(); |
mbedDevLondon | 0:a5ece7312edc | 25 | void initialize( int ID, const char * text, int x, int y); |
mbedDevLondon | 0:a5ece7312edc | 26 | void setText( char *); |
mbedDevLondon | 0:a5ece7312edc | 27 | void setPosition(int x, int y); |
mbedDevLondon | 0:a5ece7312edc | 28 | void print(); |
mbedDevLondon | 0:a5ece7312edc | 29 | void highlight(); |
mbedDevLondon | 0:a5ece7312edc | 30 | void removeHighLight(); |
Rybowonder | 4:1178a1905490 | 31 | void showselect(); |
Rybowonder | 4:1178a1905490 | 32 | void removeselect(); |
mbedDevLondon | 0:a5ece7312edc | 33 | int getMenuID(); |
mbedDevLondon | 0:a5ece7312edc | 34 | void erase(); |
mbedDevLondon | 0:a5ece7312edc | 35 | }; |
mbedDevLondon | 0:a5ece7312edc | 36 | |
mbedDevLondon | 0:a5ece7312edc | 37 | |
mbedDevLondon | 0:a5ece7312edc | 38 | #endif /* defined(__menuSystem__menuItem__) */ |