Struct yy_typings::sprite_yy::Layer
source · [−]pub struct Layer {
pub common_data: CommonData<ConstGmImageLayer, LayerId>,
pub visible: bool,
pub is_locked: bool,
pub blend_mode: usize,
pub opacity: f64,
pub display_name: String,
}
Fields
common_data: CommonData<ConstGmImageLayer, LayerId>
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.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Layer
impl<'de> Deserialize<'de> for Layer
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<Layer> for Layer
impl PartialEq<Layer> for Layer
impl StructuralPartialEq for Layer
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more