:right-sidebar: True GutterRendererText =================================================================== .. currentmodule:: gi.repository.GtkSource .. class:: GutterRendererText(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GtkSource.GutterRenderer`, :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.Buildable`, :class:`~gi.repository.Gtk.ConstraintTarget` :Constructors: :: GutterRendererText(**properties) new() -> GtkSource.GutterRenderer Constructors ------------ .. rst-class:: interim-class .. class:: GutterRendererText :no-index: .. classmethod:: new() -> ~gi.repository.GtkSource.GutterRenderer Create a new :obj:`~gi.repository.GtkSource.GutterRendererText`. Methods ------- .. rst-class:: interim-class .. class:: GutterRendererText :no-index: .. method:: measure(text: str) -> tuple[int, int] Measures the text provided using the pango layout used by the :obj:`~gi.repository.GtkSource.GutterRendererText`. :param text: the text to measure. .. method:: measure_markup(markup: str) -> tuple[int, int] Measures the pango markup provided using the pango layout used by the :obj:`~gi.repository.GtkSource.GutterRendererText`. :param markup: the pango markup to measure. .. method:: set_markup(markup: str, length: int) -> None :param markup: :param length: .. method:: set_text(text: str, length: int) -> None :param text: :param length: Properties ---------- .. rst-class:: interim-class .. class:: GutterRendererText :no-index: .. attribute:: props.markup :type: str .. attribute:: props.text :type: str Fields ------ .. rst-class:: interim-class .. class:: GutterRendererText :no-index: .. attribute:: parent_instance