SourceEncoding

Constructors

this
this(GtkSourceEncoding* gtkSourceEncoding, bool ownedRef)

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().

getDefaultCandidates
ListSG getDefaultCandidates()

Gets the list of default candidate encodings to try when loading a file. See gtk_source_file_loader_set_candidate_encodings().

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

ownedRef
bool ownedRef;
Undocumented in source.

Meta