[][src]Struct tmx::tileset::Image

pub struct Image {
    pub source: String,
    pub transparent_color: Option<String>,
    pub width: u32,
    pub height: u32,
}

Fields

source: String

The reference to the tileset image file (Tiled supports most common image formats).

transparent_color: Option<String>

Defines a specific color that is treated as transparent (example value: “#FF00FF” for magenta). Up until Tiled 0.12, this value is written out without a # but this is planned to change.

width: u32

The image width in pixels (optional, used for tile index correction when the image changes)

height: u32

The image height in pixels (optional)

Trait Implementations

impl Clone for Image[src]

impl Debug for Image[src]

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

impl Eq for Image[src]

impl Hash for Image[src]

impl PartialEq<Image> for Image[src]

impl StructuralEq for Image[src]

impl StructuralPartialEq for Image[src]

Auto Trait Implementations

impl RefUnwindSafe for Image

impl Send for Image

impl Sync for Image

impl Unpin for Image

impl UnwindSafe for Image

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.