xkbcommon

package
v1.0.0-...-bc6fffa Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2014 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XKB_X11_MIN_MAJOR_XKB_VERSION = C.XKB_X11_MIN_MAJOR_XKB_VERSION
	XKB_X11_MIN_MINOR_XKB_VERSION = C.XKB_X11_MIN_MINOR_XKB_VERSION
	XKB_KEY_DOWN                  = C.XKB_KEY_DOWN
	XKB_KEY_UP                    = C.XKB_KEY_UP
)

Variables

This section is empty.

Functions

func XkbKeysymToUTF8

func XkbKeysymToUTF8(keysym XkbKeysym, buffer unsafe.Pointer, size int) int

func XkbX11GetCoreKeyboardDeviceId

func XkbX11GetCoreKeyboardDeviceId(c *Connection) int32

Get core/default keyboard device id (-1 on error)

func XkbX11SetupXkbExtension

func XkbX11SetupXkbExtension(c *Connection, majorXkbVersion, minorXkbVersion uint16, flags XkbX11SetupXkbExtensionFlags) (ret int, majorVersion, minorVersion uint16, baseEvent, baseError uint8)

Types

type Connection

type Connection C.xcb_connection_t

type XkbContext

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

func XkbContextNew

func XkbContextNew(flags XkbContextFlags) *XkbContext

Create new context, nil on failure.

type XkbContextFlags

type XkbContextFlags C.enum_xkb_context_flags

type XkbKeyDirection

type XkbKeyDirection C.enum_xkb_key_direction

type XkbKeycode

type XkbKeycode C.xkb_keycode_t

type XkbKeymap

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

func XkbX11KeymapNewFromDevice

func XkbX11KeymapNewFromDevice(context *XkbContext, c *Connection, deviceId int32, flags XkbKeymapCompileFlags) *XkbKeymap

Get keymap from current device state, nil on failure.

type XkbKeymapCompileFlags

type XkbKeymapCompileFlags C.enum_xkb_keymap_compile_flags

type XkbKeysym

type XkbKeysym C.xkb_keysym_t

func (XkbKeysym) Rune

func (k XkbKeysym) Rune() rune

type XkbLayoutIndex

type XkbLayoutIndex C.xkb_layout_index_t

type XkbModMask

type XkbModMask C.xkb_mod_mask_t

type XkbState

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

func XkbX11StateNewFromDevice

func XkbX11StateNewFromDevice(c *Connection, keymap *XkbKeymap, deviceId int32) *XkbState

Create keyboard state manager from a given keymap and device id, returns nil on error.

func (*XkbState) KeyGetLayout

func (s *XkbState) KeyGetLayout(key XkbKeycode) XkbLayoutIndex

func (*XkbState) KeyGetOneSym

func (s *XkbState) KeyGetOneSym(key XkbKeycode) XkbKeysym

func (*XkbState) KeyGetSyms

func (s *XkbState) KeyGetSyms(key XkbKeycode) (out []XkbKeysym)

func (*XkbState) LedNameIsActive

func (s *XkbState) LedNameIsActive(name string) int

func (*XkbState) UpdateMask

func (s *XkbState) UpdateMask(depressedMods, latchedMods, lockedMods XkbModMask, depressedLayout, latchedLayout, lockedLayout XkbLayoutIndex) XkbStateComponent

type XkbStateComponent

type XkbStateComponent C.enum_xkb_state_component

Jump to

Keyboard shortcuts

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