Enum cosmic_text::TextAction
source · [−]pub enum TextAction {
}Expand description
An action to perform on a TextBuffer
Variants
Previous
Move cursor to previous character ([Left] in LTR, [Right] in RTL)
Next
Move cursor to next character ([Right] in LTR, [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
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: i32Scroll specified number of lines
Trait Implementations
sourceimpl Clone for TextAction
impl Clone for TextAction
sourcefn clone(&self) -> TextAction
fn clone(&self) -> TextAction
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for TextAction
impl Debug for TextAction
sourceimpl PartialEq<TextAction> for TextAction
impl PartialEq<TextAction> for TextAction
sourcefn eq(&self, other: &TextAction) -> bool
fn eq(&self, other: &TextAction) -> bool
impl Copy for TextAction
impl Eq for TextAction
impl StructuralEq for TextAction
impl StructuralPartialEq for TextAction
Auto Trait Implementations
impl RefUnwindSafe for TextAction
impl Send for TextAction
impl Sync for TextAction
impl Unpin for TextAction
impl UnwindSafe for TextAction
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