Documentation ¶
Index ¶
- Constants
- func XkbKeysymToUTF8(keysym XkbKeysym, buffer unsafe.Pointer, size int) int
- func XkbX11GetCoreKeyboardDeviceId(c *Connection) int32
- func XkbX11SetupXkbExtension(c *Connection, majorXkbVersion, minorXkbVersion uint16, ...) (ret int, majorVersion, minorVersion uint16, baseEvent, baseError uint8)
- type Connection
- type XkbContext
- type XkbContextFlags
- type XkbKeyDirection
- type XkbKeycode
- type XkbKeymap
- type XkbKeymapCompileFlags
- type XkbKeysym
- type XkbLayoutIndex
- type XkbModMask
- type XkbState
- func (s *XkbState) KeyGetLayout(key XkbKeycode) XkbLayoutIndex
- func (s *XkbState) KeyGetOneSym(key XkbKeycode) XkbKeysym
- func (s *XkbState) KeyGetSyms(key XkbKeycode) (out []XkbKeysym)
- func (s *XkbState) LedNameIsActive(name string) int
- func (s *XkbState) UpdateMask(depressedMods, latchedMods, lockedMods XkbModMask, ...) XkbStateComponent
- type XkbStateComponent
- type XkbX11SetupXkbExtensionFlags
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 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
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 (*XkbState) UpdateMask ¶
func (s *XkbState) UpdateMask(depressedMods, latchedMods, lockedMods XkbModMask, depressedLayout, latchedLayout, lockedLayout XkbLayoutIndex) XkbStateComponent
type XkbStateComponent ¶
type XkbStateComponent C.enum_xkb_state_component
type XkbX11SetupXkbExtensionFlags ¶
type XkbX11SetupXkbExtensionFlags C.enum_xkb_x11_setup_xkb_extension_flags
Click to show internal directories.
Click to hide internal directories.