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