MorphGlassOutline class
The silhouette a control has fused some of its glass surfaces into.
A control hands one to MorphGlassPainter.buildLayer when its glass
surfaces are one body whose edge is not their own shapes - a menu
joined to its button by a neck. The package computes it once, by the
same law on both tiers, so a flat fill and liquid glass draw the same
shape.
path is the edge in the layer's local coordinates. An outline the package fused also carries the body's signed distance field, from which the package's own renderer shades the body as liquid glass; the plain union of rounded boxes carries the boxes, which the renderer shades as their own exact shapes; an outline created from a path alone carries neither and is drawn flat.
- Annotations
Constructors
- MorphGlassOutline(Path path)
-
Creates an outline from its edge alone.
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shift(
Offset offset) → MorphGlassOutline -
The same outline moved by
offset. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited