MCPcopy Create free account
hub / github.com/crosire/reshade / convert_tree_node_flags

Function convert_tree_node_flags

source/imgui_function_table_19040.cpp:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 return new_flags;
47 }
48 auto convert_tree_node_flags(ImGuiTreeNodeFlags old_flags) -> ImGuiTreeNodeFlags
49 {
50 ImGuiTreeNodeFlags new_flags = old_flags & 0x1FFF;
51 if (old_flags & (1 << 13)) // ImGuiTreeNodeFlags_SpanAllColumns
52 new_flags |= 1 << 14;
53 if (old_flags & (1 << 14)) // ImGuiTreeNodeFlags_NavLeftJumpsBackHere
54 new_flags |= 1 << 17;
55 return new_flags;
56 }
57 auto convert_input_text_flags(ImGuiInputTextFlags old_flags) -> ImGuiInputTextFlags
58 {
59 ImGuiInputTextFlags new_flags = old_flags & 0x3;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected