XApp.KbdLayoutController¶
- Subclasses:
- None 
Methods¶
- Inherited:
- Structs:
| class | 
 | 
| class | 
 | 
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | 
Virtual Methods¶
- Inherited:
Properties¶
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| r | Whether we’re enabled (more than one keyboard layout is installed) | 
Signals¶
- Inherited:
| Name | Short Description | 
|---|---|
Fields¶
- Inherited:
| Name | Type | Access | Description | 
|---|---|---|---|
| parent_object | r | 
Class Details¶
- class XApp.KbdLayoutController(**kwargs)¶
- Bases:
- Abstract:
- No 
- Structure:
 - classmethod new()¶
- Returns:
- a new - XApp.KbdLayoutControllerinstance
- Return type:
 - Creates a new - XApp.KbdLayoutControllerinstance.
 - classmethod render_cairo_subscript(cr, x, y, width, height, subscript)¶
- Parameters:
- cr ( - cairo.Context) – a- cairo.Context
- x ( - float) – the x position of the drawing area
- y ( - float) – the y position of the drawing area
- width ( - float) – the width of the drawing area
- height ( - float) – the height of the drawing area
- subscript ( - int) – the number to render
 
 - Renders a subscript number in the given work area. This should be called from within a “draw” or “paint” widget/actor function, where a valid - cairo.Contextis provided to draw with.
 - get_all_names()¶
- Returns:
- array of names 
- Return type:
- [ - str]
 - Returns an array of all full layout names 
 - get_current_flag_id()¶
- Returns:
- the id 
- Return type:
 - Returns the duplicate id for the current layout 
 - get_current_icon_name()¶
- Returns:
- a new string with the icon name. 
- Return type:
 - Returns the icon file name (no path or extension) to use for the current layout 
 - get_current_name()¶
- 
Returns the full name of the current keyboard layout. 
 - get_current_short_group_label()¶
- 
Returns the short group label (and subscript, if any) of the current layout 
 - get_current_variant_label()¶
- 
Returns the variant label (and subscript, if any) of the current layout 
 - get_icon_name_for_group(group)¶
- 
Returns the icon file name (no path or extension) to use for the specified layout. 
 - get_short_group_label_for_group(group)¶
- 
Returns the short group label and subscript of the specified layout. 
 - get_variant_label_for_group(group)¶
- 
Returns the variant label and subscript of the specified layout. 
 - next_group()¶
- Selects the next group in the group list. 
 - previous_group()¶
- Selects the previous group in the group list. 
 
Signal Details¶
- XApp.KbdLayoutController.signals.config_changed(kbd_layout_controller)¶
- Signal Name:
- config-changed
- Flags:
- Parameters:
- kbd_layout_controller ( - XApp.KbdLayoutController) – The object which received the signal
 
- XApp.KbdLayoutController.signals.layout_changed(kbd_layout_controller, object)¶
- Signal Name:
- layout-changed
- Flags:
- Parameters:
- kbd_layout_controller ( - XApp.KbdLayoutController) – The object which received the signal
- object ( - int) –