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,
actions: &mut Vec<Box<dyn Any>>
)
fn process(
&self,
event: &Event,
id: 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 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 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 is_flexible(&self) -> bool
fn is_flexible(&self) -> bool
For detecting flexible sized things in stacks.
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 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