dimensions property
The dimensions of the current window.
Implementation
math.Rectangle<int> get dimensions {
final rect = calloc<RECT>();
GetClientRect(hwnd, rect);
final windowRect = math.Rectangle<int>(
rect.ref.left,
rect.ref.top,
rect.ref.right - rect.ref.left,
rect.ref.bottom - rect.ref.top,
);
free(rect);
return windowRect;
}