[][src]Trait nannou::ui::Colorable

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

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) -> 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 DirectoryView<'a>[src]

fn color(self, color: Color) -> DirectoryView<'a>[src]

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

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

fn color(self, color: Color) -> Canvas<'a>[src]

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

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

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

fn color(self, color: Color) -> FileNavigator<'a>[src]

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

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

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

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

fn color(self, color: Color) -> TextBox<'a>[src]

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

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

fn color(self, color: Color) -> TextEdit<'a>[src]

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

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

fn color(self, color: Color) -> TitleBar<'a>[src]

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

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

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

fn color(self, color: Color) -> EnvelopeEditor<'a, E>[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) -> Button<'a, S>[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) -> DropDownList<'a, T>[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) -> NumberDialer<'a, T>[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) -> RangeSlider<'a, T>[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) -> 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]

fn color(self, color: Color) -> XYPad<'a, X, Y>[src]

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

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

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

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

fn color(self, color: Color) -> Grid<X, Y, I>[src]

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

Loading content...