141 std::string label = item.
icon.empty()
143 : absl::StrCat(item.
icon,
" ", item.
label);
144 ImGui::BeginDisabled();
145 ImGui::MenuItem(label.c_str(),
nullptr,
false,
false);
146 ImGui::EndDisabled();
159 std::string label = item.
icon.empty()
161 : absl::StrCat(item.
icon,
" ", item.
label);
168 ImGui::BeginDisabled();
169 ImGui::MenuItem(label.c_str(),
nullptr,
false,
false);
170 ImGui::EndDisabled();
175 opened = ImGui::BeginMenu(label.c_str());
205 std::string label = item.
icon.empty()
207 : absl::StrCat(item.
icon,
" ", item.
label);
212 const char* shortcut_str = item.
shortcut.empty()
216 if (ImGui::MenuItem(label.c_str(), shortcut_str, checked, enabled)) {