mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-04 12:08:47 +02:00
Added GetCursorStartPos() necessary for using scroll target relative to beginning of window content (#150)
This commit is contained in:
@ -4797,6 +4797,12 @@ void ImGui::SetCursorPosY(float y)
|
||||
window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y);
|
||||
}
|
||||
|
||||
ImVec2 ImGui::GetCursorStartPos()
|
||||
{
|
||||
ImGuiWindow* window = GetCurrentWindow();
|
||||
return window->DC.CursorStartPos - window->Pos;
|
||||
}
|
||||
|
||||
ImVec2 ImGui::GetCursorScreenPos()
|
||||
{
|
||||
ImGuiWindow* window = GetCurrentWindow();
|
||||
|
Reference in New Issue
Block a user