[][src]Trait conrod_core::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

fn color(self, color: Color) -> Self

Set the color of the widget.

Loading content...

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.

Loading content...

Implementors

impl Colorable for BorderedRectangle[src]

fn color(self, color: Color) -> Self[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]

fn color(self, color: Color) -> Self[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]

fn color(self, color: Color) -> Self[src]

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

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

fn color(self, color: Color) -> Self[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]

fn color(self, color: Color) -> Self[src]

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

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

fn color(self, color: Color) -> Self[src]

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

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

fn color(self, color: Color) -> Self[src]

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

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

fn color(self, color: Color) -> Self[src]

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

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

fn color(self, color: Color) -> Self[src]

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

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

fn color(self, color: Color) -> Self[src]

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

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

fn color(self, color: Color) -> Self[src]

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

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

fn color(self, color: Color) -> Self[src]

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

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

fn color(self, color: Color) -> Self[src]

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

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

fn color(self, color: Color) -> Self[src]

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

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

fn color(self, color: Color) -> Self[src]

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

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

fn color(self, color: Color) -> Self[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]

fn color(self, color: Color) -> Self[src]

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

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

fn color(self, color: Color) -> Self[src]

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

Loading content...