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: String
The layer’s name, set arbitrarily by the user.
visible: bool
Whether this layer should be visible or not.
offset_x: f32
The layer’s x offset (in pixels).
offset_y: f32
The layer’s y offset (in pixels).
parallax_x: f32
The layer’s x parallax factor.
parallax_y: f32
The layer’s y parallax factor.
opacity: f32
The layer’s opacity.
tint_color: Option<Color>
The layer’s tint color.
properties: Properties
The 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§
source§impl PartialEq for LayerData
impl PartialEq for LayerData
impl StructuralPartialEq for LayerData
Auto Trait Implementations§
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