: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` Renders text in the gutter. A ``GtkSourceGutterRendererText`` can be used to render text in a cell of :obj:`~gi.repository.GtkSource.Gutter`\. 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) -> ~typing.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) -> ~typing.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 The type of the None singleton. .. attribute:: props.text :type: str The type of the None singleton. Fields ------ .. rst-class:: interim-class .. class:: GutterRendererText :no-index: .. attribute:: parent_instance