Method

GdkX11X11Displayutf8_to_compound_text

since: 2.24

Declaration [src]

gboolean
gdk_x11_display_utf8_to_compound_text (
  GdkDisplay* display,
  const gchar* str,
  GdkAtom* encoding,
  gint* format,
  guchar** ctext,
  gint* length
)

Description [src]

Converts from UTF-8 to compound text.

Available since: 2.24

Parameters

str

Type: const gchar*

A UTF-8 string.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
encoding

Type: GdkAtom

Location to store resulting encoding.

The argument will be set by the function.
The returned data is owned by the instance.
format

Type: gint*

Location to store format of the result.

The argument will be set by the function.
ctext

Type: An array of guchar*

Location to store the data of the result.

The argument will be set by the function.
The length of the array is specified in the length argument.
The caller of the method takes ownership of the returned data, and is responsible for freeing it.
length

Type: gint*

Location to store the length of the data stored in ctext.

The argument will be set by the function.

Return value

Type: gboolean

TRUE if the conversion succeeded, otherwise FALSE.