pub struct SceneObject {
pub id: ObjectId,
pub kind: ObjectKind,
pub transform: Transform,
pub lifetime: Lifetime,
pub animations: Vec<Animation>,
pub z_order: i32,
pub opacity: f32,
pub blend_mode: BlendMode,
pub effects: Vec<Effect>,
pub clip: Option<ClipRect>,
}Expand description
One renderable element on a scene.
Fields§
§id: ObjectId§kind: ObjectKind§transform: Transform§lifetime: Lifetime§animations: Vec<Animation>§z_order: i32§opacity: f32§blend_mode: BlendMode§effects: Vec<Effect>§clip: Option<ClipRect>Trait Implementations§
Source§impl Clone for SceneObject
impl Clone for SceneObject
Source§fn clone(&self) -> SceneObject
fn clone(&self) -> SceneObject
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SceneObject
impl Debug for SceneObject
Auto Trait Implementations§
impl Freeze for SceneObject
impl RefUnwindSafe for SceneObject
impl Send for SceneObject
impl Sync for SceneObject
impl Unpin for SceneObject
impl UnsafeUnpin for SceneObject
impl UnwindSafe for SceneObject
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