MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / clip

Method clip

dep/agg/include/agg_basics.h:341–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339 }
340
341 bool clip(const self_type& r)
342 {
343 if (x2 > r.x2)
344 x2 = r.x2;
345 if (y2 > r.y2)
346 y2 = r.y2;
347 if (x1 < r.x1)
348 x1 = r.x1;
349 if (y1 < r.y1)
350 y1 = r.y1;
351 return x1 <= x2 && y1 <= y2;
352 }
353
354 bool is_valid() const
355 {

Callers 11

add_clip_boxMethod · 0.80
blurMethod · 0.80
attachMethod · 0.80
attachMethod · 0.80
attachMethod · 0.80
clip_boxMethod · 0.80
copy_barMethod · 0.80
blend_barMethod · 0.80
attachMethod · 0.80
attachMethod · 0.80
visibleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected