menu system menus complete

Fork of menuSystemMbed by Brad Smith

Committer:
Rybowonder
Date:
Fri Mar 08 17:37:11 2013 +0000
Revision:
3:bdf42b6c15f4
Parent:
0:a5ece7312edc
menus complete

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__) */