xinput

package
v0.0.0-...-eb7c389 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2013 License: BSD-3-Clause, GooglePatentClause Imports: 2 Imported by: 0

Documentation

Overview

Package xinput is the X client API for the XInputExtension extension.

Index

Constants

View Source
const (
	DeviceInputModeAsyncThisDevice   = 0
	DeviceInputModeSyncThisDevice    = 1
	DeviceInputModeReplayThisDevice  = 2
	DeviceInputModeAsyncOtherDevices = 3
	DeviceInputModeAsyncAll          = 4
	DeviceInputModeSyncAll           = 5
)
View Source
const (
	DeviceUseIsXPointer           = 0
	DeviceUseIsXKeyboard          = 1
	DeviceUseIsXExtensionDevice   = 2
	DeviceUseIsXExtensionKeyboard = 3
	DeviceUseIsXExtensionPointer  = 4
)
View Source
const (
	FeedbackClassKeyboard = 0
	FeedbackClassPointer  = 1
	FeedbackClassString   = 2
	FeedbackClassInteger  = 3
	FeedbackClassLed      = 4
	FeedbackClassBell     = 5
)
View Source
const (
	InputClassKey       = 0
	InputClassButton    = 1
	InputClassValuator  = 2
	InputClassFeedback  = 3
	InputClassProximity = 4
	InputClassFocus     = 5
	InputClassOther     = 6
)
View Source
const (
	PropagateModeAddToList      = 0
	PropagateModeDeleteFromList = 1
)
View Source
const (
	ValuatorModeRelative = 0
	ValuatorModeAbsolute = 1
)
View Source
const BadClass = 4

BadClass is the error number for a BadClass.

View Source
const BadDevice = 0

BadDevice is the error number for a BadDevice.

View Source
const BadDeviceBusy = 3

BadDeviceBusy is the error number for a BadDeviceBusy.

View Source
const BadEvent = 1

BadEvent is the error number for a BadEvent.

View Source
const BadMode = 2

BadMode is the error number for a BadMode.

View Source
const ChangeDeviceNotify = 12

ChangeDeviceNotify is the event number for a ChangeDeviceNotifyEvent.

View Source
const DeviceButtonPress = 3

DeviceButtonPress is the event number for a DeviceButtonPressEvent.

View Source
const DeviceButtonRelease = 4

DeviceButtonRelease is the event number for a DeviceButtonReleaseEvent.

View Source
const DeviceButtonStateNotify = 14

DeviceButtonStateNotify is the event number for a DeviceButtonStateNotifyEvent.

View Source
const DeviceKeyPress = 1

DeviceKeyPress is the event number for a DeviceKeyPressEvent.

View Source
const DeviceKeyRelease = 2

DeviceKeyRelease is the event number for a DeviceKeyReleaseEvent.

View Source
const DeviceKeyStateNotify = 13

DeviceKeyStateNotify is the event number for a DeviceKeyStateNotifyEvent.

View Source
const DeviceMappingNotify = 11

DeviceMappingNotify is the event number for a DeviceMappingNotifyEvent.

View Source
const DeviceMotionNotify = 5

DeviceMotionNotify is the event number for a DeviceMotionNotifyEvent.

View Source
const DevicePresenceNotify = 15

DevicePresenceNotify is the event number for a DevicePresenceNotifyEvent.

View Source
const DeviceStateNotify = 10

DeviceStateNotify is the event number for a DeviceStateNotifyEvent.

View Source
const DeviceValuator = 0

DeviceValuator is the event number for a DeviceValuatorEvent.

View Source
const FocusIn = 6

FocusIn is the event number for a FocusInEvent.

View Source
const FocusOut = 7

FocusOut is the event number for a FocusOutEvent.

View Source
const ProximityIn = 8

ProximityIn is the event number for a ProximityInEvent.

View Source
const ProximityOut = 9

ProximityOut is the event number for a ProximityOutEvent.

Variables

This section is empty.

Functions

func AxisInfoListBytes

func AxisInfoListBytes(buf []byte, list []AxisInfo) int

AxisInfoListBytes writes a list of AxisInfo values to a byte slice.

func AxisInfoRead

func AxisInfoRead(buf []byte, v *AxisInfo) int

AxisInfoRead reads a byte slice into a AxisInfo value.

func AxisInfoReadList

func AxisInfoReadList(buf []byte, dest []AxisInfo) int

AxisInfoReadList reads a byte slice into a list of AxisInfo values.

func BellFeedbackCtlListBytes

func BellFeedbackCtlListBytes(buf []byte, list []BellFeedbackCtl) int

BellFeedbackCtlListBytes writes a list of BellFeedbackCtl values to a byte slice.

func BellFeedbackCtlRead

func BellFeedbackCtlRead(buf []byte, v *BellFeedbackCtl) int

BellFeedbackCtlRead reads a byte slice into a BellFeedbackCtl value.

func BellFeedbackCtlReadList

func BellFeedbackCtlReadList(buf []byte, dest []BellFeedbackCtl) int

BellFeedbackCtlReadList reads a byte slice into a list of BellFeedbackCtl values.

func BellFeedbackStateListBytes

func BellFeedbackStateListBytes(buf []byte, list []BellFeedbackState) int

BellFeedbackStateListBytes writes a list of BellFeedbackState values to a byte slice.

func BellFeedbackStateRead

func BellFeedbackStateRead(buf []byte, v *BellFeedbackState) int

BellFeedbackStateRead reads a byte slice into a BellFeedbackState value.

func BellFeedbackStateReadList

func BellFeedbackStateReadList(buf []byte, dest []BellFeedbackState) int

BellFeedbackStateReadList reads a byte slice into a list of BellFeedbackState values.

func ButtonInfoListBytes

func ButtonInfoListBytes(buf []byte, list []ButtonInfo) int

ButtonInfoListBytes writes a list of ButtonInfo values to a byte slice.

func ButtonInfoRead

func ButtonInfoRead(buf []byte, v *ButtonInfo) int

ButtonInfoRead reads a byte slice into a ButtonInfo value.

func ButtonInfoReadList

func ButtonInfoReadList(buf []byte, dest []ButtonInfo) int

ButtonInfoReadList reads a byte slice into a list of ButtonInfo values.

func ButtonStateListBytes

func ButtonStateListBytes(buf []byte, list []ButtonState) int

ButtonStateListBytes writes a list of ButtonState values to a byte slice.

func ButtonStateListSize

func ButtonStateListSize(list []ButtonState) int

ButtonStateListSize computes the size (bytes) of a list of ButtonState values.

func ButtonStateRead

func ButtonStateRead(buf []byte, v *ButtonState) int

ButtonStateRead reads a byte slice into a ButtonState value.

func ButtonStateReadList

func ButtonStateReadList(buf []byte, dest []ButtonState) int

ButtonStateReadList reads a byte slice into a list of ButtonState values.

func ChangeDeviceNotifyEventNew

func ChangeDeviceNotifyEventNew(buf []byte) xgb.Event

ChangeDeviceNotifyEventNew constructs a ChangeDeviceNotifyEvent value that implements xgb.Event from a byte slice.

func ClassErrorNew

func ClassErrorNew(buf []byte) xgb.Error

ClassErrorNew constructs a ClassError value that implements xgb.Error from a byte slice.

func DeviceAbsAreaCtrlListBytes

func DeviceAbsAreaCtrlListBytes(buf []byte, list []DeviceAbsAreaCtrl) int

DeviceAbsAreaCtrlListBytes writes a list of DeviceAbsAreaCtrl values to a byte slice.

func DeviceAbsAreaCtrlRead

func DeviceAbsAreaCtrlRead(buf []byte, v *DeviceAbsAreaCtrl) int

DeviceAbsAreaCtrlRead reads a byte slice into a DeviceAbsAreaCtrl value.

func DeviceAbsAreaCtrlReadList

func DeviceAbsAreaCtrlReadList(buf []byte, dest []DeviceAbsAreaCtrl) int

DeviceAbsAreaCtrlReadList reads a byte slice into a list of DeviceAbsAreaCtrl values.

func DeviceAbsAreaStateListBytes

func DeviceAbsAreaStateListBytes(buf []byte, list []DeviceAbsAreaState) int

DeviceAbsAreaStateListBytes writes a list of DeviceAbsAreaState values to a byte slice.

func DeviceAbsAreaStateRead

func DeviceAbsAreaStateRead(buf []byte, v *DeviceAbsAreaState) int

DeviceAbsAreaStateRead reads a byte slice into a DeviceAbsAreaState value.

func DeviceAbsAreaStateReadList

func DeviceAbsAreaStateReadList(buf []byte, dest []DeviceAbsAreaState) int

DeviceAbsAreaStateReadList reads a byte slice into a list of DeviceAbsAreaState values.

func DeviceAbsCalibCtlListBytes

func DeviceAbsCalibCtlListBytes(buf []byte, list []DeviceAbsCalibCtl) int

DeviceAbsCalibCtlListBytes writes a list of DeviceAbsCalibCtl values to a byte slice.

func DeviceAbsCalibCtlRead

func DeviceAbsCalibCtlRead(buf []byte, v *DeviceAbsCalibCtl) int

DeviceAbsCalibCtlRead reads a byte slice into a DeviceAbsCalibCtl value.

func DeviceAbsCalibCtlReadList

func DeviceAbsCalibCtlReadList(buf []byte, dest []DeviceAbsCalibCtl) int

DeviceAbsCalibCtlReadList reads a byte slice into a list of DeviceAbsCalibCtl values.

func DeviceAbsCalibStateListBytes

func DeviceAbsCalibStateListBytes(buf []byte, list []DeviceAbsCalibState) int

DeviceAbsCalibStateListBytes writes a list of DeviceAbsCalibState values to a byte slice.

func DeviceAbsCalibStateRead

func DeviceAbsCalibStateRead(buf []byte, v *DeviceAbsCalibState) int

DeviceAbsCalibStateRead reads a byte slice into a DeviceAbsCalibState value.

func DeviceAbsCalibStateReadList

func DeviceAbsCalibStateReadList(buf []byte, dest []DeviceAbsCalibState) int

DeviceAbsCalibStateReadList reads a byte slice into a list of DeviceAbsCalibState values.

func DeviceBusyErrorNew

func DeviceBusyErrorNew(buf []byte) xgb.Error

DeviceBusyErrorNew constructs a DeviceBusyError value that implements xgb.Error from a byte slice.

func DeviceButtonPressEventNew

func DeviceButtonPressEventNew(buf []byte) xgb.Event

DeviceButtonPressEventNew constructs a DeviceButtonPressEvent value that implements xgb.Event from a byte slice.

func DeviceButtonReleaseEventNew

func DeviceButtonReleaseEventNew(buf []byte) xgb.Event

DeviceButtonReleaseEventNew constructs a DeviceButtonReleaseEvent value that implements xgb.Event from a byte slice.

func DeviceButtonStateNotifyEventNew

func DeviceButtonStateNotifyEventNew(buf []byte) xgb.Event

DeviceButtonStateNotifyEventNew constructs a DeviceButtonStateNotifyEvent value that implements xgb.Event from a byte slice.

func DeviceCoreCtrlListBytes

func DeviceCoreCtrlListBytes(buf []byte, list []DeviceCoreCtrl) int

DeviceCoreCtrlListBytes writes a list of DeviceCoreCtrl values to a byte slice.

func DeviceCoreCtrlRead

func DeviceCoreCtrlRead(buf []byte, v *DeviceCoreCtrl) int

DeviceCoreCtrlRead reads a byte slice into a DeviceCoreCtrl value.

func DeviceCoreCtrlReadList

func DeviceCoreCtrlReadList(buf []byte, dest []DeviceCoreCtrl) int

DeviceCoreCtrlReadList reads a byte slice into a list of DeviceCoreCtrl values.

func DeviceCoreStateListBytes

func DeviceCoreStateListBytes(buf []byte, list []DeviceCoreState) int

DeviceCoreStateListBytes writes a list of DeviceCoreState values to a byte slice.

func DeviceCoreStateRead

func DeviceCoreStateRead(buf []byte, v *DeviceCoreState) int

DeviceCoreStateRead reads a byte slice into a DeviceCoreState value.

func DeviceCoreStateReadList

func DeviceCoreStateReadList(buf []byte, dest []DeviceCoreState) int

DeviceCoreStateReadList reads a byte slice into a list of DeviceCoreState values.

func DeviceCtlListBytes

func DeviceCtlListBytes(buf []byte, list []DeviceCtl) int

DeviceCtlListBytes writes a list of DeviceCtl values to a byte slice.

func DeviceCtlRead

func DeviceCtlRead(buf []byte, v *DeviceCtl) int

DeviceCtlRead reads a byte slice into a DeviceCtl value.

func DeviceCtlReadList

func DeviceCtlReadList(buf []byte, dest []DeviceCtl) int

DeviceCtlReadList reads a byte slice into a list of DeviceCtl values.

func DeviceEnableCtrlListBytes

func DeviceEnableCtrlListBytes(buf []byte, list []DeviceEnableCtrl) int

DeviceEnableCtrlListBytes writes a list of DeviceEnableCtrl values to a byte slice.

func DeviceEnableCtrlRead

func DeviceEnableCtrlRead(buf []byte, v *DeviceEnableCtrl) int

DeviceEnableCtrlRead reads a byte slice into a DeviceEnableCtrl value.

func DeviceEnableCtrlReadList

func DeviceEnableCtrlReadList(buf []byte, dest []DeviceEnableCtrl) int

DeviceEnableCtrlReadList reads a byte slice into a list of DeviceEnableCtrl values.

func DeviceEnableStateListBytes

func DeviceEnableStateListBytes(buf []byte, list []DeviceEnableState) int

DeviceEnableStateListBytes writes a list of DeviceEnableState values to a byte slice.

func DeviceEnableStateRead

func DeviceEnableStateRead(buf []byte, v *DeviceEnableState) int

DeviceEnableStateRead reads a byte slice into a DeviceEnableState value.

func DeviceEnableStateReadList

func DeviceEnableStateReadList(buf []byte, dest []DeviceEnableState) int

DeviceEnableStateReadList reads a byte slice into a list of DeviceEnableState values.

func DeviceErrorNew

func DeviceErrorNew(buf []byte) xgb.Error

DeviceErrorNew constructs a DeviceError value that implements xgb.Error from a byte slice.

func DeviceInfoListBytes

func DeviceInfoListBytes(buf []byte, list []DeviceInfo) int

DeviceInfoListBytes writes a list of DeviceInfo values to a byte slice.

func DeviceInfoRead

func DeviceInfoRead(buf []byte, v *DeviceInfo) int

DeviceInfoRead reads a byte slice into a DeviceInfo value.

func DeviceInfoReadList

func DeviceInfoReadList(buf []byte, dest []DeviceInfo) int

DeviceInfoReadList reads a byte slice into a list of DeviceInfo values.

func DeviceKeyPressEventNew

func DeviceKeyPressEventNew(buf []byte) xgb.Event

DeviceKeyPressEventNew constructs a DeviceKeyPressEvent value that implements xgb.Event from a byte slice.

func DeviceKeyReleaseEventNew

func DeviceKeyReleaseEventNew(buf []byte) xgb.Event

DeviceKeyReleaseEventNew constructs a DeviceKeyReleaseEvent value that implements xgb.Event from a byte slice.

func DeviceKeyStateNotifyEventNew

func DeviceKeyStateNotifyEventNew(buf []byte) xgb.Event

DeviceKeyStateNotifyEventNew constructs a DeviceKeyStateNotifyEvent value that implements xgb.Event from a byte slice.

func DeviceMappingNotifyEventNew

func DeviceMappingNotifyEventNew(buf []byte) xgb.Event

DeviceMappingNotifyEventNew constructs a DeviceMappingNotifyEvent value that implements xgb.Event from a byte slice.

func DeviceMotionNotifyEventNew

func DeviceMotionNotifyEventNew(buf []byte) xgb.Event

DeviceMotionNotifyEventNew constructs a DeviceMotionNotifyEvent value that implements xgb.Event from a byte slice.

func DevicePresenceNotifyEventNew

func DevicePresenceNotifyEventNew(buf []byte) xgb.Event

DevicePresenceNotifyEventNew constructs a DevicePresenceNotifyEvent value that implements xgb.Event from a byte slice.

func DeviceResolutionCtlListBytes

func DeviceResolutionCtlListBytes(buf []byte, list []DeviceResolutionCtl) int

DeviceResolutionCtlListBytes writes a list of DeviceResolutionCtl values to a byte slice.

func DeviceResolutionCtlListSize

func DeviceResolutionCtlListSize(list []DeviceResolutionCtl) int

DeviceResolutionCtlListSize computes the size (bytes) of a list of DeviceResolutionCtl values.

func DeviceResolutionCtlRead

func DeviceResolutionCtlRead(buf []byte, v *DeviceResolutionCtl) int

DeviceResolutionCtlRead reads a byte slice into a DeviceResolutionCtl value.

func DeviceResolutionCtlReadList

func DeviceResolutionCtlReadList(buf []byte, dest []DeviceResolutionCtl) int

DeviceResolutionCtlReadList reads a byte slice into a list of DeviceResolutionCtl values.

func DeviceResolutionStateListBytes

func DeviceResolutionStateListBytes(buf []byte, list []DeviceResolutionState) int

DeviceResolutionStateListBytes writes a list of DeviceResolutionState values to a byte slice.

func DeviceResolutionStateListSize

func DeviceResolutionStateListSize(list []DeviceResolutionState) int

DeviceResolutionStateListSize computes the size (bytes) of a list of DeviceResolutionState values.

func DeviceResolutionStateRead

func DeviceResolutionStateRead(buf []byte, v *DeviceResolutionState) int

DeviceResolutionStateRead reads a byte slice into a DeviceResolutionState value.

func DeviceResolutionStateReadList

func DeviceResolutionStateReadList(buf []byte, dest []DeviceResolutionState) int

DeviceResolutionStateReadList reads a byte slice into a list of DeviceResolutionState values.

func DeviceStateListBytes

func DeviceStateListBytes(buf []byte, list []DeviceState) int

DeviceStateListBytes writes a list of DeviceState values to a byte slice.

func DeviceStateNotifyEventNew

func DeviceStateNotifyEventNew(buf []byte) xgb.Event

DeviceStateNotifyEventNew constructs a DeviceStateNotifyEvent value that implements xgb.Event from a byte slice.

func DeviceStateRead

func DeviceStateRead(buf []byte, v *DeviceState) int

DeviceStateRead reads a byte slice into a DeviceState value.

func DeviceStateReadList

func DeviceStateReadList(buf []byte, dest []DeviceState) int

DeviceStateReadList reads a byte slice into a list of DeviceState values.

func DeviceTimeCoordListBytes

func DeviceTimeCoordListBytes(buf []byte, list []DeviceTimeCoord) int

DeviceTimeCoordListBytes writes a list of DeviceTimeCoord values to a byte slice.

func DeviceTimeCoordRead

func DeviceTimeCoordRead(buf []byte, v *DeviceTimeCoord) int

DeviceTimeCoordRead reads a byte slice into a DeviceTimeCoord value.

func DeviceTimeCoordReadList

func DeviceTimeCoordReadList(buf []byte, dest []DeviceTimeCoord) int

DeviceTimeCoordReadList reads a byte slice into a list of DeviceTimeCoord values.

func DeviceValuatorEventNew

func DeviceValuatorEventNew(buf []byte) xgb.Event

DeviceValuatorEventNew constructs a DeviceValuatorEvent value that implements xgb.Event from a byte slice.

func EventErrorNew

func EventErrorNew(buf []byte) xgb.Error

EventErrorNew constructs a EventError value that implements xgb.Error from a byte slice.

func FeedbackCtlListBytes

func FeedbackCtlListBytes(buf []byte, list []FeedbackCtl) int

FeedbackCtlListBytes writes a list of FeedbackCtl values to a byte slice.

func FeedbackCtlRead

func FeedbackCtlRead(buf []byte, v *FeedbackCtl) int

FeedbackCtlRead reads a byte slice into a FeedbackCtl value.

func FeedbackCtlReadList

func FeedbackCtlReadList(buf []byte, dest []FeedbackCtl) int

FeedbackCtlReadList reads a byte slice into a list of FeedbackCtl values.

func FeedbackStateListBytes

func FeedbackStateListBytes(buf []byte, list []FeedbackState) int

FeedbackStateListBytes writes a list of FeedbackState values to a byte slice.

func FeedbackStateRead

func FeedbackStateRead(buf []byte, v *FeedbackState) int

FeedbackStateRead reads a byte slice into a FeedbackState value.

func FeedbackStateReadList

func FeedbackStateReadList(buf []byte, dest []FeedbackState) int

FeedbackStateReadList reads a byte slice into a list of FeedbackState values.

func FocusInEventNew

func FocusInEventNew(buf []byte) xgb.Event

FocusInEventNew constructs a FocusInEvent value that implements xgb.Event from a byte slice.

func FocusOutEventNew

func FocusOutEventNew(buf []byte) xgb.Event

FocusOutEventNew constructs a FocusOutEvent value that implements xgb.Event from a byte slice.

func Init

func Init(c *xgb.Conn) error

Init must be called before using the XInputExtension extension.

func InputClassInfoListBytes

func InputClassInfoListBytes(buf []byte, list []InputClassInfo) int

InputClassInfoListBytes writes a list of InputClassInfo values to a byte slice.

func InputClassInfoRead

func InputClassInfoRead(buf []byte, v *InputClassInfo) int

InputClassInfoRead reads a byte slice into a InputClassInfo value.

func InputClassInfoReadList

func InputClassInfoReadList(buf []byte, dest []InputClassInfo) int

InputClassInfoReadList reads a byte slice into a list of InputClassInfo values.

func InputInfoListBytes

func InputInfoListBytes(buf []byte, list []InputInfo) int

InputInfoListBytes writes a list of InputInfo values to a byte slice.

func InputInfoRead

func InputInfoRead(buf []byte, v *InputInfo) int

InputInfoRead reads a byte slice into a InputInfo value.

func InputInfoReadList

func InputInfoReadList(buf []byte, dest []InputInfo) int

InputInfoReadList reads a byte slice into a list of InputInfo values.

func InputStateListBytes

func InputStateListBytes(buf []byte, list []InputState) int

InputStateListBytes writes a list of InputState values to a byte slice.

func InputStateRead

func InputStateRead(buf []byte, v *InputState) int

InputStateRead reads a byte slice into a InputState value.

func InputStateReadList

func InputStateReadList(buf []byte, dest []InputState) int

InputStateReadList reads a byte slice into a list of InputState values.

func IntegerFeedbackCtlListBytes

func IntegerFeedbackCtlListBytes(buf []byte, list []IntegerFeedbackCtl) int

IntegerFeedbackCtlListBytes writes a list of IntegerFeedbackCtl values to a byte slice.

func IntegerFeedbackCtlRead

func IntegerFeedbackCtlRead(buf []byte, v *IntegerFeedbackCtl) int

IntegerFeedbackCtlRead reads a byte slice into a IntegerFeedbackCtl value.

func IntegerFeedbackCtlReadList

func IntegerFeedbackCtlReadList(buf []byte, dest []IntegerFeedbackCtl) int

IntegerFeedbackCtlReadList reads a byte slice into a list of IntegerFeedbackCtl values.

func IntegerFeedbackStateListBytes

func IntegerFeedbackStateListBytes(buf []byte, list []IntegerFeedbackState) int

IntegerFeedbackStateListBytes writes a list of IntegerFeedbackState values to a byte slice.

func IntegerFeedbackStateRead

func IntegerFeedbackStateRead(buf []byte, v *IntegerFeedbackState) int

IntegerFeedbackStateRead reads a byte slice into a IntegerFeedbackState value.

func IntegerFeedbackStateReadList

func IntegerFeedbackStateReadList(buf []byte, dest []IntegerFeedbackState) int

IntegerFeedbackStateReadList reads a byte slice into a list of IntegerFeedbackState values.

func KbdFeedbackCtlListBytes

func KbdFeedbackCtlListBytes(buf []byte, list []KbdFeedbackCtl) int

KbdFeedbackCtlListBytes writes a list of KbdFeedbackCtl values to a byte slice.

func KbdFeedbackCtlRead

func KbdFeedbackCtlRead(buf []byte, v *KbdFeedbackCtl) int

KbdFeedbackCtlRead reads a byte slice into a KbdFeedbackCtl value.

func KbdFeedbackCtlReadList

func KbdFeedbackCtlReadList(buf []byte, dest []KbdFeedbackCtl) int

KbdFeedbackCtlReadList reads a byte slice into a list of KbdFeedbackCtl values.

func KbdFeedbackStateListBytes

func KbdFeedbackStateListBytes(buf []byte, list []KbdFeedbackState) int

KbdFeedbackStateListBytes writes a list of KbdFeedbackState values to a byte slice.

func KbdFeedbackStateListSize

func KbdFeedbackStateListSize(list []KbdFeedbackState) int

KbdFeedbackStateListSize computes the size (bytes) of a list of KbdFeedbackState values.

func KbdFeedbackStateRead

func KbdFeedbackStateRead(buf []byte, v *KbdFeedbackState) int

KbdFeedbackStateRead reads a byte slice into a KbdFeedbackState value.

func KbdFeedbackStateReadList

func KbdFeedbackStateReadList(buf []byte, dest []KbdFeedbackState) int

KbdFeedbackStateReadList reads a byte slice into a list of KbdFeedbackState values.

func KeyInfoListBytes

func KeyInfoListBytes(buf []byte, list []KeyInfo) int

KeyInfoListBytes writes a list of KeyInfo values to a byte slice.

func KeyInfoRead

func KeyInfoRead(buf []byte, v *KeyInfo) int

KeyInfoRead reads a byte slice into a KeyInfo value.

func KeyInfoReadList

func KeyInfoReadList(buf []byte, dest []KeyInfo) int

KeyInfoReadList reads a byte slice into a list of KeyInfo values.

func KeyStateListBytes

func KeyStateListBytes(buf []byte, list []KeyState) int

KeyStateListBytes writes a list of KeyState values to a byte slice.

func KeyStateListSize

func KeyStateListSize(list []KeyState) int

KeyStateListSize computes the size (bytes) of a list of KeyState values.

func KeyStateRead

func KeyStateRead(buf []byte, v *KeyState) int

KeyStateRead reads a byte slice into a KeyState value.

func KeyStateReadList

func KeyStateReadList(buf []byte, dest []KeyState) int

KeyStateReadList reads a byte slice into a list of KeyState values.

func LedFeedbackCtlListBytes

func LedFeedbackCtlListBytes(buf []byte, list []LedFeedbackCtl) int

LedFeedbackCtlListBytes writes a list of LedFeedbackCtl values to a byte slice.

func LedFeedbackCtlRead

func LedFeedbackCtlRead(buf []byte, v *LedFeedbackCtl) int

LedFeedbackCtlRead reads a byte slice into a LedFeedbackCtl value.

func LedFeedbackCtlReadList

func LedFeedbackCtlReadList(buf []byte, dest []LedFeedbackCtl) int

LedFeedbackCtlReadList reads a byte slice into a list of LedFeedbackCtl values.

func LedFeedbackStateListBytes

func LedFeedbackStateListBytes(buf []byte, list []LedFeedbackState) int

LedFeedbackStateListBytes writes a list of LedFeedbackState values to a byte slice.

func LedFeedbackStateRead

func LedFeedbackStateRead(buf []byte, v *LedFeedbackState) int

LedFeedbackStateRead reads a byte slice into a LedFeedbackState value.

func LedFeedbackStateReadList

func LedFeedbackStateReadList(buf []byte, dest []LedFeedbackState) int

LedFeedbackStateReadList reads a byte slice into a list of LedFeedbackState values.

func ModeErrorNew

func ModeErrorNew(buf []byte) xgb.Error

ModeErrorNew constructs a ModeError value that implements xgb.Error from a byte slice.

func ProximityInEventNew

func ProximityInEventNew(buf []byte) xgb.Event

ProximityInEventNew constructs a ProximityInEvent value that implements xgb.Event from a byte slice.

func ProximityOutEventNew

func ProximityOutEventNew(buf []byte) xgb.Event

ProximityOutEventNew constructs a ProximityOutEvent value that implements xgb.Event from a byte slice.

func PtrFeedbackCtlListBytes

func PtrFeedbackCtlListBytes(buf []byte, list []PtrFeedbackCtl) int

PtrFeedbackCtlListBytes writes a list of PtrFeedbackCtl values to a byte slice.

func PtrFeedbackCtlRead

func PtrFeedbackCtlRead(buf []byte, v *PtrFeedbackCtl) int

PtrFeedbackCtlRead reads a byte slice into a PtrFeedbackCtl value.

func PtrFeedbackCtlReadList

func PtrFeedbackCtlReadList(buf []byte, dest []PtrFeedbackCtl) int

PtrFeedbackCtlReadList reads a byte slice into a list of PtrFeedbackCtl values.

func PtrFeedbackStateListBytes

func PtrFeedbackStateListBytes(buf []byte, list []PtrFeedbackState) int

PtrFeedbackStateListBytes writes a list of PtrFeedbackState values to a byte slice.

func PtrFeedbackStateRead

func PtrFeedbackStateRead(buf []byte, v *PtrFeedbackState) int

PtrFeedbackStateRead reads a byte slice into a PtrFeedbackState value.

func PtrFeedbackStateReadList

func PtrFeedbackStateReadList(buf []byte, dest []PtrFeedbackState) int

PtrFeedbackStateReadList reads a byte slice into a list of PtrFeedbackState values.

func StringFeedbackCtlListBytes

func StringFeedbackCtlListBytes(buf []byte, list []StringFeedbackCtl) int

StringFeedbackCtlListBytes writes a list of StringFeedbackCtl values to a byte slice.

func StringFeedbackCtlListSize

func StringFeedbackCtlListSize(list []StringFeedbackCtl) int

StringFeedbackCtlListSize computes the size (bytes) of a list of StringFeedbackCtl values.

func StringFeedbackCtlRead

func StringFeedbackCtlRead(buf []byte, v *StringFeedbackCtl) int

StringFeedbackCtlRead reads a byte slice into a StringFeedbackCtl value.

func StringFeedbackCtlReadList

func StringFeedbackCtlReadList(buf []byte, dest []StringFeedbackCtl) int

StringFeedbackCtlReadList reads a byte slice into a list of StringFeedbackCtl values.

func StringFeedbackStateListBytes

func StringFeedbackStateListBytes(buf []byte, list []StringFeedbackState) int

StringFeedbackStateListBytes writes a list of StringFeedbackState values to a byte slice.

func StringFeedbackStateListSize

func StringFeedbackStateListSize(list []StringFeedbackState) int

StringFeedbackStateListSize computes the size (bytes) of a list of StringFeedbackState values.

func StringFeedbackStateRead

func StringFeedbackStateRead(buf []byte, v *StringFeedbackState) int

StringFeedbackStateRead reads a byte slice into a StringFeedbackState value.

func StringFeedbackStateReadList

func StringFeedbackStateReadList(buf []byte, dest []StringFeedbackState) int

StringFeedbackStateReadList reads a byte slice into a list of StringFeedbackState values.

func ValuatorInfoListBytes

func ValuatorInfoListBytes(buf []byte, list []ValuatorInfo) int

ValuatorInfoListBytes writes a list of ValuatorInfo values to a byte slice.

func ValuatorInfoListSize

func ValuatorInfoListSize(list []ValuatorInfo) int

ValuatorInfoListSize computes the size (bytes) of a list of ValuatorInfo values.

func ValuatorInfoRead

func ValuatorInfoRead(buf []byte, v *ValuatorInfo) int

ValuatorInfoRead reads a byte slice into a ValuatorInfo value.

func ValuatorInfoReadList

func ValuatorInfoReadList(buf []byte, dest []ValuatorInfo) int

ValuatorInfoReadList reads a byte slice into a list of ValuatorInfo values.

func ValuatorStateListBytes

func ValuatorStateListBytes(buf []byte, list []ValuatorState) int

ValuatorStateListBytes writes a list of ValuatorState values to a byte slice.

func ValuatorStateListSize

func ValuatorStateListSize(list []ValuatorState) int

ValuatorStateListSize computes the size (bytes) of a list of ValuatorState values.

func ValuatorStateRead

func ValuatorStateRead(buf []byte, v *ValuatorState) int

ValuatorStateRead reads a byte slice into a ValuatorState value.

func ValuatorStateReadList

func ValuatorStateReadList(buf []byte, dest []ValuatorState) int

ValuatorStateReadList reads a byte slice into a list of ValuatorState values.

Types

type AllowDeviceEventsCookie

type AllowDeviceEventsCookie struct {
	*xgb.Cookie
}

AllowDeviceEventsCookie is a cookie used only for AllowDeviceEvents requests.

func AllowDeviceEvents

func AllowDeviceEvents(c *xgb.Conn, Time xproto.Timestamp, Mode byte, DeviceId byte) AllowDeviceEventsCookie

AllowDeviceEvents sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func AllowDeviceEventsChecked

func AllowDeviceEventsChecked(c *xgb.Conn, Time xproto.Timestamp, Mode byte, DeviceId byte) AllowDeviceEventsCookie

AllowDeviceEventsChecked sends a checked request. If an error occurs, it can be retrieved using AllowDeviceEventsCookie.Check()

func (AllowDeviceEventsCookie) Check

func (cook AllowDeviceEventsCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type AxisInfo

type AxisInfo struct {
	Resolution uint32
	Minimum    int32
	Maximum    int32
}

func (AxisInfo) Bytes

func (v AxisInfo) Bytes() []byte

Bytes writes a AxisInfo value to a byte slice.

type BellFeedbackCtl

type BellFeedbackCtl struct {
	ClassId byte
	Id      byte
	Len     uint16
	Percent int8
	// padding: 3 bytes
	Pitch    int16
	Duration int16
}

func (BellFeedbackCtl) Bytes

func (v BellFeedbackCtl) Bytes() []byte

Bytes writes a BellFeedbackCtl value to a byte slice.

type BellFeedbackState

type BellFeedbackState struct {
	ClassId byte
	Id      byte
	Len     uint16
	Percent byte
	// padding: 3 bytes
	Pitch    uint16
	Duration uint16
}

func (BellFeedbackState) Bytes

func (v BellFeedbackState) Bytes() []byte

Bytes writes a BellFeedbackState value to a byte slice.

type ButtonInfo

type ButtonInfo struct {
	ClassId    byte
	Len        byte
	NumButtons uint16
}

func (ButtonInfo) Bytes

func (v ButtonInfo) Bytes() []byte

Bytes writes a ButtonInfo value to a byte slice.

type ButtonState

type ButtonState struct {
	ClassId    byte
	Len        byte
	NumButtons byte
	// padding: 1 bytes
	Buttons []byte // size: 32
}

func (ButtonState) Bytes

func (v ButtonState) Bytes() []byte

Bytes writes a ButtonState value to a byte slice.

type ChangeDeviceDontPropagateListCookie

type ChangeDeviceDontPropagateListCookie struct {
	*xgb.Cookie
}

ChangeDeviceDontPropagateListCookie is a cookie used only for ChangeDeviceDontPropagateList requests.

func ChangeDeviceDontPropagateList

func ChangeDeviceDontPropagateList(c *xgb.Conn, Window xproto.Window, NumClasses uint16, Mode byte, Classes []EventClass) ChangeDeviceDontPropagateListCookie

ChangeDeviceDontPropagateList sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func ChangeDeviceDontPropagateListChecked

func ChangeDeviceDontPropagateListChecked(c *xgb.Conn, Window xproto.Window, NumClasses uint16, Mode byte, Classes []EventClass) ChangeDeviceDontPropagateListCookie

ChangeDeviceDontPropagateListChecked sends a checked request. If an error occurs, it can be retrieved using ChangeDeviceDontPropagateListCookie.Check()

func (ChangeDeviceDontPropagateListCookie) Check

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type ChangeDeviceKeyMappingCookie

type ChangeDeviceKeyMappingCookie struct {
	*xgb.Cookie
}

ChangeDeviceKeyMappingCookie is a cookie used only for ChangeDeviceKeyMapping requests.

func ChangeDeviceKeyMapping

func ChangeDeviceKeyMapping(c *xgb.Conn, DeviceId byte, FirstKeycode KeyCode, KeysymsPerKeycode byte, KeycodeCount byte, Keysyms []xproto.Keysym) ChangeDeviceKeyMappingCookie

ChangeDeviceKeyMapping sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func ChangeDeviceKeyMappingChecked

func ChangeDeviceKeyMappingChecked(c *xgb.Conn, DeviceId byte, FirstKeycode KeyCode, KeysymsPerKeycode byte, KeycodeCount byte, Keysyms []xproto.Keysym) ChangeDeviceKeyMappingCookie

ChangeDeviceKeyMappingChecked sends a checked request. If an error occurs, it can be retrieved using ChangeDeviceKeyMappingCookie.Check()

func (ChangeDeviceKeyMappingCookie) Check

func (cook ChangeDeviceKeyMappingCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type ChangeDeviceNotifyEvent

type ChangeDeviceNotifyEvent struct {
	Sequence uint16
	DeviceId byte
	Time     xproto.Timestamp
	Request  byte
}

func (ChangeDeviceNotifyEvent) Bytes

func (v ChangeDeviceNotifyEvent) Bytes() []byte

Bytes writes a ChangeDeviceNotifyEvent value to a byte slice.

func (ChangeDeviceNotifyEvent) SequenceId

func (v ChangeDeviceNotifyEvent) SequenceId() uint16

SequenceId returns the sequence id attached to the ChangeDeviceNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

func (ChangeDeviceNotifyEvent) String

func (v ChangeDeviceNotifyEvent) String() string

String is a rudimentary string representation of ChangeDeviceNotifyEvent.

type ChangeKeyboardDeviceCookie

type ChangeKeyboardDeviceCookie struct {
	*xgb.Cookie
}

ChangeKeyboardDeviceCookie is a cookie used only for ChangeKeyboardDevice requests.

func ChangeKeyboardDevice

func ChangeKeyboardDevice(c *xgb.Conn, DeviceId byte) ChangeKeyboardDeviceCookie

ChangeKeyboardDevice sends a checked request. If an error occurs, it will be returned with the reply by calling ChangeKeyboardDeviceCookie.Reply()

func ChangeKeyboardDeviceUnchecked

func ChangeKeyboardDeviceUnchecked(c *xgb.Conn, DeviceId byte) ChangeKeyboardDeviceCookie

ChangeKeyboardDeviceUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (ChangeKeyboardDeviceCookie) Reply

Reply blocks and returns the reply data for a ChangeKeyboardDevice request.

type ChangeKeyboardDeviceReply

type ChangeKeyboardDeviceReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Status byte
}

ChangeKeyboardDeviceReply represents the data returned from a ChangeKeyboardDevice request.

type ChangePointerDeviceCookie

type ChangePointerDeviceCookie struct {
	*xgb.Cookie
}

ChangePointerDeviceCookie is a cookie used only for ChangePointerDevice requests.

func ChangePointerDevice

func ChangePointerDevice(c *xgb.Conn, XAxis byte, YAxis byte, DeviceId byte) ChangePointerDeviceCookie

ChangePointerDevice sends a checked request. If an error occurs, it will be returned with the reply by calling ChangePointerDeviceCookie.Reply()

func ChangePointerDeviceUnchecked

func ChangePointerDeviceUnchecked(c *xgb.Conn, XAxis byte, YAxis byte, DeviceId byte) ChangePointerDeviceCookie

ChangePointerDeviceUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (ChangePointerDeviceCookie) Reply

Reply blocks and returns the reply data for a ChangePointerDevice request.

type ChangePointerDeviceReply

type ChangePointerDeviceReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Status byte
}

ChangePointerDeviceReply represents the data returned from a ChangePointerDevice request.

type ClassError

type ClassError struct {
	Sequence uint16
	NiceName string
}

func (ClassError) BadId

func (err ClassError) BadId() uint32

BadId returns the 'BadValue' number if one exists for the BadClass error. If no bad value exists, 0 is returned.

func (ClassError) Error

func (err ClassError) Error() string

func (ClassError) SequenceId

func (err ClassError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadClass error. This is mostly used internally.

type CloseDeviceCookie

type CloseDeviceCookie struct {
	*xgb.Cookie
}

CloseDeviceCookie is a cookie used only for CloseDevice requests.

func CloseDevice

func CloseDevice(c *xgb.Conn, DeviceId byte) CloseDeviceCookie

CloseDevice sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func CloseDeviceChecked

func CloseDeviceChecked(c *xgb.Conn, DeviceId byte) CloseDeviceCookie

CloseDeviceChecked sends a checked request. If an error occurs, it can be retrieved using CloseDeviceCookie.Check()

func (CloseDeviceCookie) Check

func (cook CloseDeviceCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type DeviceAbsAreaCtrl

type DeviceAbsAreaCtrl struct {
	ControlId uint16
	Len       uint16
	OffsetX   uint32
	OffsetY   uint32
	Width     int32
	Height    int32
	Screen    int32
	Following uint32
}

func (DeviceAbsAreaCtrl) Bytes

func (v DeviceAbsAreaCtrl) Bytes() []byte

Bytes writes a DeviceAbsAreaCtrl value to a byte slice.

type DeviceAbsAreaState

type DeviceAbsAreaState struct {
	ControlId uint16
	Len       uint16
	OffsetX   uint32
	OffsetY   uint32
	Width     uint32
	Height    uint32
	Screen    uint32
	Following uint32
}

func (DeviceAbsAreaState) Bytes

func (v DeviceAbsAreaState) Bytes() []byte

Bytes writes a DeviceAbsAreaState value to a byte slice.

type DeviceAbsCalibCtl

type DeviceAbsCalibCtl struct {
	ControlId       uint16
	Len             uint16
	MinX            int32
	MaxX            int32
	MinY            int32
	MaxY            int32
	FlipX           uint32
	FlipY           uint32
	Rotation        uint32
	ButtonThreshold uint32
}

func (DeviceAbsCalibCtl) Bytes

func (v DeviceAbsCalibCtl) Bytes() []byte

Bytes writes a DeviceAbsCalibCtl value to a byte slice.

type DeviceAbsCalibState

type DeviceAbsCalibState struct {
	ControlId       uint16
	Len             uint16
	MinX            int32
	MaxX            int32
	MinY            int32
	MaxY            int32
	FlipX           uint32
	FlipY           uint32
	Rotation        uint32
	ButtonThreshold uint32
}

func (DeviceAbsCalibState) Bytes

func (v DeviceAbsCalibState) Bytes() []byte

Bytes writes a DeviceAbsCalibState value to a byte slice.

type DeviceBellCookie

type DeviceBellCookie struct {
	*xgb.Cookie
}

DeviceBellCookie is a cookie used only for DeviceBell requests.

func DeviceBell

func DeviceBell(c *xgb.Conn, DeviceId byte, FeedbackId byte, FeedbackClass byte, Percent int8) DeviceBellCookie

DeviceBell sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func DeviceBellChecked

func DeviceBellChecked(c *xgb.Conn, DeviceId byte, FeedbackId byte, FeedbackClass byte, Percent int8) DeviceBellCookie

DeviceBellChecked sends a checked request. If an error occurs, it can be retrieved using DeviceBellCookie.Check()

func (DeviceBellCookie) Check

func (cook DeviceBellCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type DeviceBusyError

type DeviceBusyError struct {
	Sequence uint16
	NiceName string
}

func (DeviceBusyError) BadId

func (err DeviceBusyError) BadId() uint32

BadId returns the 'BadValue' number if one exists for the BadDeviceBusy error. If no bad value exists, 0 is returned.

func (DeviceBusyError) Error

func (err DeviceBusyError) Error() string

func (DeviceBusyError) SequenceId

func (err DeviceBusyError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadDeviceBusy error. This is mostly used internally.

type DeviceButtonPressEvent

type DeviceButtonPressEvent DeviceKeyPressEvent

func (DeviceButtonPressEvent) Bytes

func (v DeviceButtonPressEvent) Bytes() []byte

Bytes writes a DeviceButtonPressEvent value to a byte slice.

func (DeviceButtonPressEvent) SequenceId

func (v DeviceButtonPressEvent) SequenceId() uint16

SequenceId returns the sequence id attached to the DeviceButtonPress event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

func (DeviceButtonPressEvent) String

func (v DeviceButtonPressEvent) String() string

type DeviceButtonReleaseEvent

type DeviceButtonReleaseEvent DeviceKeyPressEvent

func (DeviceButtonReleaseEvent) Bytes

func (v DeviceButtonReleaseEvent) Bytes() []byte

Bytes writes a DeviceButtonReleaseEvent value to a byte slice.

func (DeviceButtonReleaseEvent) SequenceId

func (v DeviceButtonReleaseEvent) SequenceId() uint16

SequenceId returns the sequence id attached to the DeviceButtonRelease event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

func (DeviceButtonReleaseEvent) String

func (v DeviceButtonReleaseEvent) String() string

type DeviceButtonStateNotifyEvent

type DeviceButtonStateNotifyEvent struct {
	Sequence uint16
	DeviceId byte
	Buttons  []byte // size: 28
}

func (DeviceButtonStateNotifyEvent) Bytes

func (v DeviceButtonStateNotifyEvent) Bytes() []byte

Bytes writes a DeviceButtonStateNotifyEvent value to a byte slice.

func (DeviceButtonStateNotifyEvent) SequenceId

func (v DeviceButtonStateNotifyEvent) SequenceId() uint16

SequenceId returns the sequence id attached to the DeviceButtonStateNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

func (DeviceButtonStateNotifyEvent) String

String is a rudimentary string representation of DeviceButtonStateNotifyEvent.

type DeviceCoreCtrl

type DeviceCoreCtrl struct {
	ControlId uint16
	Len       uint16
	Status    byte
}

func (DeviceCoreCtrl) Bytes

func (v DeviceCoreCtrl) Bytes() []byte

Bytes writes a DeviceCoreCtrl value to a byte slice.

type DeviceCoreState

type DeviceCoreState struct {
	ControlId uint16
	Len       uint16
	Status    byte
	Iscore    byte
}

func (DeviceCoreState) Bytes

func (v DeviceCoreState) Bytes() []byte

Bytes writes a DeviceCoreState value to a byte slice.

type DeviceCtl

type DeviceCtl struct {
	ControlId uint16
	Len       uint16
}

func (DeviceCtl) Bytes

func (v DeviceCtl) Bytes() []byte

Bytes writes a DeviceCtl value to a byte slice.

type DeviceEnableCtrl

type DeviceEnableCtrl struct {
	ControlId uint16
	Len       uint16
	Enable    byte
}

func (DeviceEnableCtrl) Bytes

func (v DeviceEnableCtrl) Bytes() []byte

Bytes writes a DeviceEnableCtrl value to a byte slice.

type DeviceEnableState

type DeviceEnableState struct {
	ControlId uint16
	Len       uint16
	Enable    byte
}

func (DeviceEnableState) Bytes

func (v DeviceEnableState) Bytes() []byte

Bytes writes a DeviceEnableState value to a byte slice.

type DeviceError

type DeviceError struct {
	Sequence uint16
	NiceName string
}

func (DeviceError) BadId

func (err DeviceError) BadId() uint32

BadId returns the 'BadValue' number if one exists for the BadDevice error. If no bad value exists, 0 is returned.

func (DeviceError) Error

func (err DeviceError) Error() string

func (DeviceError) SequenceId

func (err DeviceError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadDevice error. This is mostly used internally.

type DeviceInfo

type DeviceInfo struct {
	DeviceType   xproto.Atom
	DeviceId     byte
	NumClassInfo byte
	DeviceUse    byte
}

func (DeviceInfo) Bytes

func (v DeviceInfo) Bytes() []byte

Bytes writes a DeviceInfo value to a byte slice.

type DeviceKeyPressEvent

type DeviceKeyPressEvent struct {
	Sequence   uint16
	Detail     byte
	Time       xproto.Timestamp
	Root       xproto.Window
	Event      xproto.Window
	Child      xproto.Window
	RootX      int16
	RootY      int16
	EventX     int16
	EventY     int16
	State      uint16
	SameScreen bool
	DeviceId   byte
}

func (DeviceKeyPressEvent) Bytes

func (v DeviceKeyPressEvent) Bytes() []byte

Bytes writes a DeviceKeyPressEvent value to a byte slice.

func (DeviceKeyPressEvent) SequenceId

func (v DeviceKeyPressEvent) SequenceId() uint16

SequenceId returns the sequence id attached to the DeviceKeyPress event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

func (DeviceKeyPressEvent) String

func (v DeviceKeyPressEvent) String() string

String is a rudimentary string representation of DeviceKeyPressEvent.

type DeviceKeyReleaseEvent

type DeviceKeyReleaseEvent DeviceKeyPressEvent

func (DeviceKeyReleaseEvent) Bytes

func (v DeviceKeyReleaseEvent) Bytes() []byte

Bytes writes a DeviceKeyReleaseEvent value to a byte slice.

func (DeviceKeyReleaseEvent) SequenceId

func (v DeviceKeyReleaseEvent) SequenceId() uint16

SequenceId returns the sequence id attached to the DeviceKeyRelease event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

func (DeviceKeyReleaseEvent) String

func (v DeviceKeyReleaseEvent) String() string

type DeviceKeyStateNotifyEvent

type DeviceKeyStateNotifyEvent struct {
	Sequence uint16
	DeviceId byte
	Keys     []byte // size: 28
}

func (DeviceKeyStateNotifyEvent) Bytes

func (v DeviceKeyStateNotifyEvent) Bytes() []byte

Bytes writes a DeviceKeyStateNotifyEvent value to a byte slice.

func (DeviceKeyStateNotifyEvent) SequenceId

func (v DeviceKeyStateNotifyEvent) SequenceId() uint16

SequenceId returns the sequence id attached to the DeviceKeyStateNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

func (DeviceKeyStateNotifyEvent) String

func (v DeviceKeyStateNotifyEvent) String() string

String is a rudimentary string representation of DeviceKeyStateNotifyEvent.

type DeviceMappingNotifyEvent

type DeviceMappingNotifyEvent struct {
	Sequence     uint16
	DeviceId     byte
	Request      byte
	FirstKeycode KeyCode
	Count        byte
	// padding: 1 bytes
	Time xproto.Timestamp
}

func (DeviceMappingNotifyEvent) Bytes

func (v DeviceMappingNotifyEvent) Bytes() []byte

Bytes writes a DeviceMappingNotifyEvent value to a byte slice.

func (DeviceMappingNotifyEvent) SequenceId

func (v DeviceMappingNotifyEvent) SequenceId() uint16

SequenceId returns the sequence id attached to the DeviceMappingNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

func (DeviceMappingNotifyEvent) String

func (v DeviceMappingNotifyEvent) String() string

String is a rudimentary string representation of DeviceMappingNotifyEvent.

type DeviceMotionNotifyEvent

type DeviceMotionNotifyEvent DeviceKeyPressEvent

func (DeviceMotionNotifyEvent) Bytes

func (v DeviceMotionNotifyEvent) Bytes() []byte

Bytes writes a DeviceMotionNotifyEvent value to a byte slice.

func (DeviceMotionNotifyEvent) SequenceId

func (v DeviceMotionNotifyEvent) SequenceId() uint16

SequenceId returns the sequence id attached to the DeviceMotionNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

func (DeviceMotionNotifyEvent) String

func (v DeviceMotionNotifyEvent) String() string

type DevicePresenceNotifyEvent

type DevicePresenceNotifyEvent struct {
	Sequence uint16
	// padding: 1 bytes
	Time      xproto.Timestamp
	Devchange byte
	DeviceId  byte
	Control   uint16
}

func (DevicePresenceNotifyEvent) Bytes

func (v DevicePresenceNotifyEvent) Bytes() []byte

Bytes writes a DevicePresenceNotifyEvent value to a byte slice.

func (DevicePresenceNotifyEvent) SequenceId

func (v DevicePresenceNotifyEvent) SequenceId() uint16

SequenceId returns the sequence id attached to the DevicePresenceNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

func (DevicePresenceNotifyEvent) String

func (v DevicePresenceNotifyEvent) String() string

String is a rudimentary string representation of DevicePresenceNotifyEvent.

type DeviceResolutionCtl

type DeviceResolutionCtl struct {
	ControlId        uint16
	Len              uint16
	FirstValuator    byte
	NumValuators     byte
	ResolutionValues []uint32 // size: xgb.Pad((int(NumValuators) * 4))
}

func (DeviceResolutionCtl) Bytes

func (v DeviceResolutionCtl) Bytes() []byte

Bytes writes a DeviceResolutionCtl value to a byte slice.

type DeviceResolutionState

type DeviceResolutionState struct {
	ControlId        uint16
	Len              uint16
	NumValuators     uint32
	ResolutionValues []uint32 // size: xgb.Pad((int(NumValuators) * 4))
	ResolutionMin    []uint32 // size: xgb.Pad((int(NumValuators) * 4))
	ResolutionMax    []uint32 // size: xgb.Pad((int(NumValuators) * 4))
}

func (DeviceResolutionState) Bytes

func (v DeviceResolutionState) Bytes() []byte

Bytes writes a DeviceResolutionState value to a byte slice.

type DeviceState

type DeviceState struct {
	ControlId uint16
	Len       uint16
}

func (DeviceState) Bytes

func (v DeviceState) Bytes() []byte

Bytes writes a DeviceState value to a byte slice.

type DeviceStateNotifyEvent

type DeviceStateNotifyEvent struct {
	Sequence        uint16
	DeviceId        byte
	Time            xproto.Timestamp
	NumKeys         byte
	NumButtons      byte
	NumValuators    byte
	ClassesReported byte
	Buttons         []byte   // size: 4
	Keys            []byte   // size: 4
	Valuators       []uint32 // size: 12
}

func (DeviceStateNotifyEvent) Bytes

func (v DeviceStateNotifyEvent) Bytes() []byte

Bytes writes a DeviceStateNotifyEvent value to a byte slice.

func (DeviceStateNotifyEvent) SequenceId

func (v DeviceStateNotifyEvent) SequenceId() uint16

SequenceId returns the sequence id attached to the DeviceStateNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

func (DeviceStateNotifyEvent) String

func (v DeviceStateNotifyEvent) String() string

String is a rudimentary string representation of DeviceStateNotifyEvent.

type DeviceTimeCoord

type DeviceTimeCoord struct {
	Time xproto.Timestamp
}

func (DeviceTimeCoord) Bytes

func (v DeviceTimeCoord) Bytes() []byte

Bytes writes a DeviceTimeCoord value to a byte slice.

type DeviceValuatorEvent

type DeviceValuatorEvent struct {
	Sequence      uint16
	DeviceId      byte
	DeviceState   uint16
	NumValuators  byte
	FirstValuator byte
	Valuators     []int32 // size: 24
}

func (DeviceValuatorEvent) Bytes

func (v DeviceValuatorEvent) Bytes() []byte

Bytes writes a DeviceValuatorEvent value to a byte slice.

func (DeviceValuatorEvent) SequenceId

func (v DeviceValuatorEvent) SequenceId() uint16

SequenceId returns the sequence id attached to the DeviceValuator event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

func (DeviceValuatorEvent) String

func (v DeviceValuatorEvent) String() string

String is a rudimentary string representation of DeviceValuatorEvent.

type EventClass

type EventClass uint32

type EventError

type EventError struct {
	Sequence uint16
	NiceName string
}

func (EventError) BadId

func (err EventError) BadId() uint32

BadId returns the 'BadValue' number if one exists for the BadEvent error. If no bad value exists, 0 is returned.

func (EventError) Error

func (err EventError) Error() string

func (EventError) SequenceId

func (err EventError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadEvent error. This is mostly used internally.

type FeedbackCtl

type FeedbackCtl struct {
	ClassId byte
	Id      byte
	Len     uint16
}

func (FeedbackCtl) Bytes

func (v FeedbackCtl) Bytes() []byte

Bytes writes a FeedbackCtl value to a byte slice.

type FeedbackState

type FeedbackState struct {
	ClassId byte
	Id      byte
	Len     uint16
}

func (FeedbackState) Bytes

func (v FeedbackState) Bytes() []byte

Bytes writes a FeedbackState value to a byte slice.

type FocusInEvent

type FocusInEvent struct {
	Sequence uint16
	Detail   byte
	Time     xproto.Timestamp
	Window   xproto.Window
	Mode     byte
	DeviceId byte
}

func (FocusInEvent) Bytes

func (v FocusInEvent) Bytes() []byte

Bytes writes a FocusInEvent value to a byte slice.

func (FocusInEvent) SequenceId

func (v FocusInEvent) SequenceId() uint16

SequenceId returns the sequence id attached to the FocusIn event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

func (FocusInEvent) String

func (v FocusInEvent) String() string

String is a rudimentary string representation of FocusInEvent.

type FocusOutEvent

type FocusOutEvent FocusInEvent

func (FocusOutEvent) Bytes

func (v FocusOutEvent) Bytes() []byte

Bytes writes a FocusOutEvent value to a byte slice.

func (FocusOutEvent) SequenceId

func (v FocusOutEvent) SequenceId() uint16

SequenceId returns the sequence id attached to the FocusOut event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

func (FocusOutEvent) String

func (v FocusOutEvent) String() string

type GetDeviceButtonMappingCookie

type GetDeviceButtonMappingCookie struct {
	*xgb.Cookie
}

GetDeviceButtonMappingCookie is a cookie used only for GetDeviceButtonMapping requests.

func GetDeviceButtonMapping

func GetDeviceButtonMapping(c *xgb.Conn, DeviceId byte) GetDeviceButtonMappingCookie

GetDeviceButtonMapping sends a checked request. If an error occurs, it will be returned with the reply by calling GetDeviceButtonMappingCookie.Reply()

func GetDeviceButtonMappingUnchecked

func GetDeviceButtonMappingUnchecked(c *xgb.Conn, DeviceId byte) GetDeviceButtonMappingCookie

GetDeviceButtonMappingUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetDeviceButtonMappingCookie) Reply

Reply blocks and returns the reply data for a GetDeviceButtonMapping request.

type GetDeviceButtonMappingReply

type GetDeviceButtonMappingReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	MapSize byte
	// padding: 23 bytes
	Map []byte // size: xgb.Pad((int(MapSize) * 1))
}

GetDeviceButtonMappingReply represents the data returned from a GetDeviceButtonMapping request.

type GetDeviceControlCookie

type GetDeviceControlCookie struct {
	*xgb.Cookie
}

GetDeviceControlCookie is a cookie used only for GetDeviceControl requests.

func GetDeviceControl

func GetDeviceControl(c *xgb.Conn, ControlId uint16, DeviceId byte) GetDeviceControlCookie

GetDeviceControl sends a checked request. If an error occurs, it will be returned with the reply by calling GetDeviceControlCookie.Reply()

func GetDeviceControlUnchecked

func GetDeviceControlUnchecked(c *xgb.Conn, ControlId uint16, DeviceId byte) GetDeviceControlCookie

GetDeviceControlUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetDeviceControlCookie) Reply

Reply blocks and returns the reply data for a GetDeviceControl request.

type GetDeviceControlReply

type GetDeviceControlReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Status byte
}

GetDeviceControlReply represents the data returned from a GetDeviceControl request.

type GetDeviceDontPropagateListCookie

type GetDeviceDontPropagateListCookie struct {
	*xgb.Cookie
}

GetDeviceDontPropagateListCookie is a cookie used only for GetDeviceDontPropagateList requests.

func GetDeviceDontPropagateList

func GetDeviceDontPropagateList(c *xgb.Conn, Window xproto.Window) GetDeviceDontPropagateListCookie

GetDeviceDontPropagateList sends a checked request. If an error occurs, it will be returned with the reply by calling GetDeviceDontPropagateListCookie.Reply()

func GetDeviceDontPropagateListUnchecked

func GetDeviceDontPropagateListUnchecked(c *xgb.Conn, Window xproto.Window) GetDeviceDontPropagateListCookie

GetDeviceDontPropagateListUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetDeviceDontPropagateListCookie) Reply

Reply blocks and returns the reply data for a GetDeviceDontPropagateList request.

type GetDeviceDontPropagateListReply

type GetDeviceDontPropagateListReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	NumClasses uint16
	// padding: 22 bytes
	Classes []EventClass // size: xgb.Pad((int(NumClasses) * 4))
}

GetDeviceDontPropagateListReply represents the data returned from a GetDeviceDontPropagateList request.

type GetDeviceFocusCookie

type GetDeviceFocusCookie struct {
	*xgb.Cookie
}

GetDeviceFocusCookie is a cookie used only for GetDeviceFocus requests.

func GetDeviceFocus

func GetDeviceFocus(c *xgb.Conn, DeviceId byte) GetDeviceFocusCookie

GetDeviceFocus sends a checked request. If an error occurs, it will be returned with the reply by calling GetDeviceFocusCookie.Reply()

func GetDeviceFocusUnchecked

func GetDeviceFocusUnchecked(c *xgb.Conn, DeviceId byte) GetDeviceFocusCookie

GetDeviceFocusUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetDeviceFocusCookie) Reply

Reply blocks and returns the reply data for a GetDeviceFocus request.

type GetDeviceFocusReply

type GetDeviceFocusReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Focus    xproto.Window
	Time     xproto.Timestamp
	RevertTo byte
}

GetDeviceFocusReply represents the data returned from a GetDeviceFocus request.

type GetDeviceKeyMappingCookie

type GetDeviceKeyMappingCookie struct {
	*xgb.Cookie
}

GetDeviceKeyMappingCookie is a cookie used only for GetDeviceKeyMapping requests.

func GetDeviceKeyMapping

func GetDeviceKeyMapping(c *xgb.Conn, DeviceId byte, FirstKeycode KeyCode, Count byte) GetDeviceKeyMappingCookie

GetDeviceKeyMapping sends a checked request. If an error occurs, it will be returned with the reply by calling GetDeviceKeyMappingCookie.Reply()

func GetDeviceKeyMappingUnchecked

func GetDeviceKeyMappingUnchecked(c *xgb.Conn, DeviceId byte, FirstKeycode KeyCode, Count byte) GetDeviceKeyMappingCookie

GetDeviceKeyMappingUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetDeviceKeyMappingCookie) Reply

Reply blocks and returns the reply data for a GetDeviceKeyMapping request.

type GetDeviceKeyMappingReply

type GetDeviceKeyMappingReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	KeysymsPerKeycode byte
	// padding: 23 bytes
	Keysyms []xproto.Keysym // size: xgb.Pad((int(Length) * 4))
}

GetDeviceKeyMappingReply represents the data returned from a GetDeviceKeyMapping request.

type GetDeviceModifierMappingCookie

type GetDeviceModifierMappingCookie struct {
	*xgb.Cookie
}

GetDeviceModifierMappingCookie is a cookie used only for GetDeviceModifierMapping requests.

func GetDeviceModifierMapping

func GetDeviceModifierMapping(c *xgb.Conn, DeviceId byte) GetDeviceModifierMappingCookie

GetDeviceModifierMapping sends a checked request. If an error occurs, it will be returned with the reply by calling GetDeviceModifierMappingCookie.Reply()

func GetDeviceModifierMappingUnchecked

func GetDeviceModifierMappingUnchecked(c *xgb.Conn, DeviceId byte) GetDeviceModifierMappingCookie

GetDeviceModifierMappingUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetDeviceModifierMappingCookie) Reply

Reply blocks and returns the reply data for a GetDeviceModifierMapping request.

type GetDeviceModifierMappingReply

type GetDeviceModifierMappingReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	KeycodesPerModifier byte
	// padding: 23 bytes
	Keymaps []byte // size: xgb.Pad(((int(KeycodesPerModifier) * 8) * 1))
}

GetDeviceModifierMappingReply represents the data returned from a GetDeviceModifierMapping request.

type GetDeviceMotionEventsCookie

type GetDeviceMotionEventsCookie struct {
	*xgb.Cookie
}

GetDeviceMotionEventsCookie is a cookie used only for GetDeviceMotionEvents requests.

func GetDeviceMotionEvents

func GetDeviceMotionEvents(c *xgb.Conn, Start xproto.Timestamp, Stop xproto.Timestamp, DeviceId byte) GetDeviceMotionEventsCookie

GetDeviceMotionEvents sends a checked request. If an error occurs, it will be returned with the reply by calling GetDeviceMotionEventsCookie.Reply()

func GetDeviceMotionEventsUnchecked

func GetDeviceMotionEventsUnchecked(c *xgb.Conn, Start xproto.Timestamp, Stop xproto.Timestamp, DeviceId byte) GetDeviceMotionEventsCookie

GetDeviceMotionEventsUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetDeviceMotionEventsCookie) Reply

Reply blocks and returns the reply data for a GetDeviceMotionEvents request.

type GetDeviceMotionEventsReply

type GetDeviceMotionEventsReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	NumCoords  uint32
	NumAxes    byte
	DeviceMode byte
}

GetDeviceMotionEventsReply represents the data returned from a GetDeviceMotionEvents request.

type GetExtensionVersionCookie

type GetExtensionVersionCookie struct {
	*xgb.Cookie
}

GetExtensionVersionCookie is a cookie used only for GetExtensionVersion requests.

func GetExtensionVersion

func GetExtensionVersion(c *xgb.Conn, NameLen uint16, Name string) GetExtensionVersionCookie

GetExtensionVersion sends a checked request. If an error occurs, it will be returned with the reply by calling GetExtensionVersionCookie.Reply()

func GetExtensionVersionUnchecked

func GetExtensionVersionUnchecked(c *xgb.Conn, NameLen uint16, Name string) GetExtensionVersionCookie

GetExtensionVersionUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetExtensionVersionCookie) Reply

Reply blocks and returns the reply data for a GetExtensionVersion request.

type GetExtensionVersionReply

type GetExtensionVersionReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	ServerMajor uint16
	ServerMinor uint16
	Present     bool
}

GetExtensionVersionReply represents the data returned from a GetExtensionVersion request.

type GetFeedbackControlCookie

type GetFeedbackControlCookie struct {
	*xgb.Cookie
}

GetFeedbackControlCookie is a cookie used only for GetFeedbackControl requests.

func GetFeedbackControl

func GetFeedbackControl(c *xgb.Conn, DeviceId byte) GetFeedbackControlCookie

GetFeedbackControl sends a checked request. If an error occurs, it will be returned with the reply by calling GetFeedbackControlCookie.Reply()

func GetFeedbackControlUnchecked

func GetFeedbackControlUnchecked(c *xgb.Conn, DeviceId byte) GetFeedbackControlCookie

GetFeedbackControlUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetFeedbackControlCookie) Reply

Reply blocks and returns the reply data for a GetFeedbackControl request.

type GetFeedbackControlReply

type GetFeedbackControlReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	NumFeedback uint16
}

GetFeedbackControlReply represents the data returned from a GetFeedbackControl request.

type GetSelectedExtensionEventsCookie

type GetSelectedExtensionEventsCookie struct {
	*xgb.Cookie
}

GetSelectedExtensionEventsCookie is a cookie used only for GetSelectedExtensionEvents requests.

func GetSelectedExtensionEvents

func GetSelectedExtensionEvents(c *xgb.Conn, Window xproto.Window) GetSelectedExtensionEventsCookie

GetSelectedExtensionEvents sends a checked request. If an error occurs, it will be returned with the reply by calling GetSelectedExtensionEventsCookie.Reply()

func GetSelectedExtensionEventsUnchecked

func GetSelectedExtensionEventsUnchecked(c *xgb.Conn, Window xproto.Window) GetSelectedExtensionEventsCookie

GetSelectedExtensionEventsUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetSelectedExtensionEventsCookie) Reply

Reply blocks and returns the reply data for a GetSelectedExtensionEvents request.

type GetSelectedExtensionEventsReply

type GetSelectedExtensionEventsReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	NumThisClasses uint16
	NumAllClasses  uint16
	// padding: 20 bytes
	ThisClasses []EventClass // size: xgb.Pad((int(NumThisClasses) * 4))
	AllClasses  []EventClass // size: xgb.Pad((int(NumAllClasses) * 4))
}

GetSelectedExtensionEventsReply represents the data returned from a GetSelectedExtensionEvents request.

type GrabDeviceButtonCookie

type GrabDeviceButtonCookie struct {
	*xgb.Cookie
}

GrabDeviceButtonCookie is a cookie used only for GrabDeviceButton requests.

func GrabDeviceButton

func GrabDeviceButton(c *xgb.Conn, GrabWindow xproto.Window, GrabbedDevice byte, ModifierDevice byte, NumClasses uint16, Modifiers uint16, ThisDeviceMode byte, OtherDeviceMode byte, Button byte, OwnerEvents byte, Classes []EventClass) GrabDeviceButtonCookie

GrabDeviceButton sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func GrabDeviceButtonChecked

func GrabDeviceButtonChecked(c *xgb.Conn, GrabWindow xproto.Window, GrabbedDevice byte, ModifierDevice byte, NumClasses uint16, Modifiers uint16, ThisDeviceMode byte, OtherDeviceMode byte, Button byte, OwnerEvents byte, Classes []EventClass) GrabDeviceButtonCookie

GrabDeviceButtonChecked sends a checked request. If an error occurs, it can be retrieved using GrabDeviceButtonCookie.Check()

func (GrabDeviceButtonCookie) Check

func (cook GrabDeviceButtonCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type GrabDeviceCookie

type GrabDeviceCookie struct {
	*xgb.Cookie
}

GrabDeviceCookie is a cookie used only for GrabDevice requests.

func GrabDevice

func GrabDevice(c *xgb.Conn, GrabWindow xproto.Window, Time xproto.Timestamp, NumClasses uint16, ThisDeviceMode byte, OtherDeviceMode byte, OwnerEvents bool, DeviceId byte, Classes []EventClass) GrabDeviceCookie

GrabDevice sends a checked request. If an error occurs, it will be returned with the reply by calling GrabDeviceCookie.Reply()

func GrabDeviceUnchecked

func GrabDeviceUnchecked(c *xgb.Conn, GrabWindow xproto.Window, Time xproto.Timestamp, NumClasses uint16, ThisDeviceMode byte, OtherDeviceMode byte, OwnerEvents bool, DeviceId byte, Classes []EventClass) GrabDeviceCookie

GrabDeviceUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GrabDeviceCookie) Reply

func (cook GrabDeviceCookie) Reply() (*GrabDeviceReply, error)

Reply blocks and returns the reply data for a GrabDevice request.

type GrabDeviceKeyCookie

type GrabDeviceKeyCookie struct {
	*xgb.Cookie
}

GrabDeviceKeyCookie is a cookie used only for GrabDeviceKey requests.

func GrabDeviceKey

func GrabDeviceKey(c *xgb.Conn, GrabWindow xproto.Window, NumClasses uint16, Modifiers uint16, ModifierDevice byte, GrabbedDevice byte, Key byte, ThisDeviceMode byte, OtherDeviceMode byte, OwnerEvents bool, Classes []EventClass) GrabDeviceKeyCookie

GrabDeviceKey sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func GrabDeviceKeyChecked

func GrabDeviceKeyChecked(c *xgb.Conn, GrabWindow xproto.Window, NumClasses uint16, Modifiers uint16, ModifierDevice byte, GrabbedDevice byte, Key byte, ThisDeviceMode byte, OtherDeviceMode byte, OwnerEvents bool, Classes []EventClass) GrabDeviceKeyCookie

GrabDeviceKeyChecked sends a checked request. If an error occurs, it can be retrieved using GrabDeviceKeyCookie.Check()

func (GrabDeviceKeyCookie) Check

func (cook GrabDeviceKeyCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type GrabDeviceReply

type GrabDeviceReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Status byte
}

GrabDeviceReply represents the data returned from a GrabDevice request.

type InputClassInfo

type InputClassInfo struct {
	ClassId       byte
	EventTypeBase byte
}

func (InputClassInfo) Bytes

func (v InputClassInfo) Bytes() []byte

Bytes writes a InputClassInfo value to a byte slice.

type InputInfo

type InputInfo struct {
	ClassId byte
	Len     byte
}

func (InputInfo) Bytes

func (v InputInfo) Bytes() []byte

Bytes writes a InputInfo value to a byte slice.

type InputState

type InputState struct {
	ClassId  byte
	Len      byte
	NumItems byte
}

func (InputState) Bytes

func (v InputState) Bytes() []byte

Bytes writes a InputState value to a byte slice.

type IntegerFeedbackCtl

type IntegerFeedbackCtl struct {
	ClassId      byte
	Id           byte
	Len          uint16
	IntToDisplay int32
}

func (IntegerFeedbackCtl) Bytes

func (v IntegerFeedbackCtl) Bytes() []byte

Bytes writes a IntegerFeedbackCtl value to a byte slice.

type IntegerFeedbackState

type IntegerFeedbackState struct {
	ClassId    byte
	Id         byte
	Len        uint16
	Resolution uint32
	MinValue   int32
	MaxValue   int32
}

func (IntegerFeedbackState) Bytes

func (v IntegerFeedbackState) Bytes() []byte

Bytes writes a IntegerFeedbackState value to a byte slice.

type KbdFeedbackCtl

type KbdFeedbackCtl struct {
	ClassId         byte
	Id              byte
	Len             uint16
	Key             KeyCode
	AutoRepeatMode  byte
	KeyClickPercent int8
	BellPercent     int8
	BellPitch       int16
	BellDuration    int16
	LedMask         uint32
	LedValues       uint32
}

func (KbdFeedbackCtl) Bytes

func (v KbdFeedbackCtl) Bytes() []byte

Bytes writes a KbdFeedbackCtl value to a byte slice.

type KbdFeedbackState

type KbdFeedbackState struct {
	ClassId          byte
	Id               byte
	Len              uint16
	Pitch            uint16
	Duration         uint16
	LedMask          uint32
	LedValues        uint32
	GlobalAutoRepeat bool
	Click            byte
	Percent          byte
	// padding: 1 bytes
	AutoRepeats []byte // size: 32
}

func (KbdFeedbackState) Bytes

func (v KbdFeedbackState) Bytes() []byte

Bytes writes a KbdFeedbackState value to a byte slice.

type KeyCode

type KeyCode byte

type KeyInfo

type KeyInfo struct {
	ClassId    byte
	Len        byte
	MinKeycode KeyCode
	MaxKeycode KeyCode
	NumKeys    uint16
}

func (KeyInfo) Bytes

func (v KeyInfo) Bytes() []byte

Bytes writes a KeyInfo value to a byte slice.

type KeyState

type KeyState struct {
	ClassId byte
	Len     byte
	NumKeys byte
	// padding: 1 bytes
	Keys []byte // size: 32
}

func (KeyState) Bytes

func (v KeyState) Bytes() []byte

Bytes writes a KeyState value to a byte slice.

type LedFeedbackCtl

type LedFeedbackCtl struct {
	ClassId   byte
	Id        byte
	Len       uint16
	LedMask   uint32
	LedValues uint32
}

func (LedFeedbackCtl) Bytes

func (v LedFeedbackCtl) Bytes() []byte

Bytes writes a LedFeedbackCtl value to a byte slice.

type LedFeedbackState

type LedFeedbackState struct {
	ClassId   byte
	Id        byte
	Len       uint16
	LedMask   uint32
	LedValues uint32
}

func (LedFeedbackState) Bytes

func (v LedFeedbackState) Bytes() []byte

Bytes writes a LedFeedbackState value to a byte slice.

type ListInputDevicesCookie

type ListInputDevicesCookie struct {
	*xgb.Cookie
}

ListInputDevicesCookie is a cookie used only for ListInputDevices requests.

func ListInputDevices

func ListInputDevices(c *xgb.Conn) ListInputDevicesCookie

ListInputDevices sends a checked request. If an error occurs, it will be returned with the reply by calling ListInputDevicesCookie.Reply()

func ListInputDevicesUnchecked

func ListInputDevicesUnchecked(c *xgb.Conn) ListInputDevicesCookie

ListInputDevicesUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (ListInputDevicesCookie) Reply

Reply blocks and returns the reply data for a ListInputDevices request.

type ListInputDevicesReply

type ListInputDevicesReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	DevicesLen byte
	// padding: 23 bytes
	Devices []DeviceInfo // size: xgb.Pad((int(DevicesLen) * 8))
}

ListInputDevicesReply represents the data returned from a ListInputDevices request.

type ModeError

type ModeError struct {
	Sequence uint16
	NiceName string
}

func (ModeError) BadId

func (err ModeError) BadId() uint32

BadId returns the 'BadValue' number if one exists for the BadMode error. If no bad value exists, 0 is returned.

func (ModeError) Error

func (err ModeError) Error() string

func (ModeError) SequenceId

func (err ModeError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadMode error. This is mostly used internally.

type OpenDeviceCookie

type OpenDeviceCookie struct {
	*xgb.Cookie
}

OpenDeviceCookie is a cookie used only for OpenDevice requests.

func OpenDevice

func OpenDevice(c *xgb.Conn, DeviceId byte) OpenDeviceCookie

OpenDevice sends a checked request. If an error occurs, it will be returned with the reply by calling OpenDeviceCookie.Reply()

func OpenDeviceUnchecked

func OpenDeviceUnchecked(c *xgb.Conn, DeviceId byte) OpenDeviceCookie

OpenDeviceUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (OpenDeviceCookie) Reply

func (cook OpenDeviceCookie) Reply() (*OpenDeviceReply, error)

Reply blocks and returns the reply data for a OpenDevice request.

type OpenDeviceReply

type OpenDeviceReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	NumClasses byte
	// padding: 23 bytes
	ClassInfo []InputClassInfo // size: xgb.Pad((int(NumClasses) * 2))
}

OpenDeviceReply represents the data returned from a OpenDevice request.

type ProximityInEvent

type ProximityInEvent DeviceKeyPressEvent

func (ProximityInEvent) Bytes

func (v ProximityInEvent) Bytes() []byte

Bytes writes a ProximityInEvent value to a byte slice.

func (ProximityInEvent) SequenceId

func (v ProximityInEvent) SequenceId() uint16

SequenceId returns the sequence id attached to the ProximityIn event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

func (ProximityInEvent) String

func (v ProximityInEvent) String() string

type ProximityOutEvent

type ProximityOutEvent DeviceKeyPressEvent

func (ProximityOutEvent) Bytes

func (v ProximityOutEvent) Bytes() []byte

Bytes writes a ProximityOutEvent value to a byte slice.

func (ProximityOutEvent) SequenceId

func (v ProximityOutEvent) SequenceId() uint16

SequenceId returns the sequence id attached to the ProximityOut event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

func (ProximityOutEvent) String

func (v ProximityOutEvent) String() string

type PtrFeedbackCtl

type PtrFeedbackCtl struct {
	ClassId byte
	Id      byte
	Len     uint16
	// padding: 2 bytes
	Num       int16
	Denom     int16
	Threshold int16
}

func (PtrFeedbackCtl) Bytes

func (v PtrFeedbackCtl) Bytes() []byte

Bytes writes a PtrFeedbackCtl value to a byte slice.

type PtrFeedbackState

type PtrFeedbackState struct {
	ClassId byte
	Id      byte
	Len     uint16
	// padding: 2 bytes
	AccelNum   uint16
	AccelDenom uint16
	Threshold  uint16
}

func (PtrFeedbackState) Bytes

func (v PtrFeedbackState) Bytes() []byte

Bytes writes a PtrFeedbackState value to a byte slice.

type QueryDeviceStateCookie

type QueryDeviceStateCookie struct {
	*xgb.Cookie
}

QueryDeviceStateCookie is a cookie used only for QueryDeviceState requests.

func QueryDeviceState

func QueryDeviceState(c *xgb.Conn, DeviceId byte) QueryDeviceStateCookie

QueryDeviceState sends a checked request. If an error occurs, it will be returned with the reply by calling QueryDeviceStateCookie.Reply()

func QueryDeviceStateUnchecked

func QueryDeviceStateUnchecked(c *xgb.Conn, DeviceId byte) QueryDeviceStateCookie

QueryDeviceStateUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (QueryDeviceStateCookie) Reply

Reply blocks and returns the reply data for a QueryDeviceState request.

type QueryDeviceStateReply

type QueryDeviceStateReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	NumClasses byte
}

QueryDeviceStateReply represents the data returned from a QueryDeviceState request.

type SelectExtensionEventCookie

type SelectExtensionEventCookie struct {
	*xgb.Cookie
}

SelectExtensionEventCookie is a cookie used only for SelectExtensionEvent requests.

func SelectExtensionEvent

func SelectExtensionEvent(c *xgb.Conn, Window xproto.Window, NumClasses uint16, Classes []EventClass) SelectExtensionEventCookie

SelectExtensionEvent sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SelectExtensionEventChecked

func SelectExtensionEventChecked(c *xgb.Conn, Window xproto.Window, NumClasses uint16, Classes []EventClass) SelectExtensionEventCookie

SelectExtensionEventChecked sends a checked request. If an error occurs, it can be retrieved using SelectExtensionEventCookie.Check()

func (SelectExtensionEventCookie) Check

func (cook SelectExtensionEventCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type SendExtensionEventCookie

type SendExtensionEventCookie struct {
	*xgb.Cookie
}

SendExtensionEventCookie is a cookie used only for SendExtensionEvent requests.

func SendExtensionEvent

func SendExtensionEvent(c *xgb.Conn, Destination xproto.Window, DeviceId byte, Propagate bool, NumClasses uint16, NumEvents byte, Events string, Classes []EventClass) SendExtensionEventCookie

SendExtensionEvent sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SendExtensionEventChecked

func SendExtensionEventChecked(c *xgb.Conn, Destination xproto.Window, DeviceId byte, Propagate bool, NumClasses uint16, NumEvents byte, Events string, Classes []EventClass) SendExtensionEventCookie

SendExtensionEventChecked sends a checked request. If an error occurs, it can be retrieved using SendExtensionEventCookie.Check()

func (SendExtensionEventCookie) Check

func (cook SendExtensionEventCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type SetDeviceButtonMappingCookie

type SetDeviceButtonMappingCookie struct {
	*xgb.Cookie
}

SetDeviceButtonMappingCookie is a cookie used only for SetDeviceButtonMapping requests.

func SetDeviceButtonMapping

func SetDeviceButtonMapping(c *xgb.Conn, DeviceId byte, MapSize byte, Map []byte) SetDeviceButtonMappingCookie

SetDeviceButtonMapping sends a checked request. If an error occurs, it will be returned with the reply by calling SetDeviceButtonMappingCookie.Reply()

func SetDeviceButtonMappingUnchecked

func SetDeviceButtonMappingUnchecked(c *xgb.Conn, DeviceId byte, MapSize byte, Map []byte) SetDeviceButtonMappingCookie

SetDeviceButtonMappingUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (SetDeviceButtonMappingCookie) Reply

Reply blocks and returns the reply data for a SetDeviceButtonMapping request.

type SetDeviceButtonMappingReply

type SetDeviceButtonMappingReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Status byte
}

SetDeviceButtonMappingReply represents the data returned from a SetDeviceButtonMapping request.

type SetDeviceFocusCookie

type SetDeviceFocusCookie struct {
	*xgb.Cookie
}

SetDeviceFocusCookie is a cookie used only for SetDeviceFocus requests.

func SetDeviceFocus

func SetDeviceFocus(c *xgb.Conn, Focus xproto.Window, Time xproto.Timestamp, RevertTo byte, DeviceId byte) SetDeviceFocusCookie

SetDeviceFocus sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetDeviceFocusChecked

func SetDeviceFocusChecked(c *xgb.Conn, Focus xproto.Window, Time xproto.Timestamp, RevertTo byte, DeviceId byte) SetDeviceFocusCookie

SetDeviceFocusChecked sends a checked request. If an error occurs, it can be retrieved using SetDeviceFocusCookie.Check()

func (SetDeviceFocusCookie) Check

func (cook SetDeviceFocusCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type SetDeviceModeCookie

type SetDeviceModeCookie struct {
	*xgb.Cookie
}

SetDeviceModeCookie is a cookie used only for SetDeviceMode requests.

func SetDeviceMode

func SetDeviceMode(c *xgb.Conn, DeviceId byte, Mode byte) SetDeviceModeCookie

SetDeviceMode sends a checked request. If an error occurs, it will be returned with the reply by calling SetDeviceModeCookie.Reply()

func SetDeviceModeUnchecked

func SetDeviceModeUnchecked(c *xgb.Conn, DeviceId byte, Mode byte) SetDeviceModeCookie

SetDeviceModeUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (SetDeviceModeCookie) Reply

func (cook SetDeviceModeCookie) Reply() (*SetDeviceModeReply, error)

Reply blocks and returns the reply data for a SetDeviceMode request.

type SetDeviceModeReply

type SetDeviceModeReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Status byte
}

SetDeviceModeReply represents the data returned from a SetDeviceMode request.

type SetDeviceModifierMappingCookie

type SetDeviceModifierMappingCookie struct {
	*xgb.Cookie
}

SetDeviceModifierMappingCookie is a cookie used only for SetDeviceModifierMapping requests.

func SetDeviceModifierMapping

func SetDeviceModifierMapping(c *xgb.Conn, DeviceId byte, KeycodesPerModifier byte, Keymaps []byte) SetDeviceModifierMappingCookie

SetDeviceModifierMapping sends a checked request. If an error occurs, it will be returned with the reply by calling SetDeviceModifierMappingCookie.Reply()

func SetDeviceModifierMappingUnchecked

func SetDeviceModifierMappingUnchecked(c *xgb.Conn, DeviceId byte, KeycodesPerModifier byte, Keymaps []byte) SetDeviceModifierMappingCookie

SetDeviceModifierMappingUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (SetDeviceModifierMappingCookie) Reply

Reply blocks and returns the reply data for a SetDeviceModifierMapping request.

type SetDeviceModifierMappingReply

type SetDeviceModifierMappingReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Status byte
}

SetDeviceModifierMappingReply represents the data returned from a SetDeviceModifierMapping request.

type SetDeviceValuatorsCookie

type SetDeviceValuatorsCookie struct {
	*xgb.Cookie
}

SetDeviceValuatorsCookie is a cookie used only for SetDeviceValuators requests.

func SetDeviceValuators

func SetDeviceValuators(c *xgb.Conn, DeviceId byte, FirstValuator byte, NumValuators byte, Valuators []int32) SetDeviceValuatorsCookie

SetDeviceValuators sends a checked request. If an error occurs, it will be returned with the reply by calling SetDeviceValuatorsCookie.Reply()

func SetDeviceValuatorsUnchecked

func SetDeviceValuatorsUnchecked(c *xgb.Conn, DeviceId byte, FirstValuator byte, NumValuators byte, Valuators []int32) SetDeviceValuatorsCookie

SetDeviceValuatorsUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (SetDeviceValuatorsCookie) Reply

Reply blocks and returns the reply data for a SetDeviceValuators request.

type SetDeviceValuatorsReply

type SetDeviceValuatorsReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Status byte
}

SetDeviceValuatorsReply represents the data returned from a SetDeviceValuators request.

type StringFeedbackCtl

type StringFeedbackCtl struct {
	ClassId byte
	Id      byte
	Len     uint16
	// padding: 2 bytes
	NumKeysyms uint16
	Keysyms    []xproto.Keysym // size: xgb.Pad((int(NumKeysyms) * 4))
}

func (StringFeedbackCtl) Bytes

func (v StringFeedbackCtl) Bytes() []byte

Bytes writes a StringFeedbackCtl value to a byte slice.

type StringFeedbackState

type StringFeedbackState struct {
	ClassId    byte
	Id         byte
	Len        uint16
	MaxSymbols uint16
	NumKeysyms uint16
	Keysyms    []xproto.Keysym // size: xgb.Pad((int(NumKeysyms) * 4))
}

func (StringFeedbackState) Bytes

func (v StringFeedbackState) Bytes() []byte

Bytes writes a StringFeedbackState value to a byte slice.

type UngrabDeviceButtonCookie

type UngrabDeviceButtonCookie struct {
	*xgb.Cookie
}

UngrabDeviceButtonCookie is a cookie used only for UngrabDeviceButton requests.

func UngrabDeviceButton

func UngrabDeviceButton(c *xgb.Conn, GrabWindow xproto.Window, Modifiers uint16, ModifierDevice byte, Button byte, GrabbedDevice byte) UngrabDeviceButtonCookie

UngrabDeviceButton sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func UngrabDeviceButtonChecked

func UngrabDeviceButtonChecked(c *xgb.Conn, GrabWindow xproto.Window, Modifiers uint16, ModifierDevice byte, Button byte, GrabbedDevice byte) UngrabDeviceButtonCookie

UngrabDeviceButtonChecked sends a checked request. If an error occurs, it can be retrieved using UngrabDeviceButtonCookie.Check()

func (UngrabDeviceButtonCookie) Check

func (cook UngrabDeviceButtonCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type UngrabDeviceCookie

type UngrabDeviceCookie struct {
	*xgb.Cookie
}

UngrabDeviceCookie is a cookie used only for UngrabDevice requests.

func UngrabDevice

func UngrabDevice(c *xgb.Conn, Time xproto.Timestamp, DeviceId byte) UngrabDeviceCookie

UngrabDevice sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func UngrabDeviceChecked

func UngrabDeviceChecked(c *xgb.Conn, Time xproto.Timestamp, DeviceId byte) UngrabDeviceCookie

UngrabDeviceChecked sends a checked request. If an error occurs, it can be retrieved using UngrabDeviceCookie.Check()

func (UngrabDeviceCookie) Check

func (cook UngrabDeviceCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type UngrabDeviceKeyCookie

type UngrabDeviceKeyCookie struct {
	*xgb.Cookie
}

UngrabDeviceKeyCookie is a cookie used only for UngrabDeviceKey requests.

func UngrabDeviceKey

func UngrabDeviceKey(c *xgb.Conn, GrabWindow xproto.Window, Modifiers uint16, ModifierDevice byte, Key byte, GrabbedDevice byte) UngrabDeviceKeyCookie

UngrabDeviceKey sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func UngrabDeviceKeyChecked

func UngrabDeviceKeyChecked(c *xgb.Conn, GrabWindow xproto.Window, Modifiers uint16, ModifierDevice byte, Key byte, GrabbedDevice byte) UngrabDeviceKeyCookie

UngrabDeviceKeyChecked sends a checked request. If an error occurs, it can be retrieved using UngrabDeviceKeyCookie.Check()

func (UngrabDeviceKeyCookie) Check

func (cook UngrabDeviceKeyCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type ValuatorInfo

type ValuatorInfo struct {
	ClassId    byte
	Len        byte
	AxesLen    byte
	Mode       byte
	MotionSize uint32
	Axes       []AxisInfo // size: xgb.Pad((int(AxesLen) * 12))
}

func (ValuatorInfo) Bytes

func (v ValuatorInfo) Bytes() []byte

Bytes writes a ValuatorInfo value to a byte slice.

type ValuatorState

type ValuatorState struct {
	ClassId      byte
	Len          byte
	NumValuators byte
	Mode         byte
	Valuators    []uint32 // size: xgb.Pad((int(NumValuators) * 4))
}

func (ValuatorState) Bytes

func (v ValuatorState) Bytes() []byte

Bytes writes a ValuatorState value to a byte slice.

Jump to

Keyboard shortcuts

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