pub enum GpuOpacityKeyEvent {
Added(NodeId, OpacityKey, f32),
Changed(NodeId, OpacityKey, f32, f32),
Removed(NodeId, OpacityKey),
}Expand description
Represents a change to a GPU opacity key.
These events are generated when synchronizing the cache with the StyledDom
and are used to update WebRender’s opacity state efficiently.
Variants§
Added(NodeId, OpacityKey, f32)
A new opacity was added to a node
Changed(NodeId, OpacityKey, f32, f32)
An existing opacity was modified (includes old and new values)
Removed(NodeId, OpacityKey)
An opacity was removed from a node
Trait Implementations§
Source§impl Clone for GpuOpacityKeyEvent
impl Clone for GpuOpacityKeyEvent
Source§fn clone(&self) -> GpuOpacityKeyEvent
fn clone(&self) -> GpuOpacityKeyEvent
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 moreSource§impl Debug for GpuOpacityKeyEvent
impl Debug for GpuOpacityKeyEvent
Source§impl PartialEq for GpuOpacityKeyEvent
impl PartialEq for GpuOpacityKeyEvent
Source§fn eq(&self, other: &GpuOpacityKeyEvent) -> bool
fn eq(&self, other: &GpuOpacityKeyEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GpuOpacityKeyEvent
impl PartialOrd for GpuOpacityKeyEvent
impl StructuralPartialEq for GpuOpacityKeyEvent
Auto Trait Implementations§
impl Freeze for GpuOpacityKeyEvent
impl RefUnwindSafe for GpuOpacityKeyEvent
impl Send for GpuOpacityKeyEvent
impl Sync for GpuOpacityKeyEvent
impl Unpin for GpuOpacityKeyEvent
impl UnsafeUnpin for GpuOpacityKeyEvent
impl UnwindSafe for GpuOpacityKeyEvent
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