pub struct DragS<V, F, B, T> { /* private fields */ }
Expand description
Struct for the drag
gesture.
Implementations
sourceimpl<V, F, A, B, T> DragS<V, F, B, T>where
V: View,
F: Fn(&mut T, LocalOffset, GestureState, Option<MouseButton>) -> A + 'static,
B: Binding<T>,
A: 'static,
T: 'static,
impl<V, F, A, B, T> DragS<V, F, B, T>where
V: View,
F: Fn(&mut T, LocalOffset, GestureState, Option<MouseButton>) -> A + 'static,
B: Binding<T>,
A: 'static,
T: 'static,
Trait Implementations
sourceimpl<V, F, A, B, T> View for DragS<V, F, B, T>where
V: View,
F: Fn(&mut T, LocalOffset, GestureState, Option<MouseButton>) -> A + 'static,
B: Binding<T>,
A: 'static,
T: 'static,
impl<V, F, A, B, T> View for DragS<V, F, B, T>where
V: View,
F: Fn(&mut T, LocalOffset, GestureState, Option<MouseButton>) -> A + 'static,
B: Binding<T>,
A: 'static,
T: 'static,
sourcefn process(
&self,
event: &Event,
vid: ViewId,
cx: &mut Context,
actions: &mut Vec<Box<dyn Any>>
)
fn process(
&self,
event: &Event,
vid: ViewId,
cx: &mut Context,
actions: &mut Vec<Box<dyn Any>>
)
Processes an event.
sourcefn layout(&self, id: ViewId, args: &mut LayoutArgs<'_>) -> LocalSize
fn layout(&self, id: ViewId, args: &mut LayoutArgs<'_>) -> LocalSize
Lays out subviews and return the size of the view. Read more
sourcefn dirty(&self, id: ViewId, xform: LocalToWorld, cx: &mut Context)
fn dirty(&self, id: ViewId, xform: LocalToWorld, cx: &mut Context)
Determines dirty regions which need repainting.
sourcefn hittest(&self, id: ViewId, pt: LocalPoint, cx: &mut Context) -> Option<ViewId>
fn hittest(&self, id: ViewId, pt: LocalPoint, cx: &mut Context) -> Option<ViewId>
Returns the topmost view which the point intersects.
sourcefn commands(&self, id: ViewId, cx: &mut Context, cmds: &mut Vec<CommandInfo>)
fn commands(&self, id: ViewId, cx: &mut Context, cmds: &mut Vec<CommandInfo>)
Accumulates information about menu bar commands.
sourcefn gc(&self, id: ViewId, cx: &mut Context, map: &mut Vec<ViewId>)
fn gc(&self, id: ViewId, cx: &mut Context, map: &mut Vec<ViewId>)
Gets IDs for state currently in use.
sourcefn access(
&self,
id: ViewId,
cx: &mut Context,
nodes: &mut Vec<Node>
) -> Option<NodeId>
fn access(
&self,
id: ViewId,
cx: &mut Context,
nodes: &mut Vec<Node>
) -> Option<NodeId>
Builds an AccessKit tree. The node ID for the subtree is returned. All generated nodes are accumulated.
sourcefn is_flexible(&self) -> bool
fn is_flexible(&self) -> bool
For detecting flexible sized things in stacks.
Auto Trait Implementations
impl<V, F, B, T> RefUnwindSafe for DragS<V, F, B, T>where
B: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, F, B, T> Send for DragS<V, F, B, T>where
B: Send,
F: Send,
T: Send,
V: Send,
impl<V, F, B, T> Sync for DragS<V, F, B, T>where
B: Sync,
F: Sync,
T: Sync,
V: Sync,
impl<V, F, B, T> Unpin for DragS<V, F, B, T>where
B: Unpin,
F: Unpin,
T: Unpin,
V: Unpin,
impl<V, F, B, T> UnwindSafe for DragS<V, F, B, T>where
B: UnwindSafe,
F: UnwindSafe,
T: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more