Ryan Scott / menuSystemMbed

Fork of menuSystemMbed by Brad Smith

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MainMenu.h Source File

MainMenu.h

00001 //
00002 //  MainMenu.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__MainMenu__
00010 #define __menuSystem__MainMenu__
00011 
00012 #include "menuItem.h"
00013 
00014 class MainMenu {
00015     static const int MAXITEMS = 5;
00016     menuItem menuItem[MAXITEMS];
00017     int highlightedItem;
00018     int maxitems;
00019 
00020 public:
00021     MainMenu();
00022     void setMaxItems(int max);
00023     void setMenuItem(int locID, int menuID,const char * menuText, int x, int y);
00024     void highlightNextItem();
00025     void highlightPrevItem();
00026     void printMenu();
00027     int getHighlightedItem();
00028     void erase();
00029 };
00030 
00031 #endif /* defined(__menuSystem__MainMenu__) */