[][src]Trait conrod_core::Labelable

pub trait Labelable<'a>: Sized {
    fn label(self, text: &'a str) -> Self;
fn label_color(self, color: Color) -> Self;
fn label_font_size(self, size: FontSize) -> Self; fn label_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self { ... }
fn label_rgb(self, r: f32, g: f32, b: f32) -> Self { ... }
fn label_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self { ... }
fn label_hsl(self, h: f32, s: f32, l: f32) -> Self { ... }
fn small_font(self, ui: &Ui) -> Self { ... }
fn medium_font(self, ui: &Ui) -> Self { ... }
fn large_font(self, ui: &Ui) -> Self { ... } }

Widgets that may display some label.

Required methods

fn label(self, text: &'a str) -> Self

Set the label for the widget.

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

Set the color of the widget's label.

fn label_font_size(self, size: FontSize) -> Self

Set the font size for the widget's label.

Loading content...

Provided methods

fn label_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self

Set the color of the widget's label from rgba values.

fn label_rgb(self, r: f32, g: f32, b: f32) -> Self

Set the color of the widget's label from rgb values.

fn label_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self

Set the color of the widget's label from hsla values.

fn label_hsl(self, h: f32, s: f32, l: f32) -> Self

Set the color of the widget's label from hsl values.

fn small_font(self, ui: &Ui) -> Self

Set a "small" font size for the widget's label.

fn medium_font(self, ui: &Ui) -> Self

Set a "medium" font size for the widget's label.

fn large_font(self, ui: &Ui) -> Self

Set a "large" font size for the widget's label.

Loading content...

Implementors

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

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

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

fn label_font_size(self, label_font_size: FontSize) -> Self[src]

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

fn label_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self[src]

fn label_rgb(self, r: f32, g: f32, b: f32) -> Self[src]

fn label_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self[src]

fn label_hsl(self, h: f32, s: f32, l: f32) -> Self[src]

fn small_font(self, ui: &Ui) -> Self[src]

fn medium_font(self, ui: &Ui) -> Self[src]

fn large_font(self, ui: &Ui) -> Self[src]

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

fn label(self, label: &'a str) -> Self[src]

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

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

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

fn label_font_size(self, label_font_size: FontSize) -> Self[src]

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

fn label_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self[src]

fn label_rgb(self, r: f32, g: f32, b: f32) -> Self[src]

fn label_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self[src]

fn label_hsl(self, h: f32, s: f32, l: f32) -> Self[src]

fn small_font(self, ui: &Ui) -> Self[src]

fn medium_font(self, ui: &Ui) -> Self[src]

fn large_font(self, ui: &Ui) -> Self[src]

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

fn label(self, label: &'a str) -> Self[src]

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

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

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

fn label_font_size(self, label_font_size: FontSize) -> Self[src]

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

fn label_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self[src]

fn label_rgb(self, r: f32, g: f32, b: f32) -> Self[src]

fn label_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self[src]

fn label_hsl(self, h: f32, s: f32, l: f32) -> Self[src]

fn small_font(self, ui: &Ui) -> Self[src]

fn medium_font(self, ui: &Ui) -> Self[src]

fn large_font(self, ui: &Ui) -> Self[src]

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

fn label(self, label: &'a str) -> Self[src]

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

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

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

fn label_font_size(self, label_font_size: FontSize) -> Self[src]

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

fn label_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self[src]

fn label_rgb(self, r: f32, g: f32, b: f32) -> Self[src]

fn label_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self[src]

fn label_hsl(self, h: f32, s: f32, l: f32) -> Self[src]

fn small_font(self, ui: &Ui) -> Self[src]

fn medium_font(self, ui: &Ui) -> Self[src]

fn large_font(self, ui: &Ui) -> Self[src]

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

fn label(self, label: &'a str) -> Self[src]

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

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

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

fn label_font_size(self, label_font_size: FontSize) -> Self[src]

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

fn label_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self[src]

fn label_rgb(self, r: f32, g: f32, b: f32) -> Self[src]

fn label_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self[src]

fn label_hsl(self, h: f32, s: f32, l: f32) -> Self[src]

fn small_font(self, ui: &Ui) -> Self[src]

fn medium_font(self, ui: &Ui) -> Self[src]

fn large_font(self, ui: &Ui) -> Self[src]

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

fn label(self, label: &'a str) -> Self[src]

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

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

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

fn label_font_size(self, label_font_size: FontSize) -> Self[src]

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

fn label_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self[src]

fn label_rgb(self, r: f32, g: f32, b: f32) -> Self[src]

fn label_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self[src]

fn label_hsl(self, h: f32, s: f32, l: f32) -> Self[src]

fn small_font(self, ui: &Ui) -> Self[src]

fn medium_font(self, ui: &Ui) -> Self[src]

fn large_font(self, ui: &Ui) -> Self[src]

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

fn label(self, label: &'a str) -> Self[src]

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

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

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

fn label_font_size(self, label_font_size: FontSize) -> Self[src]

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

fn label_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self[src]

fn label_rgb(self, r: f32, g: f32, b: f32) -> Self[src]

fn label_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self[src]

fn label_hsl(self, h: f32, s: f32, l: f32) -> Self[src]

fn small_font(self, ui: &Ui) -> Self[src]

fn medium_font(self, ui: &Ui) -> Self[src]

fn large_font(self, ui: &Ui) -> Self[src]

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

fn label(self, label: &'a str) -> Self[src]

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

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

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

fn label_font_size(self, label_font_size: FontSize) -> Self[src]

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

fn label_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self[src]

fn label_rgb(self, r: f32, g: f32, b: f32) -> Self[src]

fn label_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self[src]

fn label_hsl(self, h: f32, s: f32, l: f32) -> Self[src]

fn small_font(self, ui: &Ui) -> Self[src]

fn medium_font(self, ui: &Ui) -> Self[src]

fn large_font(self, ui: &Ui) -> Self[src]

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

fn label(self, label: &'a str) -> Self[src]

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

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

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

fn label_font_size(self, label_font_size: FontSize) -> Self[src]

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

fn label_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self[src]

fn label_rgb(self, r: f32, g: f32, b: f32) -> Self[src]

fn label_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self[src]

fn label_hsl(self, h: f32, s: f32, l: f32) -> Self[src]

fn small_font(self, ui: &Ui) -> Self[src]

fn medium_font(self, ui: &Ui) -> Self[src]

fn large_font(self, ui: &Ui) -> Self[src]

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

fn label(self, label: &'a str) -> Self[src]

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

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

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

fn label_font_size(self, label_font_size: FontSize) -> Self[src]

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

fn label_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self[src]

fn label_rgb(self, r: f32, g: f32, b: f32) -> Self[src]

fn label_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self[src]

fn label_hsl(self, h: f32, s: f32, l: f32) -> Self[src]

fn small_font(self, ui: &Ui) -> Self[src]

fn medium_font(self, ui: &Ui) -> Self[src]

fn large_font(self, ui: &Ui) -> Self[src]

Loading content...