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

Function Layout

libop/window/WindowLayout.cpp:315–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315long Layout(const std::vector<HWND> &windows, const Options &options) {
316 if (windows.empty()) {
317 return 0;
318 }
319
320 // 统一大小模式下,窗口尺寸不能小于最小阈值。
321 if (!IsValidUniformSize(options)) {
322 return 0;
323 }
324
325 const auto rects = Calculate(windows, options);
326 return Apply(windows, rects, options);
327}
328
329} // namespace op::window_layout

Callers 1

LayoutWindowsMethod · 0.85

Calls 4

IsValidUniformSizeFunction · 0.85
CalculateFunction · 0.85
ApplyFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected