Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of menuSystemMbed by
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__) */
Generated on Tue Jul 12 2022 23:00:53 by
1.7.2
