Enum cosmic_text::Action
source · pub enum Action {
}
Expand description
An action to perform on an Editor
Variants
Previous
Move cursor to previous character (Self::Left in LTR, Self::Right in RTL)
Next
Move cursor to next character (Self::Right in LTR, Self::Left in RTL)
Left
Move cursor left
Right
Move cursor right
Up
Move cursor up
Down
Move cursor down
Home
Move cursor to start of line
End
Move cursor to end of line
PageUp
Scroll up one page
PageDown
Scroll down one page
Escape
Escape, clears selection
Insert(char)
Insert character at cursor
Enter
Create new line
Backspace
Delete text behind cursor
Delete
Delete text in front of cursor
Click
Mouse click at specified position
Drag
Mouse drag to specified position
Scroll
Fields
lines: i32
Scroll specified number of lines
Trait Implementations
impl Copy for Action
impl Eq for Action
impl StructuralEq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more