Ryan Scott / menuSystemMbedBroken

Dependencies:   ANSITermMenuSystem

Fork of menuSystemMbed by Ryan Scott

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers menuItem.h Source File

menuItem.h

00001 //
00002 //  menuItem.h
00003 //  menuSystem
00004 //
00005 //  Created by BradDSmith on 2013-02-26.
00006 //  Copyright (c) 2013 BradDSmith. All rights reserved.
00007 //
00008 
00009 #ifndef __menuSystem__menuItem__
00010 #define __menuSystem__menuItem__
00011 
00012 #include <string>
00013 
00014 using namespace std;
00015 
00016 #include "XYPoint.h"
00017 
00018 class menuItem {
00019     int menuID;
00020     XYPoint position;
00021     string  Text;
00022 
00023 public:
00024     menuItem();
00025     void initialize( int ID, const char * text, int x, int y);
00026     void setText( char *);
00027     void setPosition(int x, int y);
00028     void print();
00029     void highlight();
00030     void removeHighLight();
00031     void showselect();
00032     void removeselect();
00033     int getMenuID();
00034     void erase();
00035 };
00036 
00037 
00038 #endif /* defined(__menuSystem__menuItem__) */