35 #include "config_auto.h" 38 #ifndef GRAPHICS_DISABLED 49 toggle_value_ =
false;
50 is_check_box_entry_ =
false;
90 int tv,
bool check_box_entry,
const char* val,
92 : text_(txt), value_(val), description_(desc) {
93 cmd_event_ = command_event;
98 toggle_value_ = tv != 0;
99 is_check_box_entry_ = check_box_entry;
104 svmn->parent_ =
this;
106 if (child_ ==
nullptr) {
110 while (cur->next_ !=
nullptr) { cur = cur->next_; }
121 if ((parent_ !=
nullptr) && (menu_bar)) {
122 if (is_check_box_entry_) {
127 }
else if ((parent_ !=
nullptr) && (!menu_bar)) {
128 if (description_.
length() > 0) {
135 if (child_ !=
nullptr) {
136 child_->
BuildMenu(sv, menu_bar);
delete child_;
138 if (next_ !=
nullptr) {
139 next_->
BuildMenu(sv, menu_bar);
delete next_;
143 #endif // GRAPHICS_DISABLED
const char * string() const
void MenuItem(const char *parent, const char *name)
void PopupItem(const char *parent, const char *name)
SVMenuNode * AddChild(const char *txt)
void BuildMenu(ScrollView *sv, bool menu_bar=true)