| 1207 | |
| 1208 | |
| 1209 | bool 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 | |
| 1226 | bool tFileDialog::VerticalSplitter(float thickness, float& width1, float& width2, float minWidth1, float minWidth2, float hoverExtend, float hoverDelay) |