Struct yy_typings::sprite_yy::Layer [−][src]
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: ResourceVersion
Currently “1.0”
name: LayerId
The legacy name of the LayerId.
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: Default::default(), name: Default::default(), tags: Default::default(), resource_type: Default::default() }
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 Serialize for Layer
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,