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

Package xkb

v0.0.0-...-ef7b3e7
Latest Go to latest

The latest major version is .

Published: 4 days ago | 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)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier