BorderView

Trait BorderView 

Source
pub trait BorderView: View {
    // Required method
    fn border_node(&mut self) -> &mut BorderStyle;

    // Provided methods
    fn border(self, border: UiRect) -> Self { ... }
    fn border_color(self, border_color: impl Into<Color>) -> Self { ... }
    fn border_radius(self, border_radius: BorderRadius) -> Self { ... }
}
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(self, border: UiRect) -> Self

Sets the border size

Source

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

Sets the border color

Source

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

Sets the border radius

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§