| 362 | } |
| 363 | |
| 364 | static uint32_t SetCondFlag(String cond) { |
| 365 | switch (Switch::hash(cond)) { |
| 366 | case "Always"_hash: return ImGuiCond_Always; |
| 367 | case "Once"_hash: return ImGuiCond_Once; |
| 368 | case "FirstUseEver"_hash: return ImGuiCond_FirstUseEver; |
| 369 | case "Appearing"_hash: return ImGuiCond_Appearing; |
| 370 | case ""_hash: return ImGuiCond_(0); |
| 371 | default: |
| 372 | Issue("ImGui set cond named \"{}\" is invalid.", cond.toString()); |
| 373 | return ImGuiCond_(0); |
| 374 | } |
| 375 | } |
| 376 | |
| 377 | static ImGuiPopupFlags getPopupFlag(String flag) { |
| 378 | switch (Switch::hash(flag)) { |
no test coverage detected