[][src]Struct yy_typings::sprite::Layer

pub struct Layer {
    pub visible: bool,
    pub is_locked: bool,
    pub blend_mode: usize,
    pub opacity: f64,
    pub display_name: String,
    pub resource_version: String,
    pub name: LayerId,
    pub tags: Tags,
    pub resource_type: ConstGmImageLayer,
}

Fields

visible: bool

Defines the visibility of the layer. It will default to true on import. It is changed in the GMS2 Sprite Editor.

is_locked: bool

Defines if the layer is locked to editing. Only has an effect on the GMS2 Sprite Editor.

blend_mode: usize

Defines the blendmode in the GMS2 editor. @todo Must be typed at a later date.

opacity: f64

Between 0-100

display_name: String

This is the actual name shown in the GMS2 Sprite Editor.

resource_version: String

Currently "1.0"

name: LayerId

The legacy name of the LayerId.

tags: Tags

The tags assigned to each layer.

resource_type: ConstGmImageLayer

The name of the Resource Type, which is always "GMImageLayer".

Trait Implementations

impl Clone for Layer[src]

impl Debug for Layer[src]

impl Default for Layer[src]

fn default() -> Self[src]

Return Layer { visible: Default::default(), is_locked: Default::default(), blend_mode: Default::default(), opacity: Default::default(), display_name: Default::default(), resource_version: "1.0" . to_string(), name: Default::default(), tags: Default::default(), resource_type: Default::default() }

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

impl PartialEq<Layer> for Layer[src]

impl Serialize 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]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,