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§
Sourcefn border_thickness(&self) -> Thickness
fn border_thickness(&self) -> Thickness
Gets the thickness.
Sourcefn set_border_thickness(&mut self, thickness: Thickness)
fn set_border_thickness(&mut self, thickness: Thickness)
Sets the border thickness.
Sourcefn border_brush(&self) -> &Brush
fn border_brush(&self) -> &Brush
Gets the border brush.
Sourcefn set_border_brush(&mut self, brush: Brush)
fn set_border_brush(&mut self, brush: Brush)
Sets the border brush.
Sourcefn border_radius(&self) -> f64
fn border_radius(&self) -> f64
Gets the border radius.
Sourcefn set_border_radius(&mut self, radius: f64)
fn set_border_radius(&mut self, radius: f64)
Sets the border radius.
Sourcefn set_border(&mut self, border: Border)
fn set_border(&mut self, border: Border)
Sets the complete border.