MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / geometry_intersection

Method geometry_intersection

src/geometry.cpp:167–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167wf::geometry_t wf::geometry_intersection(const wf::geometry_t& r1,
168 const wf::geometry_t& r2)
169{
170 wlr_box result;
171 if (wlr_box_intersection(&result, &r1, &r2))
172 {
173 return result;
174 }
175
176 return {0, 0, 0, 0};
177}
178
179wf::geometry_t wf::clamp(wf::geometry_t window, wf::geometry_t output)
180{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected