Trait conrod::color::Colorable
[−]
[src]
pub trait Colorable: Sized {
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 Lineimpl<I> Colorable for PointPath<I>impl Colorable for Ovalimpl<I> Colorable for Polygon<I>impl Colorable for Rectangleimpl<'a> Colorable for Text<'a>impl Colorable for BorderedRectangleimpl<'a, S> Colorable for Button<'a, S>impl<'a> Colorable for Canvas<'a>impl<'a, T> Colorable for DropDownList<'a, T>impl<'a, E> Colorable for EnvelopeEditor<'a, E> where
E: EnvelopePoint,impl<'a> Colorable for DirectoryView<'a>impl<'a> Colorable for FileNavigator<'a>impl<'a, T> Colorable for NumberDialer<'a, T>impl<X, Y, F> Colorable for PlotPath<X, Y, F>impl<'a, T> Colorable for RangeSlider<'a, T>impl Colorable for RoundedRectangleimpl<A> Colorable for Scrollbar<A>impl<'a, T> Colorable for Slider<'a, T>impl<'a> Colorable for Tabs<'a>impl<'a> Colorable for TextBox<'a>impl<'a> Colorable for TextEdit<'a>impl<'a> Colorable for TitleBar<'a>impl<'a> Colorable for Toggle<'a>impl<'a, X, Y> Colorable for XYPad<'a, X, Y>