Enum druid::scroll_component::BarHoveredState
source · pub enum BarHoveredState {
None,
Vertical,
Horizontal,
}
Expand description
Denotes which scrollbar, if any, is currently being hovered over by the mouse.
Variants§
None
Neither scrollbar is being hovered by the mouse.
Vertical
The vertical scrollbar is being hovered by the mouse.
Horizontal
The horizontal scrollbar is being hovered by the mouse.
Implementations§
source§impl BarHoveredState
impl BarHoveredState
sourcepub fn is_hovered(self) -> bool
pub fn is_hovered(self) -> bool
Determines if any scrollbar is currently being hovered by the mouse.
Trait Implementations§
source§impl Clone for BarHoveredState
impl Clone for BarHoveredState
source§fn clone(&self) -> BarHoveredState
fn clone(&self) -> BarHoveredState
Returns a copy 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 BarHoveredState
impl Debug for BarHoveredState
impl Copy for BarHoveredState
Auto Trait Implementations§
impl RefUnwindSafe for BarHoveredState
impl Send for BarHoveredState
impl Sync for BarHoveredState
impl Unpin for BarHoveredState
impl UnwindSafe for BarHoveredState
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.