Enum egui::memory::FocusDirection
source · enum FocusDirection {
Up,
Right,
Down,
Left,
Previous,
Next,
None,
}
Variants§
Up
Select the widget closest above the current focused widget.
Right
Select the widget to the right of the current focused widget.
Down
Select the widget below the current focused widget.
Left
Select the widget to the left of the current focused widget.
Previous
Select the previous widget that had focus.
Next
Select the next widget that wants focus.
None
Don’t change focus.
Implementations§
source§impl FocusDirection
impl FocusDirection
fn is_cardinal(&self) -> bool
Trait Implementations§
source§impl Clone for FocusDirection
impl Clone for FocusDirection
source§fn clone(&self) -> FocusDirection
fn clone(&self) -> FocusDirection
Returns a copy 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 FocusDirection
impl Debug for FocusDirection
source§impl Default for FocusDirection
impl Default for FocusDirection
source§fn default() -> FocusDirection
fn default() -> FocusDirection
Returns the “default value” for a type. Read more
source§impl PartialEq for FocusDirection
impl PartialEq for FocusDirection
source§fn eq(&self, other: &FocusDirection) -> bool
fn eq(&self, other: &FocusDirection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FocusDirection
impl Eq for FocusDirection
impl StructuralPartialEq for FocusDirection
Auto Trait Implementations§
impl Freeze for FocusDirection
impl RefUnwindSafe for FocusDirection
impl Send for FocusDirection
impl Sync for FocusDirection
impl Unpin for FocusDirection
impl UnwindSafe for FocusDirection
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