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§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer