pub trait BorderContainer {
// Required method
fn border_node(&mut self) -> &mut BorderStyle;
// Provided methods
fn border_color(self, border_color: impl Into<Color>) -> Self
where Self: Sized { ... }
fn border_radius(self, border_radius: BorderRadius) -> Self
where Self: Sized { ... }
}Expand description
Provides border configuration for a UI container
Required Methods§
Sourcefn border_node(&mut self) -> &mut BorderStyle
fn border_node(&mut self) -> &mut BorderStyle
Returns a mutable reference to the current border style
Provided Methods§
Sourcefn border_color(self, border_color: impl Into<Color>) -> Selfwhere
Self: Sized,
fn border_color(self, border_color: impl Into<Color>) -> Selfwhere
Self: Sized,
Sets the border color
Sourcefn border_radius(self, border_radius: BorderRadius) -> Selfwhere
Self: Sized,
fn border_radius(self, border_radius: BorderRadius) -> Selfwhere
Self: Sized,
Sets the border radius