Trait conrod_core::Labelable
source · 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 { ... }
}
Expand description
Widgets that may display some label.
Required Methods§
sourcefn label_color(self, color: Color) -> Self
fn label_color(self, color: Color) -> Self
Set the color of the widget’s label.
sourcefn label_font_size(self, size: FontSize) -> Self
fn label_font_size(self, size: FontSize) -> Self
Set the font size for the widget’s label.
Provided Methods§
sourcefn label_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self
fn label_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self
Set the color of the widget’s label from rgba values.
sourcefn label_rgb(self, r: f32, g: f32, b: f32) -> Self
fn label_rgb(self, r: f32, g: f32, b: f32) -> Self
Set the color of the widget’s label from rgb values.
sourcefn label_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self
fn label_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self
Set the color of the widget’s label from hsla values.
sourcefn label_hsl(self, h: f32, s: f32, l: f32) -> Self
fn label_hsl(self, h: f32, s: f32, l: f32) -> Self
Set the color of the widget’s label from hsl values.
sourcefn small_font(self, ui: &Ui) -> Self
fn small_font(self, ui: &Ui) -> Self
Set a “small” font size for the widget’s label.
sourcefn medium_font(self, ui: &Ui) -> Self
fn medium_font(self, ui: &Ui) -> Self
Set a “medium” font size for the widget’s label.
sourcefn large_font(self, ui: &Ui) -> Self
fn large_font(self, ui: &Ui) -> Self
Set a “large” font size for the widget’s label.