[−][src]Struct tmx::tileset::Tileset
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: Image
tiles: Vec<Tile>
Implementations
impl Tileset
[src]
pub fn from_json(s: &str) -> Result<Tileset, Error>
[src]
pub fn from_json_data(buf: &[u8]) -> Result<Tileset, Error>
[src]
pub fn from_xml(s: &str) -> Result<Tileset, Error>
[src]
pub fn from_xml_data(buf: &[u8]) -> Result<Tileset, Error>
[src]
Trait Implementations
impl Clone for Tileset
[src]
impl Debug for Tileset
[src]
impl<'de> Deserialize<'de> for Tileset
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Tileset
[src]
impl Hash for Tileset
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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>,