pub struct FocusHandle(/* private fields */);Expand description
Identity of a focus target in one component instance.
Implementations§
Source§impl FocusHandle
impl FocusHandle
pub fn can_undo(&self) -> bool
pub fn can_redo(&self) -> bool
pub fn can_cut(&self) -> bool
pub fn can_copy(&self) -> bool
pub fn cursor_offset(&self) -> i64
pub fn selection_start_offset(&self) -> i64
pub fn selection_end_offset(&self) -> i64
pub fn selected_text(&self) -> String
pub fn has_focus(&self) -> bool
pub fn focus_within(&self) -> bool
pub fn request(&self, action: FocusAction)
Trait Implementations§
Source§impl Clone for FocusHandle
impl Clone for FocusHandle
Source§impl Debug for FocusHandle
impl Debug for FocusHandle
Source§impl Default for FocusHandle
impl Default for FocusHandle
Auto Trait Implementations§
impl !RefUnwindSafe for FocusHandle
impl !Send for FocusHandle
impl !Sync for FocusHandle
impl !UnwindSafe for FocusHandle
impl Forget for FocusHandle
impl Freeze for FocusHandle
impl Move for FocusHandle
impl Unpin for FocusHandle
impl UnsafeUnpin for FocusHandle
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