Struct rstk::text::TkText [−][src]
pub struct TkText { pub id: String, }
Expand description
Refers to a text widget
Fields
id: String
Implementations
Specifies the background colour.
Colours are specified as a string, by either:
name
- using one of the values in the tk colours listrgb
- as a 6-digit hexadecimal value in form “#RRGGBB”
Size of border around widget.
Delete a range of text.
Specifies the foreground (text) colour.
Colours are specified as a string, by either:
name
- using one of the values in the tk colours listrgb
- as a 6-digit hexadecimal value in form “#RRGGBB”
Get a range of text.
Get a range of text from a position to end.
Insert at given (line, character) position of text.
Inserts at end of text.
Inserts at end of text, with given tags.
Inserts an image at given (line, character) position of text.
Inserts a Tk widget at given (line, character) position of text.
Insert at given (line, character) position of text, with given tags.
Sets named mark’s gravity to left.
Sets named mark’s gravity to right.
Returns a (line, character) tuple for the given mark’s position.
Returns a list of all the mark names defined in this text widget.
Returns name of next mark from given position.
Returns name of previous mark to given position.
Sets named mark to given position.
Removes named mark.
Replaces a range of text with new text.
Searches the text widget from given position for the text, returning an Option type containing either the position of the found text or none.
Arranges text widget display to ensure the given line, character is visible.
Associates given tag with text in specified range.
Binds event to given tag.
Deletes a tag.
Formatting is applied to tags using configuration options.
For the available options, see the Tk manual
Returns a list of all the tag names defined in this text widget.
Returns a list of all the tag names defined in this text widget at the given location.
De-associates given tag with text in specified range.
Trait Implementations
Creates a GridLayout instance for placing this widget within its parent.
Removes this widget from layout.
Creates a PackLayout instance for placing this widget within its parent
Sets properties for widget layout
Removes this widget from layout
Binds a command to this widget to call on given event pattern
Retrieve the value of a configuration option as a string. Read more
Used to change properties of a widget. This function can be used to directly configure the widget using an option-value string pair: Read more
Returns the widget x position in pixels, within its parent.
Returns the widget y position in pixels, within its parent.
Returns the widget height in pixels.
Returns the widget width in pixels.
Returns the position of the mouse on screen of widget as (x,y).
Height of screen of widget in pixels.
Height of screen of widget in millimetres.
Width of screen of widget in pixels.
Width of screen of widget in millimetres.
Sets property for a given column of the grid layout contained within this widget. Read more
Auto Trait Implementations
impl RefUnwindSafe for TkText
impl UnwindSafe for TkText
Blanket Implementations
Mutably borrows from an owned value. Read more