xkb

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: MIT, Unlicense Imports: 10 Imported by: 0

Documentation

Overview

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

Index

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 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, state key.State) (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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL