pub struct FocusScopeProps {
pub layout: LayoutStyle,
pub trap_focus: bool,
}Expand description
A transparent focus-scope wrapper that can trap focus traversal within its subtree.
This is a small, mechanism-oriented primitive intended to support component-owned focus scopes
(ADR 0068). It does not imply modal barriers or pointer blocking; it only affects focus.next
/ focus.previous command routing when focus is inside the subtree.
Fields§
§layout: LayoutStyle§trap_focus: boolTrait Implementations§
Source§impl Clone for FocusScopeProps
impl Clone for FocusScopeProps
Source§fn clone(&self) -> FocusScopeProps
fn clone(&self) -> FocusScopeProps
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FocusScopeProps
impl Debug for FocusScopeProps
Source§impl Default for FocusScopeProps
impl Default for FocusScopeProps
Source§fn default() -> FocusScopeProps
fn default() -> FocusScopeProps
Returns the “default value” for a type. Read more
impl Copy for FocusScopeProps
Auto Trait Implementations§
impl Freeze for FocusScopeProps
impl RefUnwindSafe for FocusScopeProps
impl Send for FocusScopeProps
impl Sync for FocusScopeProps
impl Unpin for FocusScopeProps
impl UnsafeUnpin for FocusScopeProps
impl UnwindSafe for FocusScopeProps
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