pango-markup

pango-markup — Pango markup serializer for GtkTextBuffer

Functions

Description

This module provides a serializer for GtkTextBuffer to generate pango markup language.

Functions

serialize_pango_markup ()

guint8 *
serialize_pango_markup (GtkTextBuffer *register_buffer,
                        GtkTextBuffer *content_buffer,
                        const GtkTextIter *start,
                        const GtkTextIter *end,
                        gsize *length,
                        gpointer user_data);

This function serializes the portion of text between start and end in pango markup format.

It can be registered as GtkTextBuffer serializer using gtk_text_buffer_register_serialize_format().

Parameters

register_buffer

the GtkTextBuffer for which the format is registered.

[nullable]

content_buffer

the GtkTextBuffer to serialize

 

start

start of block of text to serialize

 

end

end of block of test to serialize

 

length

Return location for the length of the serialized data

 

user_data

user data that was specified when registering the format

 

Returns

(transfer full): a newly-allocated array of guint8 which contains the serialized data, or NULL if an error occurred. Free it after use.

[nullable]

Types and Values