Struct fltk::text::SimpleTerminal [−][src]
pub struct SimpleTerminal { /* fields omitted */ }
Expand description
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
Sets whether the terminal automatically stays at the bottom
Returns whether the terminal automatically stays at the bottom
Sets the max lines allowed in history
Gets the max lines allowed in history
Enables ANSI sequences within the text to control text colors
Removes count
lines from start
Trait Implementations
Get the associated TextBuffer
Sets the associated TextBuffer
Get the associated style TextBuffer
Sets the text font
Return the text color
Sets the text color
Sets the text size
Set the insert position
Return the insert position
Counts the lines from start to end
Shows/hides the cursor
fn set_highlight_data<B: Into<Option<TextBuffer>>>(
&mut self,
style_buffer: B,
entries: Vec<StyleTableEntry>
)
[src]
fn set_highlight_data<B: Into<Option<TextBuffer>>>(
&mut self,
style_buffer: B,
entries: Vec<StyleTableEntry>
)
[src]Sets the style of the text widget
Sets the cursor style
Sets the cursor color
Sets the scrollbar size in pixels
Sets the scrollbar alignment
Returns the cursor style
Returns the cursor color
Returns the scrollbar size in pixels
Returns the scrollbar alignment
Returns the beginning of the line from the current position. Returns new position as index Read more
Returns the ending of the line from the current position. Returns new position as index Read more
Skips lines from start_pos
Rewinds the lines
Goes to the previous word
Returns the position of the start of the word, relative to the current position
Returns the position of the end of the word, relative to the current position
Sets the linenumber width
Gets the linenumber width
Sets the linenumber font
Gets the linenumber font
Sets the linenumber size
Gets the linenumber size
Sets the linenumber foreground color
Gets the linenumber foreground color
Sets the linenumber background color
Gets the linenumber background color
Sets the linenumber alignment
Gets the linenumber alignment
Checks whether a pixel is within a text selection
Correct a column number based on an unconstrained position
Correct a row number from an unconstrained position
Creates a new widget, takes an x, y coordinates, as well as a width and height, plus a title Read more
transforms a widget pointer to a Widget, for internal use Read more
Get a widget from base widget Read more
Set a custom handler, where events are managed manually, akin to Fl_Widget::handle(int)
.
Handled or ignored events should return true, unhandled events should return false.
takes the widget as a closure argument Read more
Set a custom draw method.
takes the widget as a closure argument.
macOS requires that WidgetBase::draw
actually calls drawing functions Read more
INTERNAL: Retrieve the draw data Read more
Sets the widget’s label.
labels support special symbols preceded by an @
sign.
and for the associated formatting. Read more
transforms a widget to a base Fl_Widget
, for internal use Read more
Deactivates the widget
Redraws the label of the widget
Resizes and/or moves the widget, takes x, y, width and height
Sets the tooltip text
Returns the widget label’s color
Sets the widget label’s color
Returns the widget label’s font
Sets the widget label’s font
Returns the widget label’s size
Sets the widget label’s size
Returns the widget label’s type
Sets the widget label’s type
Mark the widget as changed
Clears the changed status of the widget
Sets the default callback trigger for a widget
Return the callback trigger
Gets the selection color of the widget
Sets the selection color of the widget
Runs the already registered callback
Returns the topmost window holding the widget
Checks whether a widget is capable of taking events
INTERNAL: Retakes ownership of the user callback data Read more
Set the widget to have visible focus
Clear visible focus
Set the visible focus using a flag
Return whether the widget has visible focus
Check if a widget was deleted
Signal the widget as damaged and it should be redrawn in the next event loop cycle
Return the damage mask
Signal the type of damage a widget received
Clear the damaged flag
Return the widget as a window if it’s a window
Return the widget as a group widget if it’s a group widget
Positions the widget below w, the size of w should be known
Positions the widget above w, the size of w should be known
Positions the widget to the right of w, the size of w should be known
Positions the widget to the left of w, the size of w should be known
Positions the widget to the center of w, the size of w should be known
Positions the widget to the center of its parent
Takes the size of w, the size of w should be known
Takes the size of the parent group or window
Checks whether the self widget is inside another widget
Initialize to position x, y, (should only be called on initialization)
Initialilze to dimensions width and height, (should only be called on initialization)
Initialize with label/title, (should only be called on initialization)
Sets the initial alignment of the widget, (should only be called on initialization)
Returns the widget type when applicable
Sets the widget type
Sets the image of the widget
Sets the callback when the widget is triggered (clicks for example) takes the widget as a closure argument Read more
Emits a message on callback using a sender
Upcast a WidgetExt
to a Widget Read more
Auto Trait Implementations
impl RefUnwindSafe for SimpleTerminal
impl Unpin for SimpleTerminal
impl UnwindSafe for SimpleTerminal
Blanket Implementations
Mutably borrows from an owned value. Read more