MCPcopy Create free account
hub / github.com/bluescan/tacentview / HorizontalSplitter

Method HorizontalSplitter

Src/FileDialog.cpp:1209–1223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1207
1208
1209bool tFileDialog::HorizontalSplitter(float thickness, float& height1, float& height2, float minHeight1, float minHeight2, float hoverExtend, float hoverDelay)
1210{
1211 ImGuiContext& g = *GImGui;
1212 ImGuiWindow* window = g.CurrentWindow;
1213 ImGuiID id = window->GetID("##HorizontalSplitter");
1214 ImRect bb;
1215 bb.Min.x = window->DC.CursorPos.x + 0.0f;
1216 bb.Min.y = window->DC.CursorPos.y + height1;
1217
1218 ImVec2 calc = ImGui::CalcItemSize(ImVec2(-1.0f, thickness), 0.0f, 0.0f);
1219 bb.Max.x = bb.Min.x + calc.x;
1220 bb.Max.y = bb.Min.y + calc.y;
1221
1222 return ImGui::SplitterBehavior(bb, id, ImGuiAxis_Y, &height1, &height2, minHeight1, minHeight2, hoverExtend, hoverDelay);
1223}
1224
1225
1226bool tFileDialog::VerticalSplitter(float thickness, float& width1, float& width2, float minWidth1, float minWidth2, float hoverExtend, float hoverDelay)

Callers

nothing calls this directly

Calls 2

ImVec2Function · 0.85
GetIDMethod · 0.80

Tested by

no test coverage detected