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.
Dependencies: Terminal
menuitem.cpp
00001 #include "menuitem.h" 00002 #include "page.h" 00003 00004 00005 MenuItem::MenuItem() : 00006 name(NULL), 00007 level(0), 00008 type(display), 00009 action(NULL), 00010 name_len(0), 00011 data_col(0), 00012 target_page(-1) 00013 {} 00014 00015 00016 MenuItem::MenuItem(const char * name_p, MenuAction *action_p, int level_p, MenuType type_p, int target_page_p): 00017 name(name_p), 00018 level(level_p), 00019 type(type_p), 00020 action(action_p), 00021 name_len(strlen(name_p)), 00022 data_col(0), 00023 target_page(target_page_p) 00024 {} 00025 00026 MenuItem::MenuItem(Page &target_page_p): 00027 name(target_page_p.name), 00028 level(0), 00029 type(menu), 00030 action(NULL), 00031 name_len(strlen(name)), 00032 data_col(0), 00033 target_page(target_page_p.page_num) 00034 {}
Generated on Sun Jul 17 2022 04:17:16 by
1.7.2