Menu system broken

Dependencies:   ANSITermMenuSystem

Fork of menuSystemMbed by Ryan Scott

Committer:
mbedDevLondon
Date:
Thu Feb 28 00:38:31 2013 +0000
Revision:
0:a5ece7312edc
Child:
4:1178a1905490
initial port to mbed

Who changed what in which revision?

UserRevisionLine numberNew 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();
mbedDevLondon 0:a5ece7312edc 31 int getMenuID();
mbedDevLondon 0:a5ece7312edc 32 void erase();
mbedDevLondon 0:a5ece7312edc 33 };
mbedDevLondon 0:a5ece7312edc 34
mbedDevLondon 0:a5ece7312edc 35
mbedDevLondon 0:a5ece7312edc 36 #endif /* defined(__menuSystem__menuItem__) */