pub enum BarCornerRadius {
Uniform(f32),
Top(f32),
}Expand description
Which corners of a bar rect are rounded.
Default is Uniform(0.0) — no rounding — preserving the legacy square-bar
behavior. Uniform(r) rounds all four corners equally; Top(r) rounds
only the two corners at the maximum-value end of the bar (the top of a
vertical bar, the right end of a horizontal bar, and — for bars with
negative values — the end that points away from the zero baseline).
Variants§
Uniform(f32)
Round all four corners uniformly with the given radius.
Top(f32)
Round only the “top” corners — the two corners at the maximum-value end of the bar. For a vertical bar this is the top of the rect; for a horizontal bar this is the right side (the end pointing away from the category axis). For bars with negative values, the rounded corners flip to the opposite end (the side pointing away from zero).
Trait Implementations§
Source§impl Clone for BarCornerRadius
impl Clone for BarCornerRadius
Source§fn clone(&self) -> BarCornerRadius
fn clone(&self) -> BarCornerRadius
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more