MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / SetWindowScrollY

Function SetWindowScrollY

examples/ThirdPartyLibs/imgui/imgui.cpp:7023–7028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7021}
7022
7023static void SetWindowScrollY(ImGuiWindow* window, float new_scroll_y)
7024{
7025 window->DC.CursorMaxPos.y += window->Scroll.y; // SizeContents is generally computed based on CursorMaxPos which is affected by scroll position, so we need to apply our change to it.
7026 window->Scroll.y = new_scroll_y;
7027 window->DC.CursorMaxPos.y -= window->Scroll.y;
7028}
7029
7030static void SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond)
7031{

Callers 3

NavUpdateMethod · 0.85
NewFrameMethod · 0.85
InputTextExMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected