pub struct ResizeDirection {
pub horizontal: i8,
pub vertical: i8,
}Expand description
Resize direction during drag
Fields§
§horizontal: i8Resize horizontally (-1 = left, 0 = none, 1 = right)
vertical: i8Resize vertically (-1 = up, 0 = none, 1 = down)
Implementations§
Source§impl ResizeDirection
impl ResizeDirection
Sourcepub fn from_handle(handle: ResizeHandle) -> Self
pub fn from_handle(handle: ResizeHandle) -> Self
From handle
Trait Implementations§
Source§impl Clone for ResizeDirection
impl Clone for ResizeDirection
Source§fn clone(&self) -> ResizeDirection
fn clone(&self) -> ResizeDirection
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 ResizeDirection
impl Debug for ResizeDirection
Source§impl PartialEq for ResizeDirection
impl PartialEq for ResizeDirection
impl Copy for ResizeDirection
impl Eq for ResizeDirection
impl StructuralPartialEq for ResizeDirection
Auto Trait Implementations§
impl Freeze for ResizeDirection
impl RefUnwindSafe for ResizeDirection
impl Send for ResizeDirection
impl Sync for ResizeDirection
impl Unpin for ResizeDirection
impl UnsafeUnpin for ResizeDirection
impl UnwindSafe for ResizeDirection
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