MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXNTC / ToggleButtonFlags

Function ToggleButtonFlags

tools/explorer/ImGuiExtensions.cpp:67–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67bool ToggleButtonFlags(const char* label, ImU32* state, ImU32 bit, const ImVec2& size_arg, ImGuiButtonFlags flags)
68{
69 bool boolState = ((*state) & bit) != 0;
70
71 bool result = ToggleButton(label, &boolState, size_arg, flags);
72
73 if (boolState)
74 *state |= bit;
75 else
76 *state &= ~bit;
77
78 return result;
79}
80
81void TooltipMarker(const char* desc)
82{

Callers 1

BuildControlDialogMethod · 0.85

Calls 1

ToggleButtonFunction · 0.85

Tested by

no test coverage detected