[][src]Enum tmx::map::Orientation

pub enum Orientation {
    Orthogonal,
    Isometric,
    Staggered {
        stagger_axis: StaggerAxis,
        stagger_index: StaggerIndex,
    },
    Hexagonal {
        hexside_length: i32,
        stagger_axis: StaggerAxis,
        stagger_index: StaggerIndex,
    },
}

Map orientation. Tiled supports “orthogonal”, “isometric”, “staggered” and “hexagonal”.

Variants

Orthogonal
Isometric
Staggered

Fields of Staggered

stagger_axis: StaggerAxis

For staggered and hexagonal maps, determines which axis (“x” or “y”) is staggered.

stagger_index: StaggerIndex

For staggered and hexagonal maps, determines whether the “even” or “odd” indexes along the staggered axis are shifted.

Hexagonal

Fields of Hexagonal

hexside_length: i32

Only for hexagonal maps. Determines the width or height (depending on the staggered axis) of the tile’s edge, in pixels.

stagger_axis: StaggerAxis

For staggered and hexagonal maps, determines which axis (“x” or “y”) is staggered.

stagger_index: StaggerIndex

For staggered and hexagonal maps, determines whether the “even” or “odd” indexes along the staggered axis are shifted.

Trait Implementations

impl Clone for Orientation[src]

impl Copy for Orientation[src]

impl Debug for Orientation[src]

impl<'de> Deserialize<'de> for Orientation[src]

impl Eq for Orientation[src]

impl Hash for Orientation[src]

impl PartialEq<Orientation> for Orientation[src]

impl StructuralEq for Orientation[src]

impl StructuralPartialEq for Orientation[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.