SourceEncoding

Constructors

this
this(GtkSourceEncoding* gtkSourceEncoding, bool ownedRef = false)

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

Destructor

A destructor is present on this object, but not explicitly documented in the source.

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 gsv.SourceEncoding, such as "UTF-8" or "ISO-8859-1".

getName
string getName()

Gets the name of the gsv.SourceEncoding such as "Unicode" or "Western".

getSourceEncodingStruct
GtkSourceEncoding* getSourceEncodingStruct(bool transferOwnership = false)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

toString
string toString()

Static functions

getAll
ListSG getAll()

Gets all encodings.

getCurrent
SourceEncoding getCurrent()

Gets the gsv.SourceEncoding 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 Source.fileLoaderSetCandidateEncodings.

getFromCharset
SourceEncoding getFromCharset(string charset)

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

getType
GType getType()
getUtf8
SourceEncoding getUtf8()

Variables

gtkSourceEncoding
GtkSourceEncoding* gtkSourceEncoding;

the main Gtk struct

Meta