orbtk_tinyskia::utils

Trait Bordered

Source
pub trait Bordered {
    // Required methods
    fn border_thickness(&self) -> Thickness;
    fn set_border_thickness(&mut self, thickness: Thickness);
    fn border_brush(&self) -> &Brush;
    fn set_border_brush(&mut self, brush: Brush);
    fn border_radius(&self) -> f64;
    fn set_border_radius(&mut self, radius: f64);
    fn border(&self) -> &Border;
    fn set_border(&mut self, border: Border);
}
Expand description

Contains a set of getters and setters to read and write to a border.

Required Methods§

Source

fn border_thickness(&self) -> Thickness

Gets the thickness.

Source

fn set_border_thickness(&mut self, thickness: Thickness)

Sets the border thickness.

Source

fn border_brush(&self) -> &Brush

Gets the border brush.

Source

fn set_border_brush(&mut self, brush: Brush)

Sets the border brush.

Source

fn border_radius(&self) -> f64

Gets the border radius.

Source

fn set_border_radius(&mut self, radius: f64)

Sets the border radius.

Source

fn border(&self) -> &Border

Gets the complete border.

Source

fn set_border(&mut self, border: Border)

Sets the complete border.

Implementors§