X11.displayStringToCompoundText

Convert a string from the encoding of the current locale into a form suitable for storing in a window property. Since 2.24

class X11
static
int
displayStringToCompoundText
(,
string str
,,
out int format
,
out char[] ctext
)

Parameters

display Display

the GdkDisplay where the encoding is defined. [type GdkX11Display]

str string

a nul-terminated string

encoding GdkAtom

location to store the encoding atom (to be used as the type for the property). out[transfer none]

format int

location to store the format of the property. out

ctext char[]

location to store newly allocated data for the property. out[array length=length]

Return Value

Type: int

0 upon success, non-zero upon failure

Meta