[][src]Struct tmx::tileset::Tileset

pub struct Tileset {
    pub metadata: Option<Metadata>,
    pub name: String,
    pub tile_width: u32,
    pub tile_height: u32,
    pub spacing: u32,
    pub margin: u32,
    pub tile_count: usize,
    pub columns: u32,
    pub background_color: Option<String>,
    pub image: Image,
    pub tiles: Vec<Tile>,
}

Fields

metadata: Option<Metadata>name: String

The name of this tileset.

tile_width: u32

The (maximum) width of the tiles in this tileset.

tile_height: u32

The (maximum) height of the tiles in this tileset.

spacing: u32

The spacing in pixels between the tiles in this tileset (applies to the tileset image).

margin: u32

The margin around the tiles in this tileset (applies to the tileset image).

tile_count: usize

The number of tiles in this tileset (since 0.13)

columns: u32

The number of tile columns in the tileset. For image collection tilesets it is editable and is used when displaying the tileset. (since 0.15)

background_color: Option<String>image: Imagetiles: Vec<Tile>

Implementations

impl Tileset[src]

Trait Implementations

impl Clone for Tileset[src]

impl Debug for Tileset[src]

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

impl Eq for Tileset[src]

impl Hash for Tileset[src]

impl PartialEq<Tileset> for Tileset[src]

impl StructuralEq for Tileset[src]

impl StructuralPartialEq for Tileset[src]

Auto Trait Implementations

impl RefUnwindSafe for Tileset

impl Send for Tileset

impl Sync for Tileset

impl Unpin for Tileset

impl UnwindSafe for Tileset

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.