Trait nannou::ui::Borderable [−][src]
pub trait Borderable { pub fn border(self, width: f64) -> Self; pub fn border_color(self, color: Color) -> Self; pub fn border_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self { ... } pub fn border_rgb(self, r: f32, g: f32, b: f32) -> Self { ... } pub fn border_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self { ... } pub fn border_hsl(self, h: f32, s: f32, l: f32) -> Self { ... } }
Widgets that may display a border.
Required methods
pub fn border(self, width: f64) -> Self
[src]
Set the width of the widget’s border.
pub fn border_color(self, color: Color) -> Self
[src]
Set the color of the widget’s border.
Provided methods
pub fn border_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self
[src]
Set the color of the widget’s border with rgba values.
pub fn border_rgb(self, r: f32, g: f32, b: f32) -> Self
[src]
Set the color of the widget’s border with rgb values.
pub fn border_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self
[src]
Set the color of the widget’s border with hsla values.
pub fn border_hsl(self, h: f32, s: f32, l: f32) -> Self
[src]
Set the color of the widget’s border with hsl values.
Implementors
impl Borderable for BorderedRectangle
[src]
pub fn border(self, border: f64) -> BorderedRectangle
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn border_color(self, border_color: Color) -> BorderedRectangle
[src]
Build the type’s self.$($assignee).+ with the given $Type.
impl<'a> Borderable for Canvas<'a>
[src]
pub fn border(self, border: f64) -> Canvas<'a>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn border_color(self, border_color: Color) -> Canvas<'a>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
impl<'a> Borderable for CollapsibleArea<'a>
[src]
pub fn border(self, border: f64) -> CollapsibleArea<'a>
[src]
pub fn border_color(self, color: Color) -> CollapsibleArea<'a>
[src]
impl<'a> Borderable for Tabs<'a>
[src]
pub fn border(self, width: f64) -> Tabs<'a>
[src]
pub fn border_color(self, color: Color) -> Tabs<'a>
[src]
impl<'a> Borderable for TextBox<'a>
[src]
pub fn border(self, border: f64) -> TextBox<'a>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn border_color(self, border_color: Color) -> TextBox<'a>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
impl<'a> Borderable for TitleBar<'a>
[src]
pub fn border(self, border: f64) -> TitleBar<'a>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn border_color(self, border_color: Color) -> TitleBar<'a>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
impl<'a> Borderable for Toggle<'a>
[src]
pub fn border(self, border: f64) -> Toggle<'a>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn border_color(self, border_color: Color) -> Toggle<'a>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
impl<'a, E> Borderable for EnvelopeEditor<'a, E> where
E: EnvelopePoint,
[src]
E: EnvelopePoint,
pub fn border(self, border: f64) -> EnvelopeEditor<'a, E>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn border_color(self, border_color: Color) -> EnvelopeEditor<'a, E>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
impl<'a, S> Borderable for Button<'a, S>
[src]
pub fn border(self, border: f64) -> Button<'a, S>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn border_color(self, border_color: Color) -> Button<'a, S>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
impl<'a, T> Borderable for DropDownList<'a, T>
[src]
pub fn border(self, border: f64) -> DropDownList<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn border_color(self, border_color: Color) -> DropDownList<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
impl<'a, T> Borderable for NumberDialer<'a, T>
[src]
pub fn border(self, border: f64) -> NumberDialer<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn border_color(self, border_color: Color) -> NumberDialer<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
impl<'a, T> Borderable for RangeSlider<'a, T>
[src]
pub fn border(self, border: f64) -> RangeSlider<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn border_color(self, border_color: Color) -> RangeSlider<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
impl<'a, T> Borderable for Slider<'a, T>
[src]
pub fn border(self, border: f64) -> Slider<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn border_color(self, border_color: Color) -> Slider<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.