| 117 | } |
| 118 | |
| 119 | bool menuItemEx(const char *label, const char *icon, const Shortcut &shortcut, bool selected, bool enabled) { |
| 120 | #if defined(OS_MACOS) |
| 121 | if (s_useNativeMenuBar) |
| 122 | return macosMenuItem(label, shortcut.toKeyEquivalent(), selected, enabled); |
| 123 | #endif |
| 124 | |
| 125 | return ImGui::MenuItemEx(label, icon, shortcut.toString().c_str(), selected, enabled); |
| 126 | } |
| 127 | |
| 128 | bool menuItemEx(const char *label, const char *icon, const Shortcut &shortcut, bool *selected, bool enabled) { |
| 129 | #if defined(OS_MACOS) |
no outgoing calls
no test coverage detected