Xkl.ConfigRec¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
layouts |
[ |
r |
|
model |
r |
||
options |
[ |
r |
|
parent |
r |
||
variants |
[ |
r |
Class Details¶
- class Xkl.ConfigRec(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
new instance
- Return type:
Create new
Xkl.ConfigRec
- classmethod write_to_file(engine, file_name, data, binary)¶
- Parameters:
engine (
Xkl.Engine
) – the enginefile_name (
str
) – name of the file to createdata (
Xkl.ConfigRec
) – valid XKB configuration description. Can beNone
binary (
bool
) – flag indicating whether the output file should be binary
- Returns:
True
on success- Return type:
Writes some XKB configuration into XKM/XKB/… file
- activate(engine)¶
- Parameters:
engine (
Xkl.Engine
) – the engine- Returns:
True
on success- Return type:
Activates some XKB configuration description. Can be
None
- equals(data2)¶
- Parameters:
data2 (
Xkl.ConfigRec
) – another record- Returns:
True
if records are same- Return type:
Compares two records
- get_from_backup(engine)¶
- Parameters:
engine (
Xkl.Engine
) – the engine- Returns:
True
on success- Return type:
Loads the current XKB configuration (from backup)
- get_from_root_window_property(rules_atom_name, rules_file_out, engine)¶
- Parameters:
rules_atom_name (
int
) – atom name of the root window property to readrules_file_out (
str
) – pointer to hold the file nameengine (
Xkl.Engine
) – the engine
- Returns:
True
on success- Return type:
Gets the XKB configuration from any root window property
- get_from_server(engine)¶
- Parameters:
engine (
Xkl.Engine
) – the engine- Returns:
True
on success- Return type:
Loads the current XKB configuration (from X server)
- reset()¶
Resets the record (equal to Destroy and Init)
- set_layouts(new_layouts)¶
- Parameters:
new_layouts ([
str
]) – zero terminated list of new layout names.
Sets a new layout list.
Frees the previous layout list. This is primarily useful for bindings, in C you can manipulate the layouts record member directly.
- set_model(new_model)¶
- Parameters:
new_model (
str
) – new keyboard name.
Sets a new model.
Frees the previous model. This is primarily useful for bindings, in C you can manipulate the model record member directly.
- set_options(new_options)¶
- Parameters:
new_options ([
str
]) – zero terminated list of new option names.
Sets a new option list.
Frees the previous option list. This is primarily useful for bindings, in C you can manipulate the options record member directly.
- set_to_root_window_property(rules_atom_name, rules_file, engine)¶
- Parameters:
rules_atom_name (
int
) – atom name of the root window property to writerules_file (
str
) – rules file nameengine (
Xkl.Engine
) – the engine
- Returns:
True
on success- Return type:
Saves the XKB configuration into any root window property