pub struct ResizeHandleContext { /* private fields */ }Expand description
What a ResizeHandleRenderer is told about the handle it is drawing.
The hit area, the cursor and the drag itself stay with the handle; a renderer only supplies what is painted inside it.
Implementations§
Source§impl ResizeHandleContext
impl ResizeHandleContext
Sourcepub fn axis(&self) -> Axis
pub fn axis(&self) -> Axis
The axis the handle resizes along: Horizontal for a vertical divider
between two side-by-side panels.
Sourcepub fn edge(&self) -> Option<HandleEdge>
pub fn edge(&self) -> Option<HandleEdge>
The edge of its container this handle hugs, or None for a handle
straddling the boundary it resizes.
A hugging handle’s line is the container’s outermost pixel, so anything
a renderer centres on it crosses the boundary; see HandleEdge for
what the container does with that.
Sourcepub fn state(&self) -> ResizeHandleState
pub fn state(&self) -> ResizeHandleState
How far the pointer has gone with this handle.
Auto Trait Implementations§
impl Freeze for ResizeHandleContext
impl RefUnwindSafe for ResizeHandleContext
impl Send for ResizeHandleContext
impl Sync for ResizeHandleContext
impl Unpin for ResizeHandleContext
impl UnsafeUnpin for ResizeHandleContext
impl UnwindSafe for ResizeHandleContext
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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