[−][src]Struct fltk::text::TextEditor
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]
fn clone(&self) -> TextEditor
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TextEditor
[src]
impl DisplayExt for TextEditor
[src]
fn buffer(&self) -> Option<TextBuffer>
[src]
fn set_buffer(&mut self, buffer: Option<TextBuffer>)
[src]
fn text_font(&self) -> Font
[src]
fn set_text_font(&mut self, font: Font)
[src]
fn text_color(&self) -> Color
[src]
fn set_text_color(&mut self, color: Color)
[src]
fn text_size(&self) -> u32
[src]
fn set_text_size(&mut self, sz: u32)
[src]
fn scroll(&mut self, topLineNum: u32, horizOffset: u32)
[src]
fn insert(&self, text: &str)
[src]
fn set_insert_position(&mut self, newPos: u32)
[src]
fn insert_position(&self) -> u32
[src]
fn position_to_xy(&self, pos: u32) -> (u32, u32)
[src]
fn count_lines(&self, start: u32, end: u32, is_line_start: bool) -> u32
[src]
fn move_right(&mut self) -> Result<(), FltkError>
[src]
fn move_left(&mut self) -> Result<(), FltkError>
[src]
fn move_up(&mut self) -> Result<(), FltkError>
[src]
fn move_down(&mut self) -> Result<(), FltkError>
[src]
fn show_cursor(&mut self, val: bool)
[src]
fn set_highlight_data(
&mut self,
style_buffer: TextBuffer,
entries: Vec<StyleTableEntry>
) -> StyleTables
[src]
&mut self,
style_buffer: TextBuffer,
entries: Vec<StyleTableEntry>
) -> StyleTables
fn set_cursor_style(&mut self, style: TextCursor)
[src]
fn set_cursor_color(&mut self, color: Color)
[src]
fn set_scrollbar_width(&mut self, width: i32)
[src]
fn set_scrollbar_size(&mut self, size: u32)
[src]
fn set_scrollbar_align(&mut self, align: Align)
[src]
fn cursor_style(&self) -> TextCursor
[src]
fn cursor_color(&self) -> Color
[src]
fn scrollbar_width(&self) -> u32
[src]
fn scrollbar_size(&self) -> u32
[src]
fn scrollbar_align(&self) -> Align
[src]
fn line_start(&self, pos: u32) -> u32
[src]
fn line_end(&self, start_pos: u32, is_line_start: bool) -> u32
[src]
fn skip_lines(&mut self, start_pos: u32, lines: u32, is_line_start: bool) -> u32
[src]
fn rewind_lines(&mut self, start_pos: u32, lines: u32) -> u32
[src]
fn next_word(&mut self)
[src]
fn previous_word(&mut self)
[src]
fn word_start(&self, pos: u32) -> u32
[src]
fn word_end(&self, pos: u32) -> u32
[src]
fn x_to_col(&self, x: f64) -> f64
[src]
fn col_to_x(&self, col: f64) -> f64
[src]
fn set_linenumber_width(&mut self, w: i32)
[src]
fn linenumber_width(&self) -> i32
[src]
fn set_linenumber_font(&mut self, font: Font)
[src]
fn linenumber_font(&self) -> Font
[src]
fn set_linenumber_size(&mut self, size: u32)
[src]
fn linenumber_size(&self) -> u32
[src]
fn set_linenumber_fgcolor(&mut self, color: Color)
[src]
fn linenumber_fgcolor(&self) -> Color
[src]
fn set_linenumber_bgcolor(&mut self, color: Color)
[src]
fn linenumber_bgcolor(&self) -> Color
[src]
fn set_linenumber_align(&mut self, align: Align)
[src]
fn linenumber_align(&self) -> Align
[src]
fn in_selection(&self, x: i32, y: i32) -> bool
[src]
impl Send for TextEditor
[src]
impl Sync for TextEditor
[src]
impl WidgetExt for TextEditor
[src]
fn new(x: i32, y: i32, width: i32, height: i32, title: &str) -> TextEditor
[src]
fn default() -> Self
[src]
fn with_pos(self, x: i32, y: i32) -> Self
[src]
fn with_size(self, width: i32, height: i32) -> Self
[src]
fn set_pos(&mut self, x: i32, y: i32)
[src]
fn set_size(&mut self, width: i32, height: i32)
[src]
fn with_label(self, title: &str) -> Self
[src]
fn with_align(self, align: Align) -> Self
[src]
fn set_label(&mut self, title: &str)
[src]
fn redraw(&mut self)
[src]
fn show(&mut self)
[src]
fn hide(&mut self)
[src]
fn x(&self) -> i32
[src]
fn y(&self) -> i32
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
fn label(&self) -> String
[src]
unsafe fn as_widget_ptr(&self) -> *mut Fl_Widget
[src]
unsafe fn from_widget_ptr(ptr: *mut Fl_Widget) -> Self
[src]
fn activate(&mut self)
[src]
fn deactivate(&mut self)
[src]
fn redraw_label(&mut self)
[src]
fn resize(&mut self, x: i32, y: i32, width: i32, height: i32)
[src]
fn tooltip(&self) -> Option<String>
[src]
fn set_tooltip(&mut self, txt: &str)
[src]
fn get_type<T: WidgetType>(&self) -> T
[src]
fn set_type<T: WidgetType>(&mut self, typ: T)
[src]
fn color(&self) -> Color
[src]
fn set_color(&mut self, color: Color)
[src]
fn label_color(&self) -> Color
[src]
fn set_label_color(&mut self, color: Color)
[src]
fn label_font(&self) -> Font
[src]
fn set_label_font(&mut self, font: Font)
[src]
fn label_size(&self) -> i32
[src]
fn set_label_size(&mut self, sz: i32)
[src]
fn label_type(&self) -> LabelType
[src]
fn set_label_type(&mut self, typ: LabelType)
[src]
fn frame(&self) -> FrameType
[src]
fn set_frame(&mut self, typ: FrameType)
[src]
fn changed(&self) -> bool
[src]
fn set_changed(&mut self)
[src]
fn clear_changed(&mut self)
[src]
fn align(&self) -> Align
[src]
fn set_align(&mut self, align: Align)
[src]
fn set_image<I: ImageExt>(&mut self, image: Option<I>)
[src]
fn image(&self) -> Option<Image>
[src]
fn set_deimage<I: ImageExt>(&mut self, image: Option<I>)
[src]
fn deimage(&self) -> Option<Image>
[src]
fn set_callback(&mut self, cb: Box<dyn FnMut()>)
[src]
unsafe fn unset_callback(&mut self)
[src]
fn handle(&mut self, cb: Box<dyn FnMut(Event) -> bool>)
[src]
fn draw(&mut self, cb: Box<dyn FnMut()>)
[src]
fn set_trigger(&mut self, trigger: CallbackTrigger)
[src]
fn below_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]
fn above_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]
fn right_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]
fn left_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]
fn center_of<W: WidgetExt>(self, w: &W) -> Self
[src]
fn size_of<W: WidgetExt>(self, w: &W) -> Self
[src]
fn parent(&self) -> Option<Widget>
[src]
fn selection_color(&mut self) -> Color
[src]
fn set_selection_color(&mut self, color: Color)
[src]
fn do_callback(&mut self)
[src]
fn inside(&self, wid: Widget) -> bool
[src]
fn window(&self) -> Option<Window>
[src]
fn top_window(&self) -> Option<Window>
[src]
fn takes_events(&self) -> bool
[src]
fn emit<T: 'static + Copy + Send + Sync>(&mut self, sender: Sender<T>, msg: T)
[src]
unsafe fn user_data(&self) -> Option<Box<dyn FnMut()>>
[src]
unsafe fn set_user_data(&mut self, data: *mut c_void)
[src]
unsafe fn raw_user_data(&self) -> *mut c_void
[src]
fn delete(&mut self)
[src]
unsafe fn unsafe_delete(&mut self)
[src]
fn take_focus(&mut self) -> Result<(), FltkError>
[src]
fn set_visible_focus(&mut self)
[src]
fn clear_visible_focus(&mut self)
[src]
fn visible_focus(&mut self, v: bool)
[src]
fn has_visible_focus(&mut self) -> bool
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn cleanup(&mut self)
[src]
unsafe fn draw_data(&mut self) -> Option<Box<dyn FnMut()>>
[src]
unsafe fn set_draw_data(&mut self, data: *mut c_void)
[src]
unsafe fn unset_draw_callback(&mut self)
[src]
fn damage(&self) -> bool
[src]
fn set_damage(&mut self, flag: bool)
[src]
fn clear_damage(&mut self)
[src]
fn as_window(&mut self) -> Option<Window>
[src]
fn as_group(&mut self) -> Option<Group>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,