pub enum FocusWrap {
Clamp,
Wrap,
}Expand description
Edge behavior for UiState::focus_direction, chosen on each call.
Variants§
Clamp
Keep focus when no eligible center lies ahead in the requested direction.
Wrap
If no center lies ahead, choose one behind at the opposite edge. Prefer overlapping rows/columns, then the furthest center behind, then the smallest perpendicular center distance, then the lowest widget ID. Equal-axis centers are not wrap targets; a lone widget retains focus.
Trait Implementations§
impl Copy for FocusWrap
impl Eq for FocusWrap
impl StructuralPartialEq for FocusWrap
Auto Trait Implementations§
impl Freeze for FocusWrap
impl RefUnwindSafe for FocusWrap
impl Send for FocusWrap
impl Sync for FocusWrap
impl Unpin for FocusWrap
impl UnwindSafe for FocusWrap
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