pub struct TextEditContext { /* private fields */ }Expand description
The focused editor and selection at the start of an asynchronous edit.
Implementations§
Source§impl TextEditContext
impl TextEditContext
pub fn for_clipboard( input: &Interaction, scene: &Node, command: TextCommand, ) -> Option<Self>
pub fn capture(input: &Interaction, scene: &Node) -> Option<Self>
pub fn selection(&self) -> &str
pub fn is_current(&self, input: &Interaction, scene: &Node) -> bool
Trait Implementations§
Source§impl Clone for TextEditContext
impl Clone for TextEditContext
Auto Trait Implementations§
impl Forget for TextEditContext
impl Freeze for TextEditContext
impl Move for TextEditContext
impl RefUnwindSafe for TextEditContext
impl Send for TextEditContext
impl Sync for TextEditContext
impl Unpin for TextEditContext
impl UnsafeUnpin for TextEditContext
impl UnwindSafe for TextEditContext
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