SourceEncoding

Undocumented in source.

Constructors

this
this(GtkSourceEncoding* gtkSourceEncoding)

Sets our main struct and passes it to the parent class.

Members

Functions

copy
SourceEncoding copy()

Used by language bindings.

free
void free()

Used by language bindings.

getCharset
string getCharset()

Gets the character set of the #GtkSourceEncoding, such as "UTF-8" or "ISO-8859-1".

getName
string getName()

Gets the name of the #GtkSourceEncoding such as "Unicode" or "Western".

getSourceEncodingStruct
GtkSourceEncoding* getSourceEncodingStruct()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

toString
string toString()

Return: a string representation. Free with g_free() when no longer needed.

Static functions

getAll
ListSG getAll()

Gets all encodings.

getCurrent
SourceEncoding getCurrent()

Gets the #GtkSourceEncoding for the current locale. See also g_get_charset().

getFromCharset
SourceEncoding getFromCharset(string charset)

Gets a #GtkSourceEncoding from a character set such as "UTF-8" or "ISO-8859-1".

getType
GType getType()
getUtf8
SourceEncoding getUtf8()

Return: the UTF-8 encoding.

Variables

gtkSourceEncoding
GtkSourceEncoding* gtkSourceEncoding;

the main Gtk struct

Meta