pub struct ViewportToolEntry<T> {
pub id: ViewportToolId,
pub priority: ViewportToolPriority,
pub set_hot: Option<fn(&mut T, bool)>,
pub hit_test: fn(&mut T, ViewportToolCx<'_>) -> bool,
pub handle_event: fn(&mut T, ViewportToolCx<'_>, bool, bool) -> ViewportToolResult,
pub cancel: Option<fn(&mut T)>,
}Fields§
§id: ViewportToolId§priority: ViewportToolPriority§set_hot: Option<fn(&mut T, bool)>§hit_test: fn(&mut T, ViewportToolCx<'_>) -> bool§handle_event: fn(&mut T, ViewportToolCx<'_>, bool, bool) -> ViewportToolResult§cancel: Option<fn(&mut T)>Auto Trait Implementations§
impl<T> Freeze for ViewportToolEntry<T>
impl<T> RefUnwindSafe for ViewportToolEntry<T>
impl<T> Send for ViewportToolEntry<T>
impl<T> Sync for ViewportToolEntry<T>
impl<T> Unpin for ViewportToolEntry<T>
impl<T> UnsafeUnpin for ViewportToolEntry<T>
impl<T> UnwindSafe for ViewportToolEntry<T>
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