pub struct Handle<'a> { /* private fields */ }
Expand description
Handle::ui is used to draw the drag handle
Implementations§
source§impl<'a> Handle<'a>
impl<'a> Handle<'a>
sourcepub fn sense(self, sense: Sense) -> Self
pub fn sense(self, sense: Sense) -> Self
You can add Sense::click if you want to listen for clicks on the handle Warning: This will make anything sensing clicks in the handle not draggable Make sure to not set this if your handle consists of a single button, and directly query the button for clicks.
sourcepub fn show_drag_cursor_on_hover(self, show: bool) -> Self
pub fn show_drag_cursor_on_hover(self, show: bool) -> Self
If true
, the cursor will change to a grab cursor when hovering over the handle
This is true
by default
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Handle<'a>
impl<'a> Send for Handle<'a>
impl<'a> Sync for Handle<'a>
impl<'a> Unpin for Handle<'a>
impl<'a> !UnwindSafe for Handle<'a>
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