Trait nannou::ui::prelude::Labelable [−][src]
pub trait Labelable<'a> { pub fn label(self, text: &'a str) -> Self; pub fn label_color(self, color: Color) -> Self; pub fn label_font_size(self, size: u32) -> Self; pub fn label_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self { ... } pub fn label_rgb(self, r: f32, g: f32, b: f32) -> Self { ... } pub fn label_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self { ... } pub fn label_hsl(self, h: f32, s: f32, l: f32) -> Self { ... } pub fn small_font(self, ui: &Ui) -> Self { ... } pub fn medium_font(self, ui: &Ui) -> Self { ... } pub fn large_font(self, ui: &Ui) -> Self { ... } }
Widgets that may display some label.
Required methods
pub fn label(self, text: &'a str) -> Self
[src]
Set the label for the widget.
pub fn label_color(self, color: Color) -> Self
[src]
Set the color of the widget’s label.
pub fn label_font_size(self, size: u32) -> Self
[src]
Set the font size for the widget’s label.
Provided methods
pub fn label_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self
[src]
Set the color of the widget’s label from rgba values.
pub fn label_rgb(self, r: f32, g: f32, b: f32) -> Self
[src]
Set the color of the widget’s label from rgb values.
pub fn label_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self
[src]
Set the color of the widget’s label from hsla values.
pub fn label_hsl(self, h: f32, s: f32, l: f32) -> Self
[src]
Set the color of the widget’s label from hsl values.
pub fn small_font(self, ui: &Ui) -> Self
[src]
Set a “small” font size for the widget’s label.
pub fn medium_font(self, ui: &Ui) -> Self
[src]
Set a “medium” font size for the widget’s label.
pub fn large_font(self, ui: &Ui) -> Self
[src]
Set a “large” font size for the widget’s label.
Implementors
impl<'a> Labelable<'a> for Canvas<'a>
[src]
pub fn label(self, text: &'a str) -> Canvas<'a>
[src]
pub fn label_color(self, label_color: Color) -> Canvas<'a>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn label_font_size(self, label_font_size: u32) -> Canvas<'a>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
impl<'a> Labelable<'a> for TitleBar<'a>
[src]
pub fn label(self, label: &'a str) -> TitleBar<'a>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn label_color(self, label_color: Color) -> TitleBar<'a>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn label_font_size(self, label_font_size: u32) -> TitleBar<'a>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
impl<'a> Labelable<'a> for Toggle<'a>
[src]
pub fn label(self, label: &'a str) -> Toggle<'a>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn label_color(self, label_color: Color) -> Toggle<'a>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn label_font_size(self, label_font_size: u32) -> Toggle<'a>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
impl<'a, E> Labelable<'a> for EnvelopeEditor<'a, E> where
E: EnvelopePoint,
[src]
E: EnvelopePoint,
pub fn label(self, label: &'a str) -> EnvelopeEditor<'a, E>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn label_color(self, label_color: Color) -> EnvelopeEditor<'a, E>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn label_font_size(self, label_font_size: u32) -> EnvelopeEditor<'a, E>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
impl<'a, S> Labelable<'a> for Button<'a, S>
[src]
pub fn label(self, label: &'a str) -> Button<'a, S>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn label_color(self, label_color: Color) -> Button<'a, S>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn label_font_size(self, label_font_size: u32) -> Button<'a, S>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
impl<'a, T> Labelable<'a> for DropDownList<'a, T>
[src]
pub fn label(self, label: &'a str) -> DropDownList<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn label_color(self, label_color: Color) -> DropDownList<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn label_font_size(self, label_font_size: u32) -> DropDownList<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
impl<'a, T> Labelable<'a> for NumberDialer<'a, T>
[src]
pub fn label(self, label: &'a str) -> NumberDialer<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn label_color(self, label_color: Color) -> NumberDialer<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn label_font_size(self, label_font_size: u32) -> NumberDialer<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
impl<'a, T> Labelable<'a> for RangeSlider<'a, T>
[src]
pub fn label(self, label: &'a str) -> RangeSlider<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn label_color(self, label_color: Color) -> RangeSlider<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn label_font_size(self, label_font_size: u32) -> RangeSlider<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
impl<'a, T> Labelable<'a> for Slider<'a, T>
[src]
pub fn label(self, label: &'a str) -> Slider<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn label_color(self, label_color: Color) -> Slider<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn label_font_size(self, label_font_size: u32) -> Slider<'a, T>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
impl<'a, X, Y> Labelable<'a> for XYPad<'a, X, Y>
[src]
pub fn label(self, label: &'a str) -> XYPad<'a, X, Y>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn label_color(self, label_color: Color) -> XYPad<'a, X, Y>
[src]
Build the type’s self.$($assignee).+ with the given $Type.
pub fn label_font_size(self, label_font_size: u32) -> XYPad<'a, X, Y>
[src]
Build the type’s self.$($assignee).+ with the given $Type.