[−][src]Enum quicksilver::graphics::Background
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
Col(Color)
A uniform color background
Img(&'a Image)
A textured background
A color and image blended multiplicatively
Methods
impl<'a> Background<'a>
[src]
pub fn image(&self) -> Option<&Image>
[src]
Return either the stored Image or None
pub fn color(&self) -> Color
[src]
Return either the stored Color or Color::WHITE
Trait Implementations
impl<'a> Clone for Background<'a>
[src]
fn clone(&self) -> Background<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> From<Color> for Background<'a>
[src]
impl<'a> From<&'a Image> for Background<'a>
[src]
impl<'a> From<(&'a Image, Color)> for Background<'a>
[src]
impl<'a> Copy for Background<'a>
[src]
Auto Trait Implementations
impl<'a> !Send for Background<'a>
impl<'a> Unpin for Background<'a>
impl<'a> !Sync for Background<'a>
impl<'a> !UnwindSafe for Background<'a>
impl<'a> !RefUnwindSafe for Background<'a>
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> Slottable for T where
T: Copy,
[src]
T: Copy,