This is called during NewFrame()->UpdateViewportsNewFrame() only. Need to keep in sync with SetWindowPos()
| 5208 | // This is called during NewFrame()->UpdateViewportsNewFrame() only. |
| 5209 | // Need to keep in sync with SetWindowPos() |
| 5210 | static void TranslateWindow(ImGuiWindow* window, const ImVec2& delta) |
| 5211 | { |
| 5212 | window->Pos += delta; |
| 5213 | window->ClipRect.Translate(delta); |
| 5214 | window->OuterRectClipped.Translate(delta); |
| 5215 | window->InnerRect.Translate(delta); |
| 5216 | window->DC.CursorPos += delta; |
| 5217 | window->DC.CursorStartPos += delta; |
| 5218 | window->DC.CursorMaxPos += delta; |
| 5219 | window->DC.IdealMaxPos += delta; |
| 5220 | } |
| 5221 | |
| 5222 | static void ScaleWindow(ImGuiWindow* window, float scale) |
| 5223 | { |
no test coverage detected