pub struct RealtimeLayerDescriptor {
pub effects: Vec<FilterStep>,
pub opacity: AnimatedValue<f64>,
pub x: AnimatedValue<f64>,
pub y: AnimatedValue<f64>,
pub scale_x: AnimatedValue<f64>,
pub scale_y: AnimatedValue<f64>,
pub rotation: AnimatedValue<f64>,
pub blend_mode: BlendMode,
pub composite_op: CompositeOp,
}Expand description
The dimension-independent part of a RealtimeLayer: every field except
width / height / pixel_format, which are only known once a frame has been
decoded.
An engine derives a descriptor from its editing model; a real-time driver
realises it into a RealtimeLayer at decode time via
RealtimeLayer::with_dimensions.
Fields§
§effects: Vec<FilterStep>§opacity: AnimatedValue<f64>§x: AnimatedValue<f64>See RealtimeLayer::x.
y: AnimatedValue<f64>See RealtimeLayer::y.
scale_x: AnimatedValue<f64>§scale_y: AnimatedValue<f64>§rotation: AnimatedValue<f64>§blend_mode: BlendMode§composite_op: CompositeOpTrait Implementations§
Source§impl Clone for RealtimeLayerDescriptor
impl Clone for RealtimeLayerDescriptor
Source§fn clone(&self) -> RealtimeLayerDescriptor
fn clone(&self) -> RealtimeLayerDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RealtimeLayerDescriptor
impl RefUnwindSafe for RealtimeLayerDescriptor
impl Send for RealtimeLayerDescriptor
impl Sync for RealtimeLayerDescriptor
impl Unpin for RealtimeLayerDescriptor
impl UnsafeUnpin for RealtimeLayerDescriptor
impl UnwindSafe for RealtimeLayerDescriptor
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