Creates a new gtksource.map.Map.
Gets the propertyMap:view property, which is the view this widget is mapping.
Sets the view that map will be doing the mapping to.
Creates a new #GtkSourceView widget displaying the buffer buffer.
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 classCompletion associated with view.
Gets the propertyView:enable-snippets property.
Returns the classGutter object associated with window_type for view.
Returns whether the current line is highlighted.
Gets the classHover associated with view.
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.
Gets the propertyView:indenter property.
Returns whether when inserting a tabulator character it should be replaced by a group of space characters.
Gets attributes and priority for the category.
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 enumSmartHomeEndType end value specifying how the cursor will move when HOME and END keys are pressed.
Gets the classSpaceDrawer associated with view.
Returns the width of tabulation in characters.
Determines the visual column at iter taking into consideration the propertyView: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 propertyView:enable-snippets property.
If highlight is true the current line will be highlighted.
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.
Sets the indenter for view to indenter.
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.
Connect to ChangeCase signal.
Connect to ChangeNumber signal.
Connect to JoinLines signal.
Connect to LineMarkActivated signal.
Connect to MoveLines signal.
Connect to MoveToMatchingBracket signal.
Connect to MoveWords signal.
Connect to ShowCompletion signal.
Connect to SmartHomeEnd signal.
Widget that displays a map for a specific class@View.
gtksource.map.Map 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 gtksource.map.Map using the property@Map:view property or gtksource.map.Map.setView.
gtksource.map.Map 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 gtksource.map.Map 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 pango.font_description.FontDescription.setSize for how to alter the size of an existing pango.font_description.FontDescription.
When FontConfig is available, gtksource.map.Map will try to use a bundled "block" font to make the map more legible.