[][src]Struct fltk::text::TextEditor

pub struct TextEditor { /* fields omitted */ }

Creates an editable text display widget

Implementations

impl TextEditor[src]

pub fn set_insert_mode(&mut self, b: bool)[src]

Set to insert mode

pub fn insert_mode(&self) -> bool[src]

Returns whether insert mode is set

pub fn set_tab_nav(&mut self, val: bool)[src]

Set tab navigation

pub fn tab_nav(&self) -> bool[src]

Returns whether tab navigation is set

pub fn copy(&self)[src]

Copies the text within the TextEditor widget

pub fn cut(&self)[src]

Cuts the text within the TextEditor widget

pub fn paste(&self)[src]

Pastes text from the clipboard into the TextEditor widget

pub fn undo(&self)[src]

Undo changes in the TextEditor widget

pub fn kf_default(&mut self, c: Key)[src]

Inserts the text associated with key 'c'

pub fn kf_ignore(&mut self, c: Key)[src]

Ignores the key 'c' in editor

pub fn kf_backspace(&mut self)[src]

Does a backspace

pub fn kf_enter(&mut self)[src]

Inserts a new line

pub fn kf_move(&mut self, c: Key)[src]

Moves the cursor in the direction indicated by the key

pub fn kf_shift_move(&mut self, c: Key)[src]

Extends the current selection in the direction of key 'c'

pub fn kf_ctrl_move(&mut self, c: Key)[src]

Moves the current text cursor in the direction indicated by control key 'c'

pub fn kf_c_s_move(&mut self, c: Key)[src]

Extends the current selection in the direction indicated by control key 'c'

pub fn kf_meta_move(&mut self, c: Key)[src]

Moves the current text cursor in the direction indicated by meta key 'c'

pub fn kf_m_s_move(&mut self, c: Key)[src]

Extends the current selection in the direction indicated by meta key 'c'

pub fn kf_home(&mut self)[src]

Moves the text cursor to the beginning of the current line

pub fn kf_end(&mut self)[src]

Moves the text cursor to the end of the current line

pub fn kf_left(&mut self)[src]

Moves the text cursor one character to the left

pub fn kf_up(&mut self)[src]

Moves the text cursor one line up

pub fn kf_right(&mut self)[src]

Moves the text cursor one character to the right

pub fn kf_down(&mut self)[src]

Moves the text cursor one line down

pub fn kf_page_up(&mut self)[src]

Moves the text cursor up one page

pub fn kf_page_down(&mut self)[src]

Moves the text cursor down one page

pub fn kf_insert(&mut self)[src]

Toggles the insert mode for the editor

pub fn kf_delete(&mut self)[src]

Does a delete of selected text or the current character in the current buffer

pub fn kf_select_all(&mut self)[src]

Selects all text in the associated buffer

Trait Implementations

impl Clone for TextEditor[src]

impl Debug for TextEditor[src]

impl DisplayExt for TextEditor[src]

impl Send for TextEditor[src]

impl Sync for TextEditor[src]

impl WidgetExt for TextEditor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.