Gkbd.KeyboardDrawing

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gkbd.KeyboardDrawing Gkbd.KeyboardDrawing Gtk.Buildable->Gtk.Widget Gtk.DrawingArea Gtk.DrawingArea Gtk.DrawingArea->Gkbd.KeyboardDrawing Gtk.Widget->Gtk.DrawingArea

Subclasses:

None

Methods

Inherited:

Gtk.DrawingArea (1), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)

Structs:

Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

dialog_new ()

class

dialog_set_group (dialog, registry, group)

class

dialog_set_layout (dialog, registry, layout)

class

new ()

get_compat ()

get_geometry ()

get_keycodes ()

get_symbols ()

get_types ()

print_ (parent_window, description)

render (cr, layout, x, y, width, height, dpi_x, dpi_y)

set_groups_levels (groupLevels)

set_layout (id)

set_track_config (enable)

set_track_modifiers (enable)

Virtual Methods

Inherited:

Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

do_bad_keycode (keycode)

Properties

Inherited:

Gtk.Widget (39)

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

Gtk.Widget (69), GObject.Object (1)

Name

Short Description

bad-keycode

Fields

Inherited:

Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

colors

Gdk.RGBA

r

display

xlib.Display

r

groupLevels

Gkbd.KeyboardDrawingGroupLevel

r

keyboard_items

[object]

r

keys

Gkbd.KeyboardDrawingKey

r

l3mod

int

r

mods

int

r

parent

Gtk.DrawingArea

r

physical_indicators

Gkbd.KeyboardDrawingDoodad

r

physical_indicators_size

int

r

renderContext

Gkbd.KeyboardDrawingRenderContext

r

timeout

int

r

track_config

int

r

track_modifiers

int

r

xkb

object

r

xkbOnDisplay

bool

r

xkb_event_type

int

r

Class Details

class Gkbd.KeyboardDrawing(**kwargs)
Bases:

Gtk.DrawingArea

Abstract:

No

Structure:

Gkbd.KeyboardDrawingClass

classmethod dialog_new()
Return type:

Gtk.Widget

classmethod dialog_set_group(dialog, registry, group)
Parameters:
classmethod dialog_set_layout(dialog, registry, layout)
Parameters:
classmethod new()
Return type:

Gtk.Widget

get_compat()
Return type:

str

get_geometry()
Return type:

str

get_keycodes()
Return type:

str

get_symbols()
Return type:

str

get_types()
Return type:

str

print_(parent_window, description)
Parameters:
render(cr, layout, x, y, width, height, dpi_x, dpi_y)
Parameters:
  • cr (cairo.Context) – Cairo context to render to

  • layout (Pango.Layout) – Pango layout to use to render text

  • x (float) – left coordinate (pixels) of region to render in

  • y (float) – top coordinate (pixels) of region to render in

  • width (float) – width (pixels) of region to render in

  • height (float) – height (pixels) of region to render in

  • dpi_x (float) –

  • dpi_y (float) –

Returns:

True on success, False on failure

Return type:

bool

Renders a keyboard layout to a cairo.Context context. cr and layout can be got from e.g. a Gtk.Widget or a Gtk.PrintContext. cr and layout may be modified by the function but will not be unreffed.

set_groups_levels(groupLevels)
Parameters:

groupLevels (Gkbd.KeyboardDrawingGroupLevel) –

set_layout(id)
Parameters:

id (str) –

set_track_config(enable)
Parameters:

enable (bool) –

set_track_modifiers(enable)
Parameters:

enable (bool) –

do_bad_keycode(keycode) virtual
Parameters:

keycode (int) –

Signal Details

Gkbd.KeyboardDrawing.signals.bad_keycode(keyboard_drawing, object)
Signal Name:

bad-keycode

Flags:

RUN_FIRST

Parameters: