SourceEncoding

Constructors

this
this(GtkSourceEncoding* gtkSourceEncoding, bool ownedRef)

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

Destructor

~this
~this()
Undocumented in 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 #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(bool transferOwnership)

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

Variables

gtkSourceEncoding
GtkSourceEncoding* gtkSourceEncoding;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta