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

Function MatchesTargetSize

libop/window/WindowLayout.cpp:105–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105bool MatchesTargetSize(HWND hwnd, const Rect &rect) {
106 int width = 0;
107 int height = 0;
108 if (!GetWindowSize(hwnd, width, height)) {
109 return false;
110 }
111
112 return abs(width - rect.width) <= kResizeTolerance && abs(height - rect.height) <= kResizeTolerance;
113}
114
115bool MatchesTargetClientSize(HWND hwnd, const Options &options) {
116 if (options.anchor_mode != AnchorMode::Client) {

Callers 1

ApplyFunction · 0.85

Calls 1

GetWindowSizeFunction · 0.85

Tested by

no test coverage detected