pub struct Cond<V0, V1> { /* private fields */ }
Expand description
Struct for cond
Trait Implementations
sourceimpl<V0, V1> View for Cond<V0, V1> where
V0: View,
V1: View,
impl<V0, V1> View for Cond<V0, V1> where
V0: View,
V1: View,
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.
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.
Auto Trait Implementations
impl<V0, V1> RefUnwindSafe for Cond<V0, V1> where
V0: RefUnwindSafe,
V1: RefUnwindSafe,
impl<V0, V1> Send for Cond<V0, V1> where
V0: Send,
V1: Send,
impl<V0, V1> Sync for Cond<V0, V1> where
V0: Sync,
V1: Sync,
impl<V0, V1> Unpin for Cond<V0, V1> where
V0: Unpin,
V1: Unpin,
impl<V0, V1> UnwindSafe for Cond<V0, V1> where
V0: UnwindSafe,
V1: 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