| 7021 | } |
| 7022 | |
| 7023 | static 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 | |
| 7030 | static void SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond) |
| 7031 | { |
no outgoing calls
no test coverage detected