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 · 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§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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more