Gkbd.KeyboardDrawing¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.DrawingArea (1), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
colors |
r |
||
display |
r |
||
groupLevels |
r |
||
keyboard_items |
[ |
r |
|
keys |
r |
||
l3mod |
r |
||
mods |
r |
||
parent |
r |
||
physical_indicators |
r |
||
physical_indicators_size |
r |
||
renderContext |
r |
||
timeout |
r |
||
track_config |
r |
||
track_modifiers |
r |
||
xkb |
r |
||
xkbOnDisplay |
r |
||
xkb_event_type |
r |
Class Details¶
- class Gkbd.KeyboardDrawing(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod dialog_new()¶
- Return type:
- classmethod dialog_set_group(dialog, registry, group)¶
- Parameters:
dialog (
Gtk.Widget) –registry (
Xkl.ConfigRegistry) –group (
int) –
- classmethod dialog_set_layout(dialog, registry, layout)¶
- Parameters:
dialog (
Gtk.Widget) –registry (
Xkl.ConfigRegistry) –layout (
str) –
- classmethod new()¶
- Return type:
- print_(parent_window, description)¶
- Parameters:
parent_window (
Gtk.Window) –description (
str) –
- render(cr, layout, x, y, width, height, dpi_x, dpi_y)¶
- Parameters:
cr (
cairo.Context) – Cairo context to render tolayout (
Pango.Layout) – Pango layout to use to render textx (
float) – left coordinate (pixels) of region to render iny (
float) – top coordinate (pixels) of region to render inwidth (
float) – width (pixels) of region to render inheight (
float) – height (pixels) of region to render indpi_x (
float) –dpi_y (
float) –
- Returns:
- Return type:
Renders a keyboard layout to a
cairo.Contextcontext. cr and layout can be got from e.g. aGtk.Widgetor aGtk.PrintContext. cr and layout may be modified by the function but will not be unreffed.
- set_groups_levels(groupLevels)¶
- Parameters:
groupLevels (
Gkbd.KeyboardDrawingGroupLevel) –
Signal Details¶
- Gkbd.KeyboardDrawing.signals.bad_keycode(keyboard_drawing, object)¶
- Signal Name:
bad-keycode- Flags:
- Parameters:
keyboard_drawing (
Gkbd.KeyboardDrawing) – The object which received the signalobject (
int) –