1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-09 23:54:20 +00:00

Docs: clarify PixelSnapH / PixelSnapV + comment on PushTextWrapPos().

This commit is contained in:
ocornut 2025-12-17 11:41:54 +01:00
parent dc48a7c88e
commit 99bca397d8
2 changed files with 5 additions and 4 deletions

View file

@ -8263,12 +8263,13 @@ void ImGui::EndDisabledOverrideReenable()
g.Style.Alpha = g.CurrentWindowStack.back().DisabledOverrideReenableAlphaBackup;
}
void ImGui::PushTextWrapPos(float wrap_pos_x)
// ATTENTION THIS IS IN LEGACY LOCAL SPACE.
void ImGui::PushTextWrapPos(float wrap_local_pos_x)
{
ImGuiContext& g = *GImGui;
ImGuiWindow* window = g.CurrentWindow;
window->DC.TextWrapPosStack.push_back(window->DC.TextWrapPos);
window->DC.TextWrapPos = wrap_pos_x;
window->DC.TextWrapPos = wrap_local_pos_x;
}
void ImGui::PopTextWrapPos()