Add optional parameter to ImGui::Separator
for user-defined vertical or horizontal separator
#8321
Labels
ImGui::Separator
for user-defined vertical or horizontal separator
#8321
Version/Branch of Dear ImGui:
Version 1.91.7, Branch: master
Back-ends:
imgui_impl_XXX.cpp + imgui_impl_XXX.cpp
Compiler, OS:
Windows 11 + MSVC 2022
Full config/build information:
No response
Details:
My Issue/Question:
Currently,
ImGui::Separator
only supports horizontal separators by default. Internally, IMGUI does support vertical separators via theImGuiSeparatorFlags_Vertical
flag, but this functionality is not exposed to users.I want to fix this by allowing users to explicitly create vertical separators by adding an optional parameter to
ImGui::Separator
. This would make it easier to create custom layouts that require vertical separators.After checking the code, I noticed that
ImGuiSeparatorFlags
andImGuiLayoutType_
are used internally, butImGuiLayoutType_
is marked as "in development" and isn't exposed publicly. I’m unsure whether exposingImGuiLayoutType_
directly would be acceptable or if a new public enum should be introduced for this purpose.Would exposing a new enum or flag for user-defined separators be an acceptable approach? I'd like to get feedback before proceeding with implementation. Thanks!
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: