Trait conrod_core::Borderable [−][src]
pub trait Borderable: Sized { fn border(self, width: f64) -> Self; fn border_color(self, color: Color) -> Self; fn border_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self { ... } fn border_rgb(self, r: f32, g: f32, b: f32) -> Self { ... } fn border_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self { ... } fn border_hsl(self, h: f32, s: f32, l: f32) -> Self { ... } }
Expand description
Widgets that may display a border.
Required methods
fn border_color(self, color: Color) -> Self
fn border_color(self, color: Color) -> Self
Set the color of the widget’s border.
Provided methods
Set the color of the widget’s border with rgba values.
fn border_rgb(self, r: f32, g: f32, b: f32) -> Self
fn border_rgb(self, r: f32, g: f32, b: f32) -> Self
Set the color of the widget’s border with rgb values.
Set the color of the widget’s border with hsla values.
fn border_hsl(self, h: f32, s: f32, l: f32) -> Self
fn border_hsl(self, h: f32, s: f32, l: f32) -> Self
Set the color of the widget’s border with hsl values.