MCPcopy Create free account
hub / github.com/XingangPan/DragGAN / collapsing_header

Function collapsing_header

gui_utils/imgui_utils.py:98–108  ·  view source on GitHub ↗
(text, visible=None, flags=0, default=False, enabled=True, show=True)

Source from the content-addressed store, hash-verified

96#----------------------------------------------------------------------------
97
98def collapsing_header(text, visible=None, flags=0, default=False, enabled=True, show=True):
99 expanded = False
100 if show:
101 if default:
102 flags |= imgui.TREE_NODE_DEFAULT_OPEN
103 if not enabled:
104 flags |= imgui.TREE_NODE_LEAF
105 with grayed_out(not enabled):
106 expanded, visible = imgui.collapsing_header(text, visible=visible, flags=flags)
107 expanded = expanded and enabled
108 return expanded, visible
109
110#----------------------------------------------------------------------------
111

Callers

nothing calls this directly

Calls 1

grayed_outFunction · 0.85

Tested by

no test coverage detected