PgLanguage

The PangoLanguage structure is used to represent a language.

PangoLanguage pointers can be efficiently copied and compared with each other.

Constructors

this
this(PangoLanguage* pangoLanguage, bool ownedRef)

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

Members

Functions

getPgLanguageStruct
PangoLanguage* getPgLanguageStruct(bool transferOwnership)

Get the main Gtk struct

getSampleString
string getSampleString()

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

getScripts
PangoScript[] getScripts()

Determines the scripts used to to write @language.

getStruct
void* getStruct()

the main Gtk struct as a void*

includesScript
bool includesScript(PangoScript script)

Determines if @script is one of the scripts used to write @language. The returned value is conservative; if nothing is known about the language tag @language, %TRUE will be returned, since, as far as Pango knows, @script might be 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
PgLanguage fromString(string language)

Convert a language tag to a PangoLanguage.

getDefault
PgLanguage getDefault()

Returns the PangoLanguage for the current locale of the process.

getPreferred
PgLanguage getPreferred()

Returns the list of languages that the user prefers.

getType
GType getType()

Variables

ownedRef
bool ownedRef;
Undocumented in source.
pangoLanguage
PangoLanguage* pangoLanguage;

the main Gtk struct

Meta