Back to godoc.org
gioui.org/app/internal/xkb

package xkb

v0.0.0 (278e9bc)
Latest Go to latest
Published: Jun 3, 2020 | Licenses: MIT, Unlicense | Module: gioui.org

Overview

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

Index

type Context

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

func New

func New() (*Context, error)

func (*Context) Destroy

func (x *Context) Destroy()

func (*Context) DestroyKeymapState

func (x *Context) DestroyKeymapState()

func (*Context) DispatchKey

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

func (*Context) IsRepeatKey

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

func (*Context) LoadKeymap

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

func (*Context) Modifiers

func (x *Context) Modifiers() key.Modifiers

func (*Context) SetKeymap

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

func (x *Context) UpdateMask(depressed, latched, locked, depressedGroup, latchedGroup, lockedGroup uint32)
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier