Skip to main content

pct

Function pct 

Source
pub fn pct(percent: impl Percent) -> Span
Expand description

80 percent of the frame, or of the parent when it has a fixed size.

ⓘ
Rect::new().width(pct(80)).height(300.0)