Language

The pango.language.Language structure is used to represent a language.

pango.language.Language pointers can be efficiently copied and compared with each other.

Members

Functions

getSampleString
string getSampleString()

Get a string that is representative of the characters needed to render a particular language.

getScripts
pango.types.Script[] getScripts()

Determines the scripts used to to write language.

includesScript
bool includesScript(pango.types.Script script)

Determines if script is one of the scripts used to write language.

matches
bool matches(string rangeList)

Checks if a language tag matches one of the elements in a list of language ranges.

toString_
string toString_()

Gets the RFC-3066 format string representing the given language tag.

Static functions

fromString
pango.language.Language fromString(string language)

Convert a language tag to a pango.language.Language.

getDefault
pango.language.Language getDefault()

Returns the pango.language.Language for the current locale of the process.

getPreferred
pango.language.Language[] getPreferred()

Returns the list of languages that the user prefers.

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.