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 Line
impl<I> Colorable for PointPath<I>
impl Colorable for Oval
impl<I> Colorable for Polygon<I>
impl Colorable for Rectangle
impl<'a> Colorable for Text<'a>
impl Colorable for BorderedRectangle
impl<'a, S> Colorable for Button<'a, S>
impl<'a> Colorable for Canvas<'a>
impl<'a> Colorable for CollapsibleArea<'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<X, Y, I> Colorable for Grid<X, Y, I>
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 RoundedRectangle
impl<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>