:right-sidebar: True Layer =================================================================== .. currentmodule:: gi.repository.Shumate .. class:: Layer(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.Widget`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` Subclasses: :class:`~gi.repository.Shumate.MapLayer`, :class:`~gi.repository.Shumate.MarkerLayer`, :class:`~gi.repository.Shumate.PathLayer` Implemented Interfaces: :class:`~gi.repository.Gtk.Accessible`, :class:`~gi.repository.Gtk.Buildable`, :class:`~gi.repository.Gtk.ConstraintTarget` :Constructors: :: Layer(**properties) Methods ------- .. rst-class:: interim-class .. class:: Layer :no-index: .. method:: get_viewport() -> ~gi.repository.Shumate.Viewport Gets the :obj:`~gi.repository.Shumate.Viewport` used by this layer. Properties ---------- .. rst-class:: interim-class .. class:: Layer :no-index: .. attribute:: props.viewport :type: ~gi.repository.Shumate.Viewport Virtual Methods --------------- .. rst-class:: interim-class .. class:: Layer :no-index: .. method:: do_get_debug_text() -> str | None Returns a string to show in the debug overlay, which can be enabled in the GTK inspector. Fields ------ .. rst-class:: interim-class .. class:: Layer :no-index: .. attribute:: parent_instance