[][src]Enum kit::Pivot

pub enum Pivot {
    Center,
    Px(V2),
    Percent(V2),
}

Primarily used for images, this expresses a point within the image that will be aligned to the image's position coordinates and which will be the center of any scaling or rotation applied to the image.

Pivot point coordinates, like Sprites and Quad uvs, are relative to the lower-left corner of the Sprite in question.

Variants

Center
Px(V2)
Percent(V2)

Trait Implementations

impl Clone for Pivot[src]

impl Copy for Pivot[src]

Auto Trait Implementations

impl RefUnwindSafe for Pivot

impl Send for Pivot

impl Sync for Pivot

impl Unpin for Pivot

impl UnwindSafe for Pivot

Blanket Implementations

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> From<T> for T[src]

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

impl<T> SetParameter for T

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<V, T> VZip<V> for T where
    V: MultiLane<T>,