Struct rui::CommandGroup
source · pub struct CommandGroup<V, C> { /* private fields */ }
Implementations§
source§impl<V, C> CommandGroup<V, C>where
V: View,
C: CommandTuple,
impl<V, C> CommandGroup<V, C>where V: View, C: CommandTuple,
Trait Implementations§
source§impl<V, C> View for CommandGroup<V, C>where
V: View,
C: CommandTuple + 'static,
impl<V, C> View for CommandGroup<V, C>where V: View, C: CommandTuple + 'static,
source§fn 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.
source§fn 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
source§fn 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.
source§fn 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.
source§fn 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.
source§fn access(
&self,
id: ViewId,
cx: &mut Context,
nodes: &mut Vec<(NodeId, Node)>
) -> Option<NodeId>
fn access( &self, id: ViewId, cx: &mut Context, nodes: &mut Vec<(NodeId, Node)> ) -> Option<NodeId>
Builds an AccessKit tree. The node ID for the subtree is returned. All generated nodes are accumulated.
source§fn 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.
source§fn is_flexible(&self) -> bool
fn is_flexible(&self) -> bool
For detecting flexible sized things in stacks.