:right-sidebar: True Map =================================================================== .. currentmodule:: gi.repository.GtkSource .. class:: Map(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GtkSource.View`, :class:`~gi.repository.Gtk.TextView`, :class:`~gi.repository.Gtk.Widget`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gtk.Accessible`, :class:`~gi.repository.Gtk.AccessibleText`, :class:`~gi.repository.Gtk.Buildable`, :class:`~gi.repository.Gtk.ConstraintTarget`, :class:`~gi.repository.Gtk.Scrollable` :Constructors: :: Map(**properties) new() -> Gtk.Widget Constructors ------------ .. rst-class:: interim-class .. class:: Map :no-index: .. classmethod:: new() -> ~gi.repository.Gtk.Widget Creates a new ``GtkSourceMap``. Methods ------- .. rst-class:: interim-class .. class:: Map :no-index: .. method:: get_view() -> ~gi.repository.GtkSource.View | None Gets the :obj:`~gi.repository.GtkSource.Map.props.view` property, which is the view this widget is mapping. .. method:: set_view(view: ~gi.repository.GtkSource.View) -> None Sets the view that ``map`` will be doing the mapping to. :param view: a :obj:`~gi.repository.GtkSource.View` Properties ---------- .. rst-class:: interim-class .. class:: Map :no-index: .. attribute:: props.font_desc :type: ~gi.repository.Pango.FontDescription .. attribute:: props.view :type: ~gi.repository.GtkSource.View Fields ------ .. rst-class:: interim-class .. class:: Map :no-index: .. attribute:: parent_instance