pub struct Spacer {}
Trait Implementations§
source§impl View for Spacer
impl View for Spacer
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 is_flexible(&self) -> bool
fn is_flexible(&self) -> bool
For detecting flexible sized things in stacks.
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 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 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 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 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.