MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / SetCondFlag

Function SetCondFlag

Source/GUI/ImGuiBinding.cpp:364–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364static 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
377static ImGuiPopupFlags getPopupFlag(String flag) {
378 switch (Switch::hash(flag)) {

Callers 8

SetNextWindowPosFunction · 0.85
SetNextWindowPosCenterFunction · 0.85
SetNextWindowSizeFunction · 0.85
SetNextWindowCollapsedFunction · 0.85
SetWindowPosFunction · 0.85
SetWindowSizeFunction · 0.85
SetWindowCollapsedFunction · 0.85
SetNextItemOpenFunction · 0.85

Calls 3

ImGuiCond_Enum · 0.85
toStringMethod · 0.65
hashFunction · 0.50

Tested by

no test coverage detected