Documentation ¶
Index ¶
- Constants
- func KeysymGetName(keysym uint32) string
- func KeysymToUtf32(keysym uint32) uint32
- func Utf32ToKeysym(ucs uint32) uint32
- type Context
- type Keymap
- func (km *Keymap) KeyGetMod(key, layout, level uint32) uint32
- func (km *Keymap) KeyGetSymsByLevel(key, layout, level uint32) []uint32
- func (km *Keymap) MaxKeycode() uint32
- func (km *Keymap) MinKeycode() uint32
- func (km *Keymap) ModGetIndex(mod string) uint
- func (km *Keymap) NumLevelsForKey(key, layout uint32) uint32
- func (km *Keymap) Unref()
- type KeymapCompileFlags
- type RuleNames
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 is the name of Logo Modifier 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 KeysymToUtf32 ¶
func Utf32ToKeysym ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func ContextNew ¶
func (*Context) KeymapNewFromNames ¶
func (ctx *Context) KeymapNewFromNames(rules *RuleNames, flags KeymapCompileFlags) *Keymap
type Keymap ¶
type Keymap struct {
// contains filtered or unexported fields
}
func (*Keymap) KeyGetSymsByLevel ¶
func (*Keymap) MaxKeycode ¶
func (*Keymap) MinKeycode ¶
func (*Keymap) ModGetIndex ¶
func (*Keymap) NumLevelsForKey ¶
type KeymapCompileFlags ¶
type KeymapCompileFlags int
const (
KeymapCompileNoFlags KeymapCompileFlags = C.XKB_KEYMAP_COMPILE_NO_FLAGS
)
Click to show internal directories.
Click to hide internal directories.