Map
Widget that displays a map for a specific class@View.
GtkSourceMap
is a widget that maps the content of a class@View into a smaller view so the user can have a quick overview of the whole document.
This works by connecting a class@View to to the GtkSourceMap
using the property@Map:view property or method@Map.set_view.
GtkSourceMap
is a class@View object. This means that you can add a class@GutterRenderer to a gutter in the same way you would for a class@View. One example might be a class@GutterRenderer that shows which lines have changed in the document.
Additionally, it is desirable to match the font of the GtkSourceMap
and the class@View used for editing. Therefore, property@Map:font-desc should be used to set the target font. You will need to adjust this to the desired font size for the map. A 1pt font generally seems to be an appropriate font size. "Monospace 1" is the default. See method@Pango.FontDescription.set_size for how to alter the size of an existing struct@Pango.FontDescription.
When FontConfig is available, GtkSourceMap
will try to use a bundled "block" font to make the map more legible.
Skipped during bindings generation
method
font-desc
: Property has no getter nor settermethod
view
: Property TypeInfo of getter and setter do not match
Constructors
Properties
Draw a specific background pattern on the view.
The completion object associated with the view
The property denotes if snippets should be expanded when the user presses Tab after having typed a word matching the snippets found in class@SnippetManager.
Width of an indentation step expressed in number of spaces.
Position of the right margin.
Whether to display line mark pixbufs
Whether to display line numbers
Whether to display the right margin.
Whether smart Backspace should be used.
Set the behavior of the HOME and END keys.
The class@SpaceDrawer object associated with the view.4
Functions
Keybinding signal to change case of the text at the current cursor position.
Keybinding signal to edit a number at the current cursor position.
Keybinding signal to join the lines currently selected.
Emitted when a line mark has been activated (for instance when there was a button press in the line marks gutter).
The signal is a keybinding which gets emitted when the user initiates moving a line.
Keybinding signal to move the cursor to the matching bracket.
The signal is a keybinding which gets emitted when the user initiates moving a word.
The signal is a key binding signal which gets emitted when the user requests a completion, by pressing
Emitted when a the cursor was moved according to the smart home end setting.
Returns whether auto-indentation of text is enabled.
Returns the #GtkSourceBackgroundPatternType specifying if and how the background pattern should be displayed for this @view.
Gets the class@Completion associated with @view.
Gets the property@View:enable-snippets property.
Returns whether the current line is highlighted.
Gets the property@View:indenter property.
Returns whether when the tab key is pressed the current selection should get indented instead of replaced with the \t
character.
Returns the number of spaces to use for each step of indent.
Returns whether when inserting a tabulator character it should be replaced by a group of space characters.
Gets the position of the right margin in the given @view.
Returns whether line marks are displayed beside the text.
Returns whether line numbers are displayed beside the text.
Returns whether a right margin is displayed.
Returns true if pressing the Backspace key will try to delete spaces up to the previous tab stop.
Returns a enum@SmartHomeEndType end value specifying how the cursor will move when HOME and END keys are pressed.
Gets the class@SpaceDrawer associated with @view.
Returns the width of tabulation in characters.
Determines the visual column at @iter taking into consideration the property@View:tab-width of @view.
Inserts one indentation level at the beginning of the specified lines. The empty lines are not indented.
Inserts a new snippet at @location
If true auto-indentation of text is enabled.
Set if and how the background pattern should be displayed.
Sets the property@View:enable-snippets property.
If @highlight is true the current line will be highlighted.
Sets the indenter for @view to @indenter.
If true, when the tab key is pressed when several lines are selected, the selected lines are indented of one level instead of being replaced with a \t
character. Shift+Tab unindents the selection.
Sets the number of spaces to use for each step of indent when the tab key is pressed.
If true a tab key pressed is replaced by a group of space characters.
Sets attributes and priority for the @category.
Sets the position of the right margin in the given @view.
If true line marks will be displayed beside the text.
If true line numbers will be displayed beside the text.
If true a right margin is displayed.
When set to true, pressing the Backspace key will try to delete spaces up to the previous tab stop.
Set the desired movement of the cursor when HOME and END keys are pressed.
Sets the width of tabulation in characters.
Removes one indentation level at the beginning of the specified lines.