Structsยง
- Border
Radius Au - Border
Segment Cache Key - Cache key that uniquely identifies a border segment in the render task cache.
- Border
Side Au - DotInfo ๐
- Edge
Info ๐ - Information needed to place and draw a border edge.
- Normal
Border Au
Enumsยง
- Border
Clip Kind - The kind of border corner clip.
Constantsยง
- MAX_
BORDER_ RESOLUTION - Maximum resolution in device pixels at which borders are rasterized.
- MAX_
DASH_ COUNT - Maximum number of dots or dashes per segment to avoid freezing and filling up memory with unreasonable inputs. It would be better to address this by not building a list of per-dot information in the first place.
Traitsยง
Functionsยง
- add_
corner_ ๐segment - Add a corner segment (if valid) to the list of border segments for this primitive.
- add_
edge_ ๐segment - Add an edge segment (if valid) to the list of border segments for this primitive.
- add_
segment ๐ - build_
border_ instances - Build the set of border instances needed to draw a border segment into the render task cache.
- compute_
half_ ๐dash - compute_
outer_ ๐and_ clip_ sign - create_
border_ segments - Create the set of border segments and render task cache keys for a given CSS border.
- ensure_
no_ corner_ overlap - get_
edge_ ๐info - get_
max_ scale_ for_ border - Computes the maximum scale that we allow for this set of border parameters. capping the scale will result in rendering very large corners at a lower resolution and stretching them, so they will have the right shape, but blurrier.
- write_
dashed_ ๐corner_ instances - write_
dotted_ ๐corner_ instances