move method
Moves and resizes the current window to the specified newDimensions
.
repaintWindow
indicates whether the window should be repainted after the
move (defaults to true
).
Implementation
void move(math.Rectangle<int> newDimensions, {bool repaintWindow = true}) =>
MoveWindow(
hwnd,
newDimensions.left,
newDimensions.top,
newDimensions.width,
newDimensions.height,
repaintWindow ? TRUE : FALSE,
);