pub struct UseFocus<'a> { /* private fields */ }
Expand description
Manage the focus operations of given Node
Implementations§
§impl UseFocus<'_>
impl UseFocus<'_>
pub fn focus(&self)
pub fn focus(&self)
Focus this node
pub fn id(&self) -> NodeId
pub fn id(&self) -> NodeId
Get the node focus ID
pub fn attribute<T, 'b>(&self, cx: &'b Scoped<'b, T>) -> AttributeValue<'b>
pub fn attribute<T, 'b>(&self, cx: &'b Scoped<'b, T>) -> AttributeValue<'b>
Create a node focus ID attribute
pub fn is_focused(&self) -> bool
pub fn is_focused(&self) -> bool
Check if this node is currently focused
pub fn unfocus(&self)
pub fn unfocus(&self)
Unfocus the currently focused node.