Struct conrod::Background
[−]
[src]
pub struct Background { // some fields omitted }
A type for drawing a colored window background.
Methods
impl Background
[src]
fn new() -> Background
Construct a background.
fn set<C>(&mut self, ui: &mut Ui<C>) where C: CharacterCache
Set the color used clear the background with before drawing widgets.
Trait Implementations
impl Clone for Background
[src]
fn clone(&self) -> Background
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Background
[src]
impl Colorable for Background
[src]
fn color(self, color: Color) -> Self
Set the color of the widget.
fn rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self
Set the color of the widget from rgba values.
fn rgb(self, r: f32, g: f32, b: f32) -> Self
Set the color of the widget from rgb values.
fn hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self
Set the color of the widget from hsla values.
fn hsl(self, h: f32, s: f32, l: f32) -> Self
Set the color of the widget from hsl values.