Trait Implementations
sourceimpl<S, V, F> View for StateView<S, V, F> where
V: View,
S: Clone,
F: Fn(State<S>) -> V,
impl<S, V, F> View for StateView<S, V, F> where
V: View,
S: Clone,
F: Fn(State<S>) -> V,
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 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.
fn commands(&self, id: ViewID, cx: &mut Context, cmds: &mut Vec<CommandInfo>)
Auto Trait Implementations
impl<S, V, F> RefUnwindSafe for StateView<S, V, F> where
F: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, V, F> Send for StateView<S, V, F> where
F: Send,
S: Send,
impl<S, V, F> Sync for StateView<S, V, F> where
F: Sync,
S: Sync,
impl<S, V, F> Unpin for StateView<S, V, F> where
F: Unpin,
S: Unpin,
impl<S, V, F> UnwindSafe for StateView<S, V, F> where
F: UnwindSafe,
S: 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