Documentation ¶
Overview ¶
Package xkb implements a Go interface for the X Keyboard Extension library.
Index ¶
- type Context
- func (x *Context) Destroy()
- func (x *Context) DestroyKeymapState()
- func (x *Context) DispatchKey(keyCode uint32, state key.State) (events []event.Event)
- func (x *Context) IsRepeatKey(keyCode uint32) bool
- func (x *Context) LoadKeymap(format int, fd int, size int) error
- func (x *Context) Modifiers() key.Modifiers
- func (x *Context) SetKeymap(xkbKeyMap, xkbState unsafe.Pointer)
- func (x *Context) UpdateMask(depressed, latched, locked, depressedGroup, latchedGroup, lockedGroup uint32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Ctx *C.struct_xkb_context // contains filtered or unexported fields }
func (*Context) DestroyKeymapState ¶
func (x *Context) DestroyKeymapState()
func (*Context) DispatchKey ¶
func (*Context) IsRepeatKey ¶
func (*Context) SetKeymap ¶
SetKeymap sets the keymap and state. The context takes ownership of the keymap and state and frees them in Destroy.
func (*Context) UpdateMask ¶
Click to show internal directories.
Click to hide internal directories.