plushie/prop/border
Border type for widget outlines.
Builder pattern: start with new() and pipe through color, width,
radius, or radius_corners to configure.
Types
A border with color, width, and corner radius.
pub type Border {
Border(
color: option.Option(color.Color),
width: Float,
radius: Radius,
)
}
Constructors
-
Border( color: option.Option(color.Color), width: Float, radius: Radius, )
Values
pub fn new() -> Border
Create a border with default values (no color, zero width, zero radius).
pub fn radius_corners(
b: Border,
tl: Float,
tr: Float,
br: Float,
bl: Float,
) -> Border
Set per-corner border radii.
pub fn to_prop_value(b: Border) -> node.PropValue
Encode a Border to its wire-format PropValue.