| 99 | |
| 100 | |
| 101 | bool menuItem(const char *label, const Shortcut &shortcut, bool selected, bool enabled) { |
| 102 | #if defined(OS_MACOS) |
| 103 | if (s_useNativeMenuBar) |
| 104 | return macosMenuItem(label, shortcut.toKeyEquivalent(), selected, enabled); |
| 105 | #endif |
| 106 | |
| 107 | return ImGui::MenuItem(label, shortcut.toString().c_str(), selected, enabled); |
| 108 | } |
| 109 | |
| 110 | bool menuItem(const char *label, const Shortcut &shortcut, bool *selected, bool enabled) { |
| 111 | #if defined(OS_MACOS) |
no outgoing calls
no test coverage detected