Method

GtkSourceGutterRendererTextmeasure_markup

Declaration

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

Description

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 string 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.
 The instance takes ownership of the data, and is responsible for freeing it.
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.
 The instance takes ownership of the data, and is responsible for freeing it.