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.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for UseFocus<'a>
impl<'a> !Send for UseFocus<'a>
impl<'a> !Sync for UseFocus<'a>
impl<'a> Unpin for UseFocus<'a>
impl<'a> !UnwindSafe for UseFocus<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more