Map


Object Hierarchy:

GtkSource.Map GtkSource.Map GtkSource.Map GtkSource.View GtkSource.View GtkSource.View->GtkSource.Map Gtk.TextView Gtk.TextView Gtk.TextView->GtkSource.View Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.TextView GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->GtkSource.Map Gtk.Accessible->GtkSource.View Gtk.Accessible->Gtk.TextView Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->GtkSource.Map Gtk.Buildable->GtkSource.View Gtk.Buildable->Gtk.TextView Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->GtkSource.Map Gtk.ConstraintTarget->GtkSource.View Gtk.ConstraintTarget->Gtk.TextView Gtk.ConstraintTarget->Gtk.Widget Gtk.Scrollable Gtk.Scrollable Gtk.Scrollable->GtkSource.Map Gtk.Scrollable->GtkSource.View Gtk.Scrollable->Gtk.TextView

Description:

[ CCode ( type_id = "gtk_source_map_get_type ()" ) ]
public class Map : View, Accessible, Buildable, ConstraintTarget, Scrollable

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 [[email protected]_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 [[email protected]_size] for how to alter the size of an existing [[email protected]].

When FontConfig is available, `GtkSourceMap` will try to use a bundled "block" font to make the map more legible.


Namespace: GtkSource
Package: gtksourceview-5

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.TextView
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
All known members inherited from interface Gtk.Accessible
All known members inherited from interface Gtk.Buildable
All known members inherited from interface Gtk.Scrollable



2022 vala-language.org