[−][src]Struct fltk::text::SimpleTerminal
Creates an editable text display widget to handle terminal-like behavior, such as logging events or debug information SimpleTerminal already has an internal buffer It is NOT is a full terminal emulator; it does NOT handle stdio redirection, pipes, pseudo ttys, termio character cooking, keyboard input processing, screen addressing, random cursor positioning, curses compatibility, or VT100/xterm emulation.
Implementations
impl SimpleTerminal
[src]
pub fn set_stay_at_bottom(&mut self, arg1: bool)
[src]
Sets whether the terminal automatically stays at the bottom
pub fn stay_at_bottom(&self) -> bool
[src]
Returns whether the terminal automatically stays at the bottom
pub fn set_history_lines(&mut self, arg1: u32)
[src]
Sets the max lines allowed in history
pub fn history_lines(&self) -> u32
[src]
Gets the max lines allowed in history
pub fn set_ansi(&mut self, val: bool)
[src]
Enables ANSI sequences within the text to control text colors
pub fn ansi(&self) -> bool
[src]
Returns whether ANSI sequences are enabled
pub fn append(&mut self, s: &str)
[src]
Appends text to the terminal buffer
pub fn set_text(&mut self, s: &str)
[src]
Sets the text of the terminal buffer
pub fn text(&self) -> String
[src]
Gets the text of the terminal buffer
pub fn clear(&mut self)
[src]
Clears the terminal
pub fn remove_lines(&mut self, start: u32, count: u32)
[src]
Removes count
lines from start
Trait Implementations
impl Clone for SimpleTerminal
[src]
pub fn clone(&self) -> SimpleTerminal
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SimpleTerminal
[src]
impl DisplayExt for SimpleTerminal
[src]
pub fn buffer(&self) -> Option<TextBuffer>
[src]
pub fn set_buffer(&mut self, buffer: Option<TextBuffer>)
[src]
pub fn style_buffer(&self) -> Option<TextBuffer>
[src]
pub fn text_font(&self) -> Font
[src]
pub fn set_text_font(&mut self, font: Font)
[src]
pub fn text_color(&self) -> Color
[src]
pub fn set_text_color(&mut self, color: Color)
[src]
pub fn text_size(&self) -> u32
[src]
pub fn set_text_size(&mut self, sz: u32)
[src]
pub fn scroll(&mut self, topLineNum: u32, horizOffset: u32)
[src]
pub fn insert(&self, text: &str)
[src]
pub fn set_insert_position(&mut self, newPos: u32)
[src]
pub fn insert_position(&self) -> u32
[src]
pub fn position_to_xy(&self, pos: u32) -> (u32, u32)
[src]
pub fn count_lines(&self, start: u32, end: u32, is_line_start: bool) -> u32
[src]
pub fn move_right(&mut self) -> Result<(), FltkError>
[src]
pub fn move_left(&mut self) -> Result<(), FltkError>
[src]
pub fn move_up(&mut self) -> Result<(), FltkError>
[src]
pub fn move_down(&mut self) -> Result<(), FltkError>
[src]
pub fn show_cursor(&mut self, val: bool)
[src]
pub fn set_highlight_data(
&mut self,
style_buffer: TextBuffer,
entries: Vec<StyleTableEntry>
)
[src]
&mut self,
style_buffer: TextBuffer,
entries: Vec<StyleTableEntry>
)
pub fn set_cursor_style(&mut self, style: TextCursor)
[src]
pub fn set_cursor_color(&mut self, color: Color)
[src]
pub fn set_scrollbar_width(&mut self, width: i32)
[src]
pub fn set_scrollbar_size(&mut self, size: u32)
[src]
pub fn set_scrollbar_align(&mut self, align: Align)
[src]
pub fn cursor_style(&self) -> TextCursor
[src]
pub fn cursor_color(&self) -> Color
[src]
pub fn scrollbar_width(&self) -> u32
[src]
pub fn scrollbar_size(&self) -> u32
[src]
pub fn scrollbar_align(&self) -> Align
[src]
pub fn line_start(&self, pos: u32) -> u32
[src]
pub fn line_end(&self, start_pos: u32, is_line_start: bool) -> u32
[src]
pub fn skip_lines(
&mut self,
start_pos: u32,
lines: u32,
is_line_start: bool
) -> u32
[src]
&mut self,
start_pos: u32,
lines: u32,
is_line_start: bool
) -> u32
pub fn rewind_lines(&mut self, start_pos: u32, lines: u32) -> u32
[src]
pub fn next_word(&mut self)
[src]
pub fn previous_word(&mut self)
[src]
pub fn word_start(&self, pos: u32) -> u32
[src]
pub fn word_end(&self, pos: u32) -> u32
[src]
pub fn x_to_col(&self, x: f64) -> f64
[src]
pub fn col_to_x(&self, col: f64) -> f64
[src]
pub fn set_linenumber_width(&mut self, w: i32)
[src]
pub fn linenumber_width(&self) -> i32
[src]
pub fn set_linenumber_font(&mut self, font: Font)
[src]
pub fn linenumber_font(&self) -> Font
[src]
pub fn set_linenumber_size(&mut self, size: u32)
[src]
pub fn linenumber_size(&self) -> u32
[src]
pub fn set_linenumber_fgcolor(&mut self, color: Color)
[src]
pub fn linenumber_fgcolor(&self) -> Color
[src]
pub fn set_linenumber_bgcolor(&mut self, color: Color)
[src]
pub fn linenumber_bgcolor(&self) -> Color
[src]
pub fn set_linenumber_align(&mut self, align: Align)
[src]
pub fn linenumber_align(&self) -> Align
[src]
pub fn in_selection(&self, x: i32, y: i32) -> bool
[src]
pub fn wrap_mode(&mut self, wrap: WrapMode, wrap_margin: i32)
[src]
pub fn wrapped_column(&self, row: i32, column: i32) -> i32
[src]
pub fn wrapped_row(&self, row: i32) -> i32
[src]
impl Send for SimpleTerminal
[src]
impl Sync for SimpleTerminal
[src]
impl WidgetBase for SimpleTerminal
[src]
pub fn new(
x: i32,
y: i32,
width: i32,
height: i32,
title: &str
) -> SimpleTerminal
[src]
x: i32,
y: i32,
width: i32,
height: i32,
title: &str
) -> SimpleTerminal
pub fn default() -> Self
[src]
pub unsafe fn from_widget_ptr(ptr: *mut Fl_Widget) -> Self
[src]
pub unsafe fn from_widget<W: WidgetExt>(w: W) -> Self
[src]
pub fn handle<F: FnMut(Event) -> bool + 'static>(&mut self, cb: F)
[src]
pub fn handle2<F: FnMut(&mut Self, Event) -> bool + 'static>(&mut self, cb: F)
[src]
pub fn draw<F: FnMut() + 'static>(&mut self, cb: F)
[src]
pub fn draw2<F: FnMut(&mut Self) + 'static>(&mut self, cb: F)
[src]
pub unsafe fn draw_data(&mut self) -> Option<Box<dyn FnMut()>>
[src]
pub unsafe fn handle_data(&mut self) -> Option<Box<dyn FnMut(Event) -> bool>>
[src]
impl WidgetExt for SimpleTerminal
[src]
pub fn set_pos(&mut self, x: i32, y: i32)
[src]
pub fn set_size(&mut self, width: i32, height: i32)
[src]
pub fn set_label(&mut self, title: &str)
[src]
pub fn redraw(&mut self)
[src]
pub fn show(&mut self)
[src]
pub fn hide(&mut self)
[src]
pub fn x(&self) -> i32
[src]
pub fn y(&self) -> i32
[src]
pub fn width(&self) -> i32
[src]
pub fn height(&self) -> i32
[src]
pub fn label(&self) -> String
[src]
pub fn measure_label(&self) -> (i32, i32)
[src]
pub unsafe fn as_widget_ptr(&self) -> *mut Fl_Widget
[src]
pub fn activate(&mut self)
[src]
pub fn deactivate(&mut self)
[src]
pub fn redraw_label(&mut self)
[src]
pub fn resize(&mut self, x: i32, y: i32, width: i32, height: i32)
[src]
pub fn tooltip(&self) -> Option<String>
[src]
pub fn set_tooltip(&mut self, txt: &str)
[src]
pub fn color(&self) -> Color
[src]
pub fn set_color(&mut self, color: Color)
[src]
pub fn label_color(&self) -> Color
[src]
pub fn set_label_color(&mut self, color: Color)
[src]
pub fn label_font(&self) -> Font
[src]
pub fn set_label_font(&mut self, font: Font)
[src]
pub fn label_size(&self) -> i32
[src]
pub fn set_label_size(&mut self, sz: i32)
[src]
pub fn label_type(&self) -> LabelType
[src]
pub fn set_label_type(&mut self, typ: LabelType)
[src]
pub fn frame(&self) -> FrameType
[src]
pub fn set_frame(&mut self, typ: FrameType)
[src]
pub fn changed(&self) -> bool
[src]
pub fn set_changed(&mut self)
[src]
pub fn clear_changed(&mut self)
[src]
pub fn align(&self) -> Align
[src]
pub fn set_align(&mut self, align: Align)
[src]
pub fn set_trigger(&mut self, trigger: CallbackTrigger)
[src]
pub fn trigger(&self) -> CallbackTrigger
[src]
pub fn parent(&self) -> Option<Box<dyn GroupExt>>
[src]
pub fn selection_color(&mut self) -> Color
[src]
pub fn set_selection_color(&mut self, color: Color)
[src]
pub fn do_callback(&mut self)
[src]
pub fn window(&self) -> Option<Box<dyn WindowExt>>
[src]
pub fn top_window(&self) -> Option<Box<dyn WindowExt>>
[src]
pub fn takes_events(&self) -> bool
[src]
pub unsafe fn user_data(&self) -> Option<Box<dyn FnMut()>>
[src]
pub fn take_focus(&mut self) -> Result<(), FltkError>
[src]
pub fn set_visible_focus(&mut self)
[src]
pub fn clear_visible_focus(&mut self)
[src]
pub fn visible_focus(&mut self, v: bool)
[src]
pub fn has_visible_focus(&mut self) -> bool
[src]
pub fn was_deleted(&self) -> bool
[src]
pub fn delete(wid: Self)
[src]
pub fn damage(&self) -> bool
[src]
pub fn set_damage(&mut self, flag: bool)
[src]
pub fn clear_damage(&mut self)
[src]
pub fn as_window(&self) -> Option<Box<dyn WindowExt>>
[src]
pub fn as_group(&self) -> Option<Box<dyn GroupExt>>
[src]
pub fn below_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]
pub fn above_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]
pub fn right_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]
pub fn left_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]
pub fn center_of<W: WidgetExt>(self, w: &W) -> Self
[src]
pub fn size_of<W: WidgetExt>(self, w: &W) -> Self
[src]
pub fn inside<W: WidgetExt>(&self, wid: &W) -> bool
[src]
pub fn with_pos(self, x: i32, y: i32) -> Self
[src]
pub fn with_size(self, width: i32, height: i32) -> Self
[src]
pub fn with_label(self, title: &str) -> Self
[src]
pub fn with_align(self, align: Align) -> Self
[src]
pub fn get_type<T: WidgetType>(&self) -> T
[src]
pub fn set_type<T: WidgetType>(&mut self, typ: T)
[src]
pub fn set_image<I: ImageExt>(&mut self, image: Option<I>)
[src]
pub fn image(&self) -> Option<Box<dyn ImageExt>>
[src]
pub fn set_deimage<I: ImageExt>(&mut self, image: Option<I>)
[src]
pub fn deimage(&self) -> Option<Box<dyn ImageExt>>
[src]
pub fn set_callback<F: FnMut() + 'static>(&mut self, cb: F)
[src]
pub fn set_callback2<F: FnMut(&mut Self) + 'static>(&mut self, cb: F)
[src]
pub fn emit<T: 'static + Copy + Send + Sync>(
&mut self,
sender: Sender<T>,
msg: T
)
[src]
&mut self,
sender: Sender<T>,
msg: T
)
pub unsafe fn into_widget<W: WidgetBase>(&self) -> W where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
impl RefUnwindSafe for SimpleTerminal
[src]
impl Unpin for SimpleTerminal
[src]
impl UnwindSafe for SimpleTerminal
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,