[][src]Trait conrod::color::Colorable

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

Set the color of the widget.

Provided Methods

Set the color of the widget from rgba values.

Set the color of the widget from rgb values.

Set the color of the widget from hsla values.

Set the color of the widget from hsl values.

Implementors

impl Colorable for BorderedRectangle
[src]

Build the type's self.$($assignee).+ with the given $Type.

impl Colorable for Line
[src]

impl Colorable for Rectangle
[src]

impl Colorable for RoundedRectangle
[src]

impl<'a> Colorable for Canvas<'a>
[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<'a> Colorable for CollapsibleArea<'a>
[src]

impl<'a> Colorable for DirectoryView<'a>
[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<'a> Colorable for FileNavigator<'a>
[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<'a> Colorable for Text<'a>
[src]

impl<'a> Colorable for Tabs<'a>
[src]

impl<'a> Colorable for TextBox<'a>
[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<'a> Colorable for TextEdit<'a>
[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<'a> Colorable for TitleBar<'a>
[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<'a> Colorable for Toggle<'a>
[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<'a, E> Colorable for EnvelopeEditor<'a, E> where
    E: EnvelopePoint
[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<'a, S> Colorable for Button<'a, S>
[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<'a, T> Colorable for DropDownList<'a, T>
[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<'a, T> Colorable for NumberDialer<'a, T>
[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<'a, T> Colorable for RangeSlider<'a, T>
[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<'a, T> Colorable for Slider<'a, T>
[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<'a, X, Y> Colorable for XYPad<'a, X, Y>
[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<A> Colorable for Scrollbar<A>
[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<I> Colorable for PointPath<I>
[src]

impl<I> Colorable for Polygon<I>
[src]

impl<S> Colorable for Oval<S>
[src]

impl<X, Y, F> Colorable for PlotPath<X, Y, F>
[src]

Build the type's self.$($assignee).+ with the given $Type.

impl<X, Y, I> Colorable for Grid<X, Y, I>
[src]

Build the type's self.$($assignee).+ with the given $Type.