Skip to main content
Module painted_region
layout
0.7.0
Module painted_
region
Module Items
Structs
Functions
In layout::
display_
list
layout
::
display_list
Module
painted_
region
Copy item path
Source
Structs
ยง
Painted
Region
๐
A set of disjoint, axis-aligned rectangles that tracks exactly which area has already been painted for a Container Timing container, so that overlapping fragments (e.g. two overlapping
<img>
s) arenโt double-counted.
Functions
ยง
subtract_
all
๐
Returns the portion of
rect
not covered by any rect in
others
, as a set of disjoint rects (possibly empty, if
others
fully covers
rect
).
subtract_
one
๐
Splits
a
into the (up to four) disjoint rects that remain once
b
is removed from it.