Struct nannou::draw::primitive::texture::Texture[][src]

pub struct Texture<S = Default> { /* fields omitted */ }

Properties related to drawing a Rect.

Implementations

impl<S> Texture<S>[src]

pub fn area(self, rect: Rect) -> Self[src]

Specify the area of the texture to draw.

The bounds of the rectangle should represent the desired area as texture coordinates of the underlying texture.

Texture coordinates range from (0.0, 0.0) in the bottom left of the texture, to (1.0, 1.0) in the top right of the texture.

By default, the area represents the full extent of the texture.

Trait Implementations

impl<S: Clone> Clone for Texture<S>[src]

impl<S: Debug> Debug for Texture<S>[src]

impl<S> From<Texture<S>> for Primitive<S>[src]

impl RenderPrimitive for Texture<f32>[src]

impl<S> SetDimensions<S> for Texture<S>[src]

impl<S> SetOrientation<S> for Texture<S>[src]

impl<S> SetPosition<S> for Texture<S>[src]

Auto Trait Implementations

impl<S = f32> !RefUnwindSafe for Texture<S>

impl<S> Send for Texture<S> where
    S: Send

impl<S> Sync for Texture<S> where
    S: Sync

impl<S> Unpin for Texture<S> where
    S: Unpin

impl<S = f32> !UnwindSafe for Texture<S>

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: Component + Float,
    D: AdaptFrom<S, Swp, Dwp, T>,
    Swp: WhitePoint,
    Dwp: WhitePoint
[src]

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

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

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

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<T> Downcast<T> for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SetParameter for T

impl<S, T> SetSpatial<S> for T where
    T: SetDimensions<S> + SetPosition<S> + SetOrientation<S>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,