Class
GtkSourceGutterRendererText
Description
class GtkSource.GutterRendererText : GtkSource.GutterRenderer {
parent_instance: GtkSourceGutterRenderer
}
Renders text in the gutter.
A GtkSourceGutterRendererText
can be used to render text in a cell of
GtkSourceGutter
.
Ancestors
- GtkSourceGutterRenderer
- GtkWidget
- GInitiallyUnowned
- GObject
Constructors
gtk_source_gutter_renderer_text_new
Create a new GtkSourceGutterRendererText
.
Instance methods
gtk_source_gutter_renderer_text_measure
Measures the text provided using the pango layout used by the
GtkSourceGutterRendererText
.
gtk_source_gutter_renderer_text_measure_markup
Measures the pango markup provided using the pango layout used by the
GtkSourceGutterRendererText
.
gtk_source_gutter_renderer_text_set_markup
gtk_source_gutter_renderer_text_set_text
Methods inherited from GtkSourceGutterRenderer (15)
gtk_source_gutter_renderer_activate
Emits the GtkSourceGutterRenderer::activate
signal of the renderer. This is
called from GtkSourceGutter
and should never have to be called manually.
gtk_source_gutter_renderer_align_cell
Locates where to render content that is width
x height
based on
the renderers alignment and padding.
gtk_source_gutter_renderer_get_alignment_mode
Get the alignment mode.
gtk_source_gutter_renderer_get_buffer
Gets the GtkSourceBuffer
for which the gutter renderer is drawing.
gtk_source_gutter_renderer_get_view
Get the view associated to the gutter renderer.
gtk_source_gutter_renderer_get_xalign
Gets the xalign
property.
gtk_source_gutter_renderer_get_xpad
Gets the xpad
property.
gtk_source_gutter_renderer_get_yalign
Gets the yalign
property.
gtk_source_gutter_renderer_get_ypad
Gets the ypad
property.
gtk_source_gutter_renderer_query_activatable
Get whether the renderer is activatable at the location provided. This is
called from GtkSourceGutter
to determine whether a renderer is activatable
using the mouse pointer.
gtk_source_gutter_renderer_set_alignment_mode
Set the alignment mode. The alignment mode describes the manner in which the
renderer is aligned (see GtkSourceGutterRenderer:xalign
and
GtkSourceGutterRenderer:yalign
).
gtk_source_gutter_renderer_set_xalign
Adjusts the xalign
property.
gtk_source_gutter_renderer_set_xpad
Adjusts the xpad
property.
gtk_source_gutter_renderer_set_yalign
Adjusts the yalign
property.
gtk_source_gutter_renderer_set_ypad
Adjusts the ypad
property.
Properties
GtkSource.GutterRendererText:markup
GtkSource.GutterRendererText:text
Properties inherited from GtkSourceGutterRenderer (7)
GtkSource.GutterRenderer:alignment-mode
The alignment mode of the renderer.
GtkSource.GutterRenderer:lines
Contains information about the lines to be rendered.
GtkSource.GutterRenderer:view
The view on which the renderer is placed.
GtkSource.GutterRenderer:xalign
The horizontal alignment of the renderer.
GtkSource.GutterRenderer:xpad
The left and right padding of the renderer.
GtkSource.GutterRenderer:yalign
The vertical alignment of the renderer.
GtkSource.GutterRenderer:ypad
The top and bottom padding of the renderer.