package xkb
import "gioui.org/app/internal/xkb"
Package xkb implements a Go interface for the X Keyboard Extension library.
Index ¶
- type Context
- func New() (*Context, error)
- 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)
Types ¶
type Context ¶
type Context struct { Ctx *C.struct_xkb_context // contains filtered or unexported fields }
func New ¶
func (*Context) Destroy ¶
func (x *Context) Destroy()
func (*Context) DestroyKeymapState ¶
func (x *Context) DestroyKeymapState()
func (*Context) DispatchKey ¶
func (*Context) IsRepeatKey ¶
func (*Context) LoadKeymap ¶
func (*Context) Modifiers ¶
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 ¶
func (x *Context) UpdateMask(depressed, latched, locked, depressedGroup, latchedGroup, lockedGroup uint32)
Source Files ¶
xkb_unix.go
- Version
- v0.8.0 (latest)
- Published
- Jan 14, 2025
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 5 hours ago –
Tools for package owners.