pub enum GpuScrollbarOpacityEvent {
VerticalAdded(DomId, NodeId, OpacityKey, f32),
VerticalChanged(DomId, NodeId, OpacityKey, f32, f32),
VerticalRemoved(DomId, NodeId, OpacityKey),
HorizontalAdded(DomId, NodeId, OpacityKey, f32),
HorizontalChanged(DomId, NodeId, OpacityKey, f32, f32),
HorizontalRemoved(DomId, NodeId, OpacityKey),
}Expand description
Represents a change to a scrollbar opacity key.
Scrollbar opacity is managed separately from CSS opacity to enable independent fading animations without affecting element opacity.
Variants§
VerticalAdded(DomId, NodeId, OpacityKey, f32)
A vertical scrollbar was added to a node
VerticalChanged(DomId, NodeId, OpacityKey, f32, f32)
A vertical scrollbar opacity was changed
VerticalRemoved(DomId, NodeId, OpacityKey)
A vertical scrollbar was removed from a node
HorizontalAdded(DomId, NodeId, OpacityKey, f32)
A horizontal scrollbar was added to a node
HorizontalChanged(DomId, NodeId, OpacityKey, f32, f32)
A horizontal scrollbar opacity was changed
HorizontalRemoved(DomId, NodeId, OpacityKey)
A horizontal scrollbar was removed from a node
Trait Implementations§
Source§impl Clone for GpuScrollbarOpacityEvent
impl Clone for GpuScrollbarOpacityEvent
Source§fn clone(&self) -> GpuScrollbarOpacityEvent
fn clone(&self) -> GpuScrollbarOpacityEvent
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 GpuScrollbarOpacityEvent
impl Debug for GpuScrollbarOpacityEvent
Source§impl PartialEq for GpuScrollbarOpacityEvent
impl PartialEq for GpuScrollbarOpacityEvent
Source§fn eq(&self, other: &GpuScrollbarOpacityEvent) -> bool
fn eq(&self, other: &GpuScrollbarOpacityEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GpuScrollbarOpacityEvent
impl PartialOrd for GpuScrollbarOpacityEvent
impl StructuralPartialEq for GpuScrollbarOpacityEvent
Auto Trait Implementations§
impl Freeze for GpuScrollbarOpacityEvent
impl RefUnwindSafe for GpuScrollbarOpacityEvent
impl Send for GpuScrollbarOpacityEvent
impl Sync for GpuScrollbarOpacityEvent
impl Unpin for GpuScrollbarOpacityEvent
impl UnsafeUnpin for GpuScrollbarOpacityEvent
impl UnwindSafe for GpuScrollbarOpacityEvent
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