Method

GtkSourceGutterRendererTextmeasure_markup

Declaration [src]

void
gtk_source_gutter_renderer_text_measure_markup (
  GtkSourceGutterRendererText* renderer,
  const gchar* markup,
  gint* width,
  gint* height
)

Description [src]

Measures the pango markup provided using the pango layout used by the GtkSourceGutterRendererText.

Parameters

markup const gchar*
 

The pango markup to measure.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
width gint*
 

Location to store the width of the text in pixels, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
height gint*
 

Location to store the height of the text in pixels, or NULL.

 The argument will be set by the function.
 The argument can be NULL.