[][src]Enum quicksilver::graphics::Background

pub enum Background<'a> {
    Col(Color),
    Img(&'a Image),
}

The background to use for a given drawable

While each Drawable can define its own behavior, the recommended behavior is that the Image be applied in proportion to the relative position of the vertices. This means the left-most vertex should use the left edge of the image, the right-most vertex should use the right edge of the image, etc.

Variants

A uniform color background

A textured background

Methods

impl<'a> Background<'a>
[src]

Return either the stored Image or None

Return either the stored Color or Color::WHITE

Trait Implementations

impl<'a> Clone for Background<'a>
[src]

Performs copy-assignment from source. Read more

impl<'a> Copy for Background<'a>
[src]

Auto Trait Implementations

impl<'a> !Send for Background<'a>

impl<'a> !Sync for Background<'a>

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

Sets value as a parameter of self.

impl<T> Erased for T

impl<T> Same for T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]