pub struct FocusNode {
pub id: FocusId,
pub bounds: Rect,
pub tab_index: i32,
pub is_focusable: bool,
pub group_id: Option<u32>,
}Expand description
A focusable node in the graph.
Fields§
§id: FocusIdUnique identifier.
bounds: RectBounding rectangle in terminal coordinates.
tab_index: i32Tab index for sequential navigation. Negative values skip tab order.
is_focusable: boolWhether this node can receive focus.
group_id: Option<u32>Optional group for focus trapping regions.
Implementations§
Source§impl FocusNode
impl FocusNode
Sourcepub fn with_tab_index(self, idx: i32) -> Self
pub fn with_tab_index(self, idx: i32) -> Self
Builder: set tab index.
Sourcepub fn with_focusable(self, focusable: bool) -> Self
pub fn with_focusable(self, focusable: bool) -> Self
Builder: set focusable flag.
Sourcepub fn with_group(self, group: u32) -> Self
pub fn with_group(self, group: u32) -> Self
Builder: set group.
Trait Implementations§
impl Eq for FocusNode
impl StructuralPartialEq for FocusNode
Auto Trait Implementations§
impl Freeze for FocusNode
impl RefUnwindSafe for FocusNode
impl Send for FocusNode
impl Sync for FocusNode
impl Unpin for FocusNode
impl UnsafeUnpin for FocusNode
impl UnwindSafe for FocusNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.