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

Function GetWindowMetrics

libop/window/WindowLayout.cpp:213–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211} // namespace
212
213bool GetWindowMetrics(HWND hwnd, Metrics &metrics) {
214 if (!GetWindowRectInfo(hwnd, metrics.window_rect)) {
215 return false;
216 }
217 if (!GetVisibleWindowRectInfo(hwnd, metrics.visible_rect)) {
218 return false;
219 }
220 if (!GetClientRectInfo(hwnd, metrics.client_rect)) {
221 return false;
222 }
223 return true;
224}
225
226std::vector<Rect> Calculate(const std::vector<HWND> &windows, const Options &options) {
227 std::vector<LayoutSeed> seeds = BuildLayoutSeeds(windows, options);

Callers 3

MatchesTargetClientRectFunction · 0.85
BuildLayoutSeedsFunction · 0.85
ApplyFunction · 0.85

Calls 3

GetWindowRectInfoFunction · 0.85
GetVisibleWindowRectInfoFunction · 0.85
GetClientRectInfoFunction · 0.85

Tested by

no test coverage detected