Mirage.Language

g GObject.GInterface GObject.GInterface Mirage.Contextual Mirage.Contextual GObject.GInterface->Mirage.Contextual GObject.Object GObject.Object Mirage.Object Mirage.Object GObject.Object->Mirage.Object Mirage.Contextual->Mirage.Object Mirage.Language Mirage.Language Mirage.Object->Mirage.Language

Subclasses:

None

Methods

Inherited:

Mirage.Object (2), GObject.Object (37), Mirage.Contextual (8)

Structs:

GObject.ObjectClass (5)

get_code ()

get_pack_data (pack_type)

set_code (code)

set_pack_data (pack_type, pack_data)

Virtual Methods

Inherited:

GObject.Object (7), Mirage.Contextual (2)

Properties

None

Signals

Inherited:

Mirage.Object (1), GObject.Object (1)

Fields

Inherited:

Mirage.Object (1), GObject.Object (1)

Name

Type

Access

Description

parent_instance

Mirage.Object

r

Class Details

class Mirage.Language(**kwargs)
Bases:

Mirage.Object

Abstract:

No

Structure:

Mirage.LanguageClass

All the fields in the Mirage.Language structure are private to the Mirage.Language implementation and should never be accessed directly.

get_code()
Returns:

language code

Return type:

int

Retrieves language’s language code.

get_pack_data(pack_type)
Parameters:

pack_type (Mirage.LanguagePackType) – pack type

Raises:

GLib.Error

Returns:

True on success, False on failure

pack_data:

location to store buffer containing pack data, or None

Return type:

(bool, pack_data: bytes)

Retrieves pack data of type pack_type. A pointer to buffer containing pack data is stored in pack data; the buffer belongs to the object and therefore should not be modified.

set_code(code)
Parameters:

code (int) – language code

Sets language’s language code.

set_pack_data(pack_type, pack_data)
Parameters:
Raises:

GLib.Error

Returns:

True on success, False on failure

Return type:

bool

Sets pack data of type pack_type to data in pack_data. length is length of data in pack_data. pack_type must be one of Mirage.LanguagePackType.