Encoding

Character encoding.

The #GtkSourceEncoding boxed type represents a character encoding. It is used for example by #GtkSourceFile. Note that the text in GTK widgets is always encoded in UTF-8.

Members

Functions

copy
gtksource.encoding.Encoding copy()

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".

toString_
string toString_()

Static functions

getAll
gtksource.encoding.Encoding[] getAll()

Gets all encodings.

getCurrent
gtksource.encoding.Encoding getCurrent()

Gets the #GtkSourceEncoding for the current locale.

getDefaultCandidates
gtksource.encoding.Encoding[] getDefaultCandidates()

Gets the list of default candidate encodings to try when loading a file.

getFromCharset
gtksource.encoding.Encoding getFromCharset(string charset)

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

getUtf8
gtksource.encoding.Encoding getUtf8()

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.