FoundryGtk.SourceView¶
- Subclasses:
None
Methods¶
- Inherited:
GtkSource.View (43), Gtk.TextView (74), Gtk.Widget (183), GObject.Object (37), Gtk.Accessible (18), Gtk.Buildable (1), Gtk.AccessibleText (3), Gtk.Scrollable (9)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
GtkSource.View (18), Gtk.TextView (21), Gtk.Widget (35), Gtk.Accessible (1), Gtk.Scrollable (4)
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r |
Signals¶
Fields¶
Class Details¶
- class FoundryGtk.SourceView(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(document)¶
- Parameters:
document (
Foundry.TextDocument) –- Return type:
- Parameters:
menu (
Gio.MenuModel) –
- dup_context()¶
- Returns:
the [class`Foundry`.Context] of the document
- Return type:
- dup_document()¶
- Return type:
- dup_font()¶
- Return type:
- get_visual_position_range(line, line_column, range)¶
- jump_to_iter(iter, within_margin, use_align, xalign, yalign)¶
- Parameters:
iter (
Gtk.TextIter) –within_margin (
float) –use_align (
bool) –xalign (
float) –yalign (
float) –
The goal of this function is to be like
Gtk.TextView.scroll_to_iter() but without any of the scrolling animation. We use it to move to a position when animations would cause additional distractions.New in version 1.1.
- Parameters:
menu (
Gio.MenuModel) –
- rename(iter, new_name)¶
- Parameters:
iter (
Gtk.TextIter) – the location of the semantic word to renamenew_name (
str) – the name for the replacement
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.TextEdit].
- Return type:
Uses the active [class`Foundry`.RenameProvider] to semantically rename the word found at iter with new_name.
- set_font(font)¶
- Parameters:
font (
Pango.FontDescription) –
Property Details¶
- FoundryGtk.SourceView.props.document¶
- Name:
document- Type:
- Default Value:
- Flags:
- FoundryGtk.SourceView.props.enable_completion¶
- Name:
enable-completion- Type:
- Default Value:
- Flags:
- FoundryGtk.SourceView.props.enable_vim¶
- Name:
enable-vim- Type:
- Default Value:
- Flags:
- FoundryGtk.SourceView.props.font¶
- Name:
font- Type:
- Default Value:
- Flags:
- FoundryGtk.SourceView.props.line_height¶
- Name:
line-height- Type:
- Default Value:
1.0- Flags:
Specify a non-default line height for text within the editor. Some applications use this for improved readability.
- FoundryGtk.SourceView.props.show_diagnostics¶
- Name:
show-diagnostics- Type:
- Default Value:
- Flags:
Shows the line changes on the left-hand side of the editor (when in LTR direction) for each line in the editor. If the line is changed or added, it will be drawn as a different color.
- FoundryGtk.SourceView.props.show_line_changes¶
- Name:
show-line-changes- Type:
- Default Value:
- Flags:
Shows the line changes on the left-hand side of the editor (when in LTR direction) for each line in the editor. If the line is changed or added, it will be drawn as a different color.
- FoundryGtk.SourceView.props.show_line_changes_overview¶
- Name:
show-line-changes-overview- Type:
- Default Value:
- Flags:
Shows the line changes on the right-hand side of the editor (when in LTR direction) but as an overview of the entire document. This can give some insight as to where in the document other changes are.
- FoundryGtk.SourceView.props.vim_im_context¶
- Name:
vim-im-context- Type:
- Default Value:
- Flags:
Gets the IM context used for vim emulation.