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.
menbedNavigator.h
00001 #ifndef _MENBEDNAVIGATOR_H_ 00002 #define _MENBEDNAVIGATOR_H_ 00003 00004 #include "menbedButtonEvent.h" 00005 #include "menbedStructure.h" 00006 #include "menbedDisplayer.h" 00007 #include "menbedMenu.h" 00008 00009 class MenbedNavigator { 00010 public: 00011 MenbedNavigator (MenbedMenu *rootMenu, MenbedDisplayer *displayer); 00012 void updateDisplay (void); 00013 void handleButtonEvent (MenbedButtonEvent buttonEvent); 00014 protected: 00015 MenbedMenu *activeMenu; 00016 uint8_t numButtons; 00017 uint8_t numLines; 00018 uint8_t lineLength; 00019 MenbedDisplayer *displayer; 00020 00021 int8_t selectedItemIndex; 00022 uint8_t topOfScreenItemIndex; 00023 bool paramEditMode; 00024 00025 void selectItem (void); 00026 void gotoParent (void); 00027 void moveUp (void); 00028 void moveDown (void); 00029 void incParam (void); 00030 void decParam (void); 00031 void saveParam (void); 00032 void restoreParam (void); 00033 void printMenu (char *menuStr); 00034 void printItem (MenbedMenuItem *item, char *line, bool itemSel, bool paramSel); 00035 bool checkConvSpec (const char *s); 00036 }; 00037 00038 #endif /* _MENBEDNAVIGATOR_H_ */
Generated on Thu Jul 14 2022 12:14:44 by
