pub struct LayerData {
pub name: String,
pub visible: bool,
pub offset_x: f32,
pub offset_y: f32,
pub parallax_x: f32,
pub parallax_y: f32,
pub opacity: f32,
pub tint_color: Option<Color>,
pub properties: Properties,
pub user_type: Option<String>,
/* private fields */
}Fields§
§name: StringThe layer’s name, set arbitrarily by the user.
visible: boolWhether this layer should be visible or not.
offset_x: f32The layer’s x offset (in pixels).
offset_y: f32The layer’s y offset (in pixels).
parallax_x: f32The layer’s x parallax factor.
parallax_y: f32The layer’s y parallax factor.
opacity: f32The layer’s opacity.
tint_color: Option<Color>The layer’s tint color.
properties: PropertiesThe layer’s custom properties, as arbitrarily set by the user.
user_type: Option<String>The layer’s type, which is arbitrarily setby the user.
Implementations§
Trait Implementations§
impl StructuralPartialEq for LayerData
Auto Trait Implementations§
impl Freeze for LayerData
impl RefUnwindSafe for LayerData
impl Send for LayerData
impl Sync for LayerData
impl Unpin for LayerData
impl UnwindSafe for LayerData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more