pub struct ScrollbarHit {
pub dom_id: DomId,
pub node_id: NodeId,
pub orientation: ScrollbarOrientation,
pub component: ScrollbarComponent,
pub local_position: LogicalPosition,
pub global_position: LogicalPosition,
}Expand description
Result of a scrollbar hit-test
Contains information about which scrollbar component was hit and the position relative to both the track and the window.
Fields§
§dom_id: DomIdDOM containing the scrollable node
node_id: NodeIdNode with the scrollbar
orientation: ScrollbarOrientationWhether this is a vertical or horizontal scrollbar
component: ScrollbarComponentWhich component was hit (track, thumb, buttons)
local_position: LogicalPositionPosition relative to track_rect origin
global_position: LogicalPositionOriginal global window position
Trait Implementations§
Source§impl Clone for ScrollbarHit
impl Clone for ScrollbarHit
Source§fn clone(&self) -> ScrollbarHit
fn clone(&self) -> ScrollbarHit
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 ScrollbarHit
impl Debug for ScrollbarHit
impl Copy for ScrollbarHit
Auto Trait Implementations§
impl Freeze for ScrollbarHit
impl RefUnwindSafe for ScrollbarHit
impl Send for ScrollbarHit
impl Sync for ScrollbarHit
impl Unpin for ScrollbarHit
impl UnwindSafe for ScrollbarHit
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