gioui.org: gioui.org/app/internal/xkb Index | Files

package xkb

import "gioui.org/app/internal/xkb"

Package xkb implements a Go interface for the X Keyboard Extension library.

Index

Package Files

xkb_unix.go

type Context Uses

type Context struct {
    Ctx *C.struct_xkb_context
    // contains filtered or unexported fields
}

func New Uses

func New() (*Context, error)

func (*Context) Destroy Uses

func (x *Context) Destroy()

func (*Context) DestroyKeymapState Uses

func (x *Context) DestroyKeymapState()

func (*Context) DispatchKey Uses

func (x *Context) DispatchKey(keyCode uint32) (events []event.Event)

func (*Context) IsRepeatKey Uses

func (x *Context) IsRepeatKey(keyCode uint32) bool

func (*Context) LoadKeymap Uses

func (x *Context) LoadKeymap(format int, fd int, size int) error

func (*Context) SetKeymap Uses

func (x *Context) SetKeymap(xkbKeyMap, xkbState unsafe.Pointer)

SetKeymap sets the keymap and state. The context takes ownership of the keymap and state and frees them in Destroy.

func (*Context) UpdateMask Uses

func (x *Context) UpdateMask(depressed, latched, locked, depressedGroup, latchedGroup, lockedGroup uint32)

Package xkb imports 10 packages (graph) and is imported by 1 packages. Updated 2020-01-28. Refresh now. Tools for package owners.