xkb

package
v0.0.0-...-ba251d1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModNameShift is the name of Shift Modifier
	ModNameShift = "Shift"
	// ModNameCaps is the name of Caps Lock Modifier
	ModNameCaps = "Lock"
	// ModNameCtrl is the name of Control Modifier
	ModNameCtrl = "Control"
	// ModNameAlt is the name of Alt Modifier
	ModNameAlt = "Mod1"
	// ModNameNum is the name of Num Lock Modifier
	ModNameNum = "Mod2"
	ModNameLogo = "Mod4"
	// LedNameCaps is the name of Caps Lock Led
	LedNameCaps = "Caps Lock"
	// LedNameNum is the name of Num Lock Led
	LedNameNum = "Num Lock"
	// LedNameScroll is the name of Scroll Lock Led
	LedNameScroll = "Scroll Lock"
)
View Source
const ContextNoFlags = 0

Variables

This section is empty.

Functions

func KeysymGetName

func KeysymGetName(keysym uint32) string

func KeysymToUtf32

func KeysymToUtf32(keysym uint32) uint32

func Utf32ToKeysym

func Utf32ToKeysym(ucs uint32) uint32

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func ContextNew

func ContextNew(flags uint32) (ctx *Context)

func (*Context) KeymapNewFromNames

func (ctx *Context) KeymapNewFromNames(rules *RuleNames, flags KeymapCompileFlags) *Keymap

func (*Context) Unref

func (ctx *Context) Unref()

type Keymap

type Keymap struct {
	// contains filtered or unexported fields
}

func (*Keymap) KeyGetMod

func (km *Keymap) KeyGetMod(key, layout, level uint32) uint32

func (*Keymap) KeyGetSymsByLevel

func (km *Keymap) KeyGetSymsByLevel(key, layout, level uint32) []uint32

func (*Keymap) MaxKeycode

func (km *Keymap) MaxKeycode() uint32

func (*Keymap) MinKeycode

func (km *Keymap) MinKeycode() uint32

func (*Keymap) ModGetIndex

func (km *Keymap) ModGetIndex(mod string) uint

func (*Keymap) NumLevelsForKey

func (km *Keymap) NumLevelsForKey(key, layout uint32) uint32

func (*Keymap) Unref

func (km *Keymap) Unref()

type KeymapCompileFlags

type KeymapCompileFlags int
const (
	KeymapCompileNoFlags KeymapCompileFlags = C.XKB_KEYMAP_COMPILE_NO_FLAGS
)

type RuleNames

type RuleNames struct {
	Rules, Model, Layout, Variant, Options string
}

Jump to

Keyboard shortcuts

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