Struct conrod::Background [−] [src]

pub struct Background {
    // some fields omitted
}

A type for drawing a colored window background.

Methods

impl Background

fn new() -> Background

Construct a background.

fn draw<B, C>(&mut self, ui: &mut Ui<C>, graphics: &mut B) where B: Graphics<Texture=C::Texture>, C: CharacterCache

Draw the background.

Trait Implementations

impl Colorable for Background

fn color(self, color: Color) -> Self

fn rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self

fn rgb(self, r: f32, g: f32, b: f32) -> Self

fn hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self

fn hsl(self, h: f32, s: f32, l: f32) -> Self

Derived Implementations

impl Clone for Background

fn clone(&self) -> Background

fn clone_from(&mut self, source: &Self)

impl Copy for Background