Trait conrod::Frameable
[−]
[src]
pub trait Frameable: Sized { fn frame(self, width: f64) -> Self; fn frame_color(self, color: Color) -> Self; fn frame_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self { ... } fn frame_rgb(self, r: f32, g: f32, b: f32) -> Self { ... } fn frame_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self { ... } fn frame_hsl(self, h: f32, s: f32, l: f32) -> Self { ... } }
Widgets that may display a frame.
Required Methods
fn frame(self, width: f64) -> Self
Set the width of the widget's frame.
fn frame_color(self, color: Color) -> Self
Set the color of the widget's frame.
Provided Methods
fn frame_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self
Set the color of the widget's frame with rgba values.
fn frame_rgb(self, r: f32, g: f32, b: f32) -> Self
Set the color of the widget's frame with rgb values.
fn frame_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self
Set the color of the widget's frame with hsla values.
fn frame_hsl(self, h: f32, s: f32, l: f32) -> Self
Set the color of the widget's frame with hsl values.
Implementors
impl<'a> Frameable for Split<'a>
impl<'a, F> Frameable for Button<'a, F>
impl<'a, F> Frameable for DropDownList<'a, F>
impl<'a, E, F> Frameable for EnvelopeEditor<'a, E, F> where E: EnvelopePoint
impl<'a, T, F> Frameable for NumberDialer<'a, T, F>
impl<'a, T, F> Frameable for Slider<'a, T, F>
impl<'a, F> Frameable for TextBox<'a, F>
impl<'a, F> Frameable for Toggle<'a, F>
impl<'a, X, Y, F> Frameable for XYPad<'a, X, Y, F>