Trait BorderContainer

Source
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§

Source

fn border_node(&mut self) -> &mut BorderStyle

Returns a mutable reference to the current border style

Provided Methods§

Source

fn border_color(self, border_color: impl Into<Color>) -> Self
where Self: Sized,

Sets the border color

Source

fn border_radius(self, border_radius: BorderRadius) -> Self
where Self: Sized,

Sets the border radius

Implementors§