Trait conrod::Colorable
[−]
[src]
pub trait Colorable {
fn color(self, color: Color) -> Self;
fn rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self { ... }
fn rgb(self, r: f32, g: f32, b: f32) -> Self { ... }
fn hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self { ... }
fn hsl(self, h: f32, s: f32, l: f32) -> Self { ... }
}Types that can be colored.
Required Methods
Provided Methods
fn rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self
Set the color of the widget from rgba values.
fn rgb(self, r: f32, g: f32, b: f32) -> Self
Set the color of the widget from rgb values.
fn hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self
Set the color of the widget from hsla values.
fn hsl(self, h: f32, s: f32, l: f32) -> Self
Set the color of the widget from hsl values.
Implementors
impl Colorable for Backgroundimpl<'a> Colorable for Split<'a>impl<'a, F> Colorable for Button<'a, F>impl<'a, F> Colorable for DropDownList<'a, F>impl<'a, E, F> Colorable for EnvelopeEditor<'a, E, F> where E: EnvelopePointimpl<'a> Colorable for Label<'a>impl<'a, T, F> Colorable for NumberDialer<'a, T, F>impl<'a, T, F> Colorable for Slider<'a, T, F>impl<'a, F> Colorable for TextBox<'a, F>impl<'a, F> Colorable for Toggle<'a, F>impl<'a, X, Y, F> Colorable for XYPad<'a, X, Y, F>