146 std::string label = item.
icon.empty()
148 : absl::StrCat(item.
icon,
" ", item.
label);
149 ImGui::BeginDisabled();
150 ImGui::MenuItem(label.c_str(),
nullptr,
false,
false);
151 ImGui::EndDisabled();
164 std::string label = item.
icon.empty()
166 : absl::StrCat(item.
icon,
" ", item.
label);
173 ImGui::BeginDisabled();
174 ImGui::MenuItem(label.c_str(),
nullptr,
false,
false);
175 ImGui::EndDisabled();
180 opened = ImGui::BeginMenu(label.c_str());
210 std::string label = item.
icon.empty()
212 : absl::StrCat(item.
icon,
" ", item.
label);
217 const char* shortcut_str =
220 if (ImGui::MenuItem(label.c_str(), shortcut_str, checked, enabled)) {