MCPcopy Create free account
hub / github.com/WallBreaker2/op / GetClientSize

Function GetClientSize

libop/window/WindowLayout.cpp:80–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80bool GetClientSize(HWND hwnd, int &width, int &height) {
81 RECT rc = {};
82 if (!::GetClientRect(hwnd, &rc)) {
83 return false;
84 }
85
86 width = rc.right - rc.left;
87 height = rc.bottom - rc.top;
88 return true;
89}
90
91void GetInsets(const Metrics &metrics, Insets &insets) {
92 insets.left = metrics.client_rect.x - metrics.window_rect.x;

Callers 1

MatchesTargetClientSizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected