pub struct MapView<S1, SF, F> { /* private fields */ }
Trait Implementations
sourceimpl<S1, V, SF, F> View for MapView<S1, SF, F> where
V: View,
S1: Clone + 'static,
SF: Fn(S1, &mut Context) + 'static,
F: Fn(State<S1>, &mut Context) -> V + 'static,
impl<S1, V, SF, F> View for MapView<S1, SF, F> where
V: View,
S1: Clone + 'static,
SF: Fn(S1, &mut Context) + 'static,
F: Fn(State<S1>, &mut Context) -> V + 'static,
sourcefn process(&self, event: &Event, id: ViewId, cx: &mut Context, vger: &mut Vger)
fn process(&self, event: &Event, id: ViewId, cx: &mut Context, vger: &mut Vger)
Processes an event.
sourcefn layout(
&self,
id: ViewId,
sz: LocalSize,
cx: &mut Context,
vger: &mut Vger
) -> LocalSize
fn layout(
&self,
id: ViewId,
sz: LocalSize,
cx: &mut Context,
vger: &mut Vger
) -> LocalSize
Lays out subviews and return the size of the view.
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,
vger: &mut Vger
) -> Option<ViewId>
fn hittest(
&self,
id: ViewId,
pt: LocalPoint,
cx: &mut Context,
vger: &mut Vger
) -> 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.
fn gc(&self, id: ViewId, cx: &mut Context, map: &mut Vec<ViewId>)
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<S1, SF, F> RefUnwindSafe for MapView<S1, SF, F> where
F: RefUnwindSafe,
S1: RefUnwindSafe,
SF: RefUnwindSafe,
impl<S1, SF, F> Send for MapView<S1, SF, F> where
F: Send,
S1: Send,
SF: Send,
impl<S1, SF, F> Sync for MapView<S1, SF, F> where
F: Sync,
S1: Sync,
SF: Sync,
impl<S1, SF, F> Unpin for MapView<S1, SF, F> where
F: Unpin,
S1: Unpin,
SF: Unpin,
impl<S1, SF, F> UnwindSafe for MapView<S1, SF, F> where
F: UnwindSafe,
S1: UnwindSafe,
SF: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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