[−][src]Trait fltk::prelude::DisplayTrait
Defines the methods implemented by TextDisplay and TextEditor
Required methods
fn get_buffer<'a>(&'a self) -> &'a TextBuffer
Get the associated TextBuffer
fn set_buffer<'a>(&'a mut self, buffer: &'a mut TextBuffer)
Sets the associated TextBuffer
fn set_text(&mut self, txt: &str)
Set the text inside the widget
fn text(&self) -> String
Returns the text inside the widget
fn text_font(&self) -> Font
Return the text font
fn set_text_font(&mut self, font: Font)
Sets the text font
fn text_color(&self) -> Color
Return the text color
fn set_text_color(&mut self, color: Color)
Sets the text color
fn text_size(&self) -> u32
Return the text size
fn set_text_size(&mut self, sz: u32)
Sets the text size
fn append(&mut self, text: &str)
Append text to Display widget
fn buffer_length(&self) -> usize
Return buffer length of Display widget
fn scroll(&mut self, top_line_num: usize, horiz_offset: usize)
Scroll down the Display widget
fn insert(&self, text: &str)
Insert into Display widget
fn set_insert_position(&mut self, new_pos: usize)
Set the insert position
fn insert_position(&self) -> usize
Return the insert position
fn count_lines(&self, start: usize, end: usize, is_line_start: bool) -> usize
Counts the lines from start to end
fn move_right(&mut self)
Moves the cursor right
fn move_left(&mut self)
Moves the cursor left
fn move_up(&mut self)
Moves the cursor up
fn move_down(&mut self)
Moves the cursor down
fn remove(&mut self, start: usize, end: usize)
Remove text from start position to end position
fn show_cursor(&mut self, val: bool)
Shows/hides the cursor
fn set_styly_table_entry(
&mut self,
style_buffer: &mut TextBuffer,
entries: &Vec<StyleTableEntry>
)
&mut self,
style_buffer: &mut TextBuffer,
entries: &Vec<StyleTableEntry>
)
Sets the style of the text widget
fn set_cursor_style(&mut self, style: CursorStyle)
Sets the cursor style
fn set_cursor_color(&mut self, color: Color)
Sets the cursor color
fn set_scrollbar_width(&mut self, width: u32)
Sets the scrollbar width
fn set_scrollbar_size(&mut self, size: usize)
Sets the scrollbar size in pixels
fn set_scrollbar_align(&mut self, align: Align)
Sets the scrollbar alignment
fn cursor_style(&self) -> CursorStyle
Returns the cursor style
fn cursor_color(&self) -> Color
Returns the cursor color
fn scrollbar_width(&self) -> u32
Returns the scrollback width
fn scrollbar_size(&self) -> usize
Returns the scrollbar size in pixels
fn scrollbar_align(&self) -> Align
Returns the scrollbar alignment
Implementors
impl DisplayTrait for SimpleTerminal
[src]
fn get_buffer<'a>(&'a self) -> &'a TextBuffer
[src]
fn set_buffer<'a>(&'a mut self, buffer: &'a mut TextBuffer)
[src]
fn set_text(&mut self, txt: &str)
[src]
fn text(&self) -> String
[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 append(&mut self, text: &str)
[src]
fn buffer_length(&self) -> usize
[src]
fn scroll(&mut self, topLineNum: usize, horizOffset: usize)
[src]
fn insert(&self, text: &str)
[src]
fn set_insert_position(&mut self, newPos: usize)
[src]
fn insert_position(&self) -> usize
[src]
fn count_lines(&self, start: usize, end: usize, is_line_start: bool) -> usize
[src]
fn move_right(&mut self)
[src]
fn move_left(&mut self)
[src]
fn move_up(&mut self)
[src]
fn move_down(&mut self)
[src]
fn remove(&mut self, start: usize, end: usize)
[src]
fn show_cursor(&mut self, val: bool)
[src]
fn set_styly_table_entry(
&mut self,
style_buffer: &mut TextBuffer,
entries: &Vec<StyleTableEntry>
)
[src]
&mut self,
style_buffer: &mut TextBuffer,
entries: &Vec<StyleTableEntry>
)
fn set_cursor_style(&mut self, style: CursorStyle)
[src]
fn set_cursor_color(&mut self, color: Color)
[src]
fn set_scrollbar_width(&mut self, width: u32)
[src]
fn set_scrollbar_size(&mut self, size: usize)
[src]
fn set_scrollbar_align(&mut self, align: Align)
[src]
fn cursor_style(&self) -> CursorStyle
[src]
fn cursor_color(&self) -> Color
[src]
fn scrollbar_width(&self) -> u32
[src]
fn scrollbar_size(&self) -> usize
[src]
fn scrollbar_align(&self) -> Align
[src]
impl DisplayTrait for TextDisplay
[src]
fn get_buffer<'a>(&'a self) -> &'a TextBuffer
[src]
fn set_buffer<'a>(&'a mut self, buffer: &'a mut TextBuffer)
[src]
fn set_text(&mut self, txt: &str)
[src]
fn text(&self) -> String
[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 append(&mut self, text: &str)
[src]
fn buffer_length(&self) -> usize
[src]
fn scroll(&mut self, topLineNum: usize, horizOffset: usize)
[src]
fn insert(&self, text: &str)
[src]
fn set_insert_position(&mut self, newPos: usize)
[src]
fn insert_position(&self) -> usize
[src]
fn count_lines(&self, start: usize, end: usize, is_line_start: bool) -> usize
[src]
fn move_right(&mut self)
[src]
fn move_left(&mut self)
[src]
fn move_up(&mut self)
[src]
fn move_down(&mut self)
[src]
fn remove(&mut self, start: usize, end: usize)
[src]
fn show_cursor(&mut self, val: bool)
[src]
fn set_styly_table_entry(
&mut self,
style_buffer: &mut TextBuffer,
entries: &Vec<StyleTableEntry>
)
[src]
&mut self,
style_buffer: &mut TextBuffer,
entries: &Vec<StyleTableEntry>
)
fn set_cursor_style(&mut self, style: CursorStyle)
[src]
fn set_cursor_color(&mut self, color: Color)
[src]
fn set_scrollbar_width(&mut self, width: u32)
[src]
fn set_scrollbar_size(&mut self, size: usize)
[src]
fn set_scrollbar_align(&mut self, align: Align)
[src]
fn cursor_style(&self) -> CursorStyle
[src]
fn cursor_color(&self) -> Color
[src]
fn scrollbar_width(&self) -> u32
[src]
fn scrollbar_size(&self) -> usize
[src]
fn scrollbar_align(&self) -> Align
[src]
impl DisplayTrait for TextEditor
[src]
fn get_buffer<'a>(&'a self) -> &'a TextBuffer
[src]
fn set_buffer<'a>(&'a mut self, buffer: &'a mut TextBuffer)
[src]
fn set_text(&mut self, txt: &str)
[src]
fn text(&self) -> String
[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 append(&mut self, text: &str)
[src]
fn buffer_length(&self) -> usize
[src]
fn scroll(&mut self, topLineNum: usize, horizOffset: usize)
[src]
fn insert(&self, text: &str)
[src]
fn set_insert_position(&mut self, newPos: usize)
[src]
fn insert_position(&self) -> usize
[src]
fn count_lines(&self, start: usize, end: usize, is_line_start: bool) -> usize
[src]
fn move_right(&mut self)
[src]
fn move_left(&mut self)
[src]
fn move_up(&mut self)
[src]
fn move_down(&mut self)
[src]
fn remove(&mut self, start: usize, end: usize)
[src]
fn show_cursor(&mut self, val: bool)
[src]
fn set_styly_table_entry(
&mut self,
style_buffer: &mut TextBuffer,
entries: &Vec<StyleTableEntry>
)
[src]
&mut self,
style_buffer: &mut TextBuffer,
entries: &Vec<StyleTableEntry>
)