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

Function GetInsets

libop/window/WindowLayout.cpp:91–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void GetInsets(const Metrics &metrics, Insets &insets) {
92 insets.left = metrics.client_rect.x - metrics.window_rect.x;
93 insets.top = metrics.client_rect.y - metrics.window_rect.y;
94 insets.right = metrics.window_rect.width - insets.left - metrics.client_rect.width;
95 insets.bottom = metrics.window_rect.height - insets.top - metrics.client_rect.height;
96}
97
98bool IsValidUniformSize(const Options &options) {
99 if (options.size_mode != SizeMode::Uniform)

Callers 2

MatchesTargetClientRectFunction · 0.85
BuildLayoutSeedsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected