[−][src]Struct tmx::layer::Layer
Fields
id: u32
Unique ID of the layer. Each layer that added to a map gets a unique id. Even if a layer is deleted, no layer ever gets the same ID. Can not be changed in Tiled. (since Tiled 1.2)
name: String
The name of the layer.
x: i32
The x coordinate of the layer in tiles. Defaults to 0 and can not be changed in Tiled.
y: i32
The y coordinate of the layer in tiles. Defaults to 0 and can not be changed in Tiled.
width: i32
The width of the layer in tiles. Always the same as the map width for fixed-size maps.
height: i32
The height of the layer in tiles. Always the same as the map height for fixed-size maps.
visible: bool
locked: bool
opacity: f64
The opacity of the layer as a value from 0 to 1. Defaults to 1.
offset_x: f64
Rendering offset for this layer in pixels. Defaults to 0. (since 0.14)
offset_y: f64
Rendering offset for this layer in pixels. Defaults to 0. (since 0.14)
data: LayerData
Trait Implementations
impl Clone for Layer
[src]
impl Debug for Layer
[src]
impl<'de> Deserialize<'de> for Layer
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Layer> for Layer
[src]
impl StructuralPartialEq for Layer
[src]
Auto Trait Implementations
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnwindSafe for Layer
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>,