Documentation ¶
Overview ¶
Package xinput is the X client API for the XInputExtension extension.
Index ¶
- Constants
- func AxisInfoListBytes(buf []byte, list []AxisInfo) int
- func AxisInfoRead(buf []byte, v *AxisInfo) int
- func AxisInfoReadList(buf []byte, dest []AxisInfo) int
- func BellFeedbackCtlListBytes(buf []byte, list []BellFeedbackCtl) int
- func BellFeedbackCtlRead(buf []byte, v *BellFeedbackCtl) int
- func BellFeedbackCtlReadList(buf []byte, dest []BellFeedbackCtl) int
- func BellFeedbackStateListBytes(buf []byte, list []BellFeedbackState) int
- func BellFeedbackStateRead(buf []byte, v *BellFeedbackState) int
- func BellFeedbackStateReadList(buf []byte, dest []BellFeedbackState) int
- func ButtonInfoListBytes(buf []byte, list []ButtonInfo) int
- func ButtonInfoRead(buf []byte, v *ButtonInfo) int
- func ButtonInfoReadList(buf []byte, dest []ButtonInfo) int
- func ButtonStateListBytes(buf []byte, list []ButtonState) int
- func ButtonStateListSize(list []ButtonState) int
- func ButtonStateRead(buf []byte, v *ButtonState) int
- func ButtonStateReadList(buf []byte, dest []ButtonState) int
- func ChangeDeviceNotifyEventNew(buf []byte) xgb.Event
- func ClassErrorNew(buf []byte) xgb.Error
- func DeviceAbsAreaCtrlListBytes(buf []byte, list []DeviceAbsAreaCtrl) int
- func DeviceAbsAreaCtrlRead(buf []byte, v *DeviceAbsAreaCtrl) int
- func DeviceAbsAreaCtrlReadList(buf []byte, dest []DeviceAbsAreaCtrl) int
- func DeviceAbsAreaStateListBytes(buf []byte, list []DeviceAbsAreaState) int
- func DeviceAbsAreaStateRead(buf []byte, v *DeviceAbsAreaState) int
- func DeviceAbsAreaStateReadList(buf []byte, dest []DeviceAbsAreaState) int
- func DeviceAbsCalibCtlListBytes(buf []byte, list []DeviceAbsCalibCtl) int
- func DeviceAbsCalibCtlRead(buf []byte, v *DeviceAbsCalibCtl) int
- func DeviceAbsCalibCtlReadList(buf []byte, dest []DeviceAbsCalibCtl) int
- func DeviceAbsCalibStateListBytes(buf []byte, list []DeviceAbsCalibState) int
- func DeviceAbsCalibStateRead(buf []byte, v *DeviceAbsCalibState) int
- func DeviceAbsCalibStateReadList(buf []byte, dest []DeviceAbsCalibState) int
- func DeviceBusyErrorNew(buf []byte) xgb.Error
- func DeviceButtonPressEventNew(buf []byte) xgb.Event
- func DeviceButtonReleaseEventNew(buf []byte) xgb.Event
- func DeviceButtonStateNotifyEventNew(buf []byte) xgb.Event
- func DeviceCoreCtrlListBytes(buf []byte, list []DeviceCoreCtrl) int
- func DeviceCoreCtrlRead(buf []byte, v *DeviceCoreCtrl) int
- func DeviceCoreCtrlReadList(buf []byte, dest []DeviceCoreCtrl) int
- func DeviceCoreStateListBytes(buf []byte, list []DeviceCoreState) int
- func DeviceCoreStateRead(buf []byte, v *DeviceCoreState) int
- func DeviceCoreStateReadList(buf []byte, dest []DeviceCoreState) int
- func DeviceCtlListBytes(buf []byte, list []DeviceCtl) int
- func DeviceCtlRead(buf []byte, v *DeviceCtl) int
- func DeviceCtlReadList(buf []byte, dest []DeviceCtl) int
- func DeviceEnableCtrlListBytes(buf []byte, list []DeviceEnableCtrl) int
- func DeviceEnableCtrlRead(buf []byte, v *DeviceEnableCtrl) int
- func DeviceEnableCtrlReadList(buf []byte, dest []DeviceEnableCtrl) int
- func DeviceEnableStateListBytes(buf []byte, list []DeviceEnableState) int
- func DeviceEnableStateRead(buf []byte, v *DeviceEnableState) int
- func DeviceEnableStateReadList(buf []byte, dest []DeviceEnableState) int
- func DeviceErrorNew(buf []byte) xgb.Error
- func DeviceInfoListBytes(buf []byte, list []DeviceInfo) int
- func DeviceInfoRead(buf []byte, v *DeviceInfo) int
- func DeviceInfoReadList(buf []byte, dest []DeviceInfo) int
- func DeviceKeyPressEventNew(buf []byte) xgb.Event
- func DeviceKeyReleaseEventNew(buf []byte) xgb.Event
- func DeviceKeyStateNotifyEventNew(buf []byte) xgb.Event
- func DeviceMappingNotifyEventNew(buf []byte) xgb.Event
- func DeviceMotionNotifyEventNew(buf []byte) xgb.Event
- func DevicePresenceNotifyEventNew(buf []byte) xgb.Event
- func DeviceResolutionCtlListBytes(buf []byte, list []DeviceResolutionCtl) int
- func DeviceResolutionCtlListSize(list []DeviceResolutionCtl) int
- func DeviceResolutionCtlRead(buf []byte, v *DeviceResolutionCtl) int
- func DeviceResolutionCtlReadList(buf []byte, dest []DeviceResolutionCtl) int
- func DeviceResolutionStateListBytes(buf []byte, list []DeviceResolutionState) int
- func DeviceResolutionStateListSize(list []DeviceResolutionState) int
- func DeviceResolutionStateRead(buf []byte, v *DeviceResolutionState) int
- func DeviceResolutionStateReadList(buf []byte, dest []DeviceResolutionState) int
- func DeviceStateListBytes(buf []byte, list []DeviceState) int
- func DeviceStateNotifyEventNew(buf []byte) xgb.Event
- func DeviceStateRead(buf []byte, v *DeviceState) int
- func DeviceStateReadList(buf []byte, dest []DeviceState) int
- func DeviceTimeCoordListBytes(buf []byte, list []DeviceTimeCoord) int
- func DeviceTimeCoordRead(buf []byte, v *DeviceTimeCoord) int
- func DeviceTimeCoordReadList(buf []byte, dest []DeviceTimeCoord) int
- func DeviceValuatorEventNew(buf []byte) xgb.Event
- func EventErrorNew(buf []byte) xgb.Error
- func FeedbackCtlListBytes(buf []byte, list []FeedbackCtl) int
- func FeedbackCtlRead(buf []byte, v *FeedbackCtl) int
- func FeedbackCtlReadList(buf []byte, dest []FeedbackCtl) int
- func FeedbackStateListBytes(buf []byte, list []FeedbackState) int
- func FeedbackStateRead(buf []byte, v *FeedbackState) int
- func FeedbackStateReadList(buf []byte, dest []FeedbackState) int
- func FocusInEventNew(buf []byte) xgb.Event
- func FocusOutEventNew(buf []byte) xgb.Event
- func Init(c *xgb.Conn) error
- func InputClassInfoListBytes(buf []byte, list []InputClassInfo) int
- func InputClassInfoRead(buf []byte, v *InputClassInfo) int
- func InputClassInfoReadList(buf []byte, dest []InputClassInfo) int
- func InputInfoListBytes(buf []byte, list []InputInfo) int
- func InputInfoRead(buf []byte, v *InputInfo) int
- func InputInfoReadList(buf []byte, dest []InputInfo) int
- func InputStateListBytes(buf []byte, list []InputState) int
- func InputStateRead(buf []byte, v *InputState) int
- func InputStateReadList(buf []byte, dest []InputState) int
- func IntegerFeedbackCtlListBytes(buf []byte, list []IntegerFeedbackCtl) int
- func IntegerFeedbackCtlRead(buf []byte, v *IntegerFeedbackCtl) int
- func IntegerFeedbackCtlReadList(buf []byte, dest []IntegerFeedbackCtl) int
- func IntegerFeedbackStateListBytes(buf []byte, list []IntegerFeedbackState) int
- func IntegerFeedbackStateRead(buf []byte, v *IntegerFeedbackState) int
- func IntegerFeedbackStateReadList(buf []byte, dest []IntegerFeedbackState) int
- func KbdFeedbackCtlListBytes(buf []byte, list []KbdFeedbackCtl) int
- func KbdFeedbackCtlRead(buf []byte, v *KbdFeedbackCtl) int
- func KbdFeedbackCtlReadList(buf []byte, dest []KbdFeedbackCtl) int
- func KbdFeedbackStateListBytes(buf []byte, list []KbdFeedbackState) int
- func KbdFeedbackStateListSize(list []KbdFeedbackState) int
- func KbdFeedbackStateRead(buf []byte, v *KbdFeedbackState) int
- func KbdFeedbackStateReadList(buf []byte, dest []KbdFeedbackState) int
- func KeyInfoListBytes(buf []byte, list []KeyInfo) int
- func KeyInfoRead(buf []byte, v *KeyInfo) int
- func KeyInfoReadList(buf []byte, dest []KeyInfo) int
- func KeyStateListBytes(buf []byte, list []KeyState) int
- func KeyStateListSize(list []KeyState) int
- func KeyStateRead(buf []byte, v *KeyState) int
- func KeyStateReadList(buf []byte, dest []KeyState) int
- func LedFeedbackCtlListBytes(buf []byte, list []LedFeedbackCtl) int
- func LedFeedbackCtlRead(buf []byte, v *LedFeedbackCtl) int
- func LedFeedbackCtlReadList(buf []byte, dest []LedFeedbackCtl) int
- func LedFeedbackStateListBytes(buf []byte, list []LedFeedbackState) int
- func LedFeedbackStateRead(buf []byte, v *LedFeedbackState) int
- func LedFeedbackStateReadList(buf []byte, dest []LedFeedbackState) int
- func ModeErrorNew(buf []byte) xgb.Error
- func ProximityInEventNew(buf []byte) xgb.Event
- func ProximityOutEventNew(buf []byte) xgb.Event
- func PtrFeedbackCtlListBytes(buf []byte, list []PtrFeedbackCtl) int
- func PtrFeedbackCtlRead(buf []byte, v *PtrFeedbackCtl) int
- func PtrFeedbackCtlReadList(buf []byte, dest []PtrFeedbackCtl) int
- func PtrFeedbackStateListBytes(buf []byte, list []PtrFeedbackState) int
- func PtrFeedbackStateRead(buf []byte, v *PtrFeedbackState) int
- func PtrFeedbackStateReadList(buf []byte, dest []PtrFeedbackState) int
- func StringFeedbackCtlListBytes(buf []byte, list []StringFeedbackCtl) int
- func StringFeedbackCtlListSize(list []StringFeedbackCtl) int
- func StringFeedbackCtlRead(buf []byte, v *StringFeedbackCtl) int
- func StringFeedbackCtlReadList(buf []byte, dest []StringFeedbackCtl) int
- func StringFeedbackStateListBytes(buf []byte, list []StringFeedbackState) int
- func StringFeedbackStateListSize(list []StringFeedbackState) int
- func StringFeedbackStateRead(buf []byte, v *StringFeedbackState) int
- func StringFeedbackStateReadList(buf []byte, dest []StringFeedbackState) int
- func ValuatorInfoListBytes(buf []byte, list []ValuatorInfo) int
- func ValuatorInfoListSize(list []ValuatorInfo) int
- func ValuatorInfoRead(buf []byte, v *ValuatorInfo) int
- func ValuatorInfoReadList(buf []byte, dest []ValuatorInfo) int
- func ValuatorStateListBytes(buf []byte, list []ValuatorState) int
- func ValuatorStateListSize(list []ValuatorState) int
- func ValuatorStateRead(buf []byte, v *ValuatorState) int
- func ValuatorStateReadList(buf []byte, dest []ValuatorState) int
- type AllowDeviceEventsCookie
- type AxisInfo
- type BellFeedbackCtl
- type BellFeedbackState
- type ButtonInfo
- type ButtonState
- type ChangeDeviceDontPropagateListCookie
- type ChangeDeviceKeyMappingCookie
- type ChangeDeviceNotifyEvent
- type ChangeKeyboardDeviceCookie
- type ChangeKeyboardDeviceReply
- type ChangePointerDeviceCookie
- type ChangePointerDeviceReply
- type ClassError
- type CloseDeviceCookie
- type DeviceAbsAreaCtrl
- type DeviceAbsAreaState
- type DeviceAbsCalibCtl
- type DeviceAbsCalibState
- type DeviceBellCookie
- type DeviceBusyError
- type DeviceButtonPressEvent
- type DeviceButtonReleaseEvent
- type DeviceButtonStateNotifyEvent
- type DeviceCoreCtrl
- type DeviceCoreState
- type DeviceCtl
- type DeviceEnableCtrl
- type DeviceEnableState
- type DeviceError
- type DeviceInfo
- type DeviceKeyPressEvent
- type DeviceKeyReleaseEvent
- type DeviceKeyStateNotifyEvent
- type DeviceMappingNotifyEvent
- type DeviceMotionNotifyEvent
- type DevicePresenceNotifyEvent
- type DeviceResolutionCtl
- type DeviceResolutionState
- type DeviceState
- type DeviceStateNotifyEvent
- type DeviceTimeCoord
- type DeviceValuatorEvent
- type EventClass
- type EventError
- type FeedbackCtl
- type FeedbackState
- type FocusInEvent
- type FocusOutEvent
- type GetDeviceButtonMappingCookie
- type GetDeviceButtonMappingReply
- type GetDeviceControlCookie
- type GetDeviceControlReply
- type GetDeviceDontPropagateListCookie
- type GetDeviceDontPropagateListReply
- type GetDeviceFocusCookie
- type GetDeviceFocusReply
- type GetDeviceKeyMappingCookie
- type GetDeviceKeyMappingReply
- type GetDeviceModifierMappingCookie
- type GetDeviceModifierMappingReply
- type GetDeviceMotionEventsCookie
- type GetDeviceMotionEventsReply
- type GetExtensionVersionCookie
- type GetExtensionVersionReply
- type GetFeedbackControlCookie
- type GetFeedbackControlReply
- type GetSelectedExtensionEventsCookie
- type GetSelectedExtensionEventsReply
- type GrabDeviceButtonCookie
- type GrabDeviceCookie
- type GrabDeviceKeyCookie
- type GrabDeviceReply
- type InputClassInfo
- type InputInfo
- type InputState
- type IntegerFeedbackCtl
- type IntegerFeedbackState
- type KbdFeedbackCtl
- type KbdFeedbackState
- type KeyCode
- type KeyInfo
- type KeyState
- type LedFeedbackCtl
- type LedFeedbackState
- type ListInputDevicesCookie
- type ListInputDevicesReply
- type ModeError
- type OpenDeviceCookie
- type OpenDeviceReply
- type ProximityInEvent
- type ProximityOutEvent
- type PtrFeedbackCtl
- type PtrFeedbackState
- type QueryDeviceStateCookie
- type QueryDeviceStateReply
- type SelectExtensionEventCookie
- type SendExtensionEventCookie
- type SetDeviceButtonMappingCookie
- type SetDeviceButtonMappingReply
- type SetDeviceFocusCookie
- type SetDeviceModeCookie
- type SetDeviceModeReply
- type SetDeviceModifierMappingCookie
- type SetDeviceModifierMappingReply
- type SetDeviceValuatorsCookie
- type SetDeviceValuatorsReply
- type StringFeedbackCtl
- type StringFeedbackState
- type UngrabDeviceButtonCookie
- type UngrabDeviceCookie
- type UngrabDeviceKeyCookie
- type ValuatorInfo
- type ValuatorState
Constants ¶
const ( DeviceInputModeAsyncThisDevice = 0 DeviceInputModeSyncThisDevice = 1 DeviceInputModeReplayThisDevice = 2 DeviceInputModeAsyncOtherDevices = 3 DeviceInputModeAsyncAll = 4 DeviceInputModeSyncAll = 5 )
const ( DeviceUseIsXPointer = 0 DeviceUseIsXKeyboard = 1 DeviceUseIsXExtensionDevice = 2 DeviceUseIsXExtensionKeyboard = 3 DeviceUseIsXExtensionPointer = 4 )
const ( FeedbackClassKeyboard = 0 FeedbackClassPointer = 1 FeedbackClassString = 2 FeedbackClassInteger = 3 FeedbackClassLed = 4 FeedbackClassBell = 5 )
const ( InputClassKey = 0 InputClassButton = 1 InputClassValuator = 2 InputClassFeedback = 3 InputClassProximity = 4 InputClassFocus = 5 InputClassOther = 6 )
const ( PropagateModeAddToList = 0 PropagateModeDeleteFromList = 1 )
const ( ValuatorModeRelative = 0 ValuatorModeAbsolute = 1 )
const BadClass = 4
BadClass is the error number for a BadClass.
const BadDevice = 0
BadDevice is the error number for a BadDevice.
const BadDeviceBusy = 3
BadDeviceBusy is the error number for a BadDeviceBusy.
const BadEvent = 1
BadEvent is the error number for a BadEvent.
const BadMode = 2
BadMode is the error number for a BadMode.
const ChangeDeviceNotify = 12
ChangeDeviceNotify is the event number for a ChangeDeviceNotifyEvent.
const DeviceButtonPress = 3
DeviceButtonPress is the event number for a DeviceButtonPressEvent.
const DeviceButtonRelease = 4
DeviceButtonRelease is the event number for a DeviceButtonReleaseEvent.
const DeviceButtonStateNotify = 14
DeviceButtonStateNotify is the event number for a DeviceButtonStateNotifyEvent.
const DeviceKeyPress = 1
DeviceKeyPress is the event number for a DeviceKeyPressEvent.
const DeviceKeyRelease = 2
DeviceKeyRelease is the event number for a DeviceKeyReleaseEvent.
const DeviceKeyStateNotify = 13
DeviceKeyStateNotify is the event number for a DeviceKeyStateNotifyEvent.
const DeviceMappingNotify = 11
DeviceMappingNotify is the event number for a DeviceMappingNotifyEvent.
const DeviceMotionNotify = 5
DeviceMotionNotify is the event number for a DeviceMotionNotifyEvent.
const DevicePresenceNotify = 15
DevicePresenceNotify is the event number for a DevicePresenceNotifyEvent.
const DeviceStateNotify = 10
DeviceStateNotify is the event number for a DeviceStateNotifyEvent.
const DeviceValuator = 0
DeviceValuator is the event number for a DeviceValuatorEvent.
const FocusIn = 6
FocusIn is the event number for a FocusInEvent.
const FocusOut = 7
FocusOut is the event number for a FocusOutEvent.
const ProximityIn = 8
ProximityIn is the event number for a ProximityInEvent.
const ProximityOut = 9
ProximityOut is the event number for a ProximityOutEvent.
Variables ¶
This section is empty.
Functions ¶
func AxisInfoListBytes ¶
AxisInfoListBytes writes a list of AxisInfo values to a byte slice.
func AxisInfoRead ¶
AxisInfoRead reads a byte slice into a AxisInfo value.
func AxisInfoReadList ¶
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 ¶
ChangeDeviceNotifyEventNew constructs a ChangeDeviceNotifyEvent value that implements xgb.Event from a byte slice.
func ClassErrorNew ¶
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 ¶
DeviceBusyErrorNew constructs a DeviceBusyError value that implements xgb.Error from a byte slice.
func DeviceButtonPressEventNew ¶
DeviceButtonPressEventNew constructs a DeviceButtonPressEvent value that implements xgb.Event from a byte slice.
func DeviceButtonReleaseEventNew ¶
DeviceButtonReleaseEventNew constructs a DeviceButtonReleaseEvent value that implements xgb.Event from a byte slice.
func DeviceButtonStateNotifyEventNew ¶
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 ¶
DeviceCtlListBytes writes a list of DeviceCtl values to a byte slice.
func DeviceCtlRead ¶
DeviceCtlRead reads a byte slice into a DeviceCtl value.
func DeviceCtlReadList ¶
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 ¶
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 ¶
DeviceKeyPressEventNew constructs a DeviceKeyPressEvent value that implements xgb.Event from a byte slice.
func DeviceKeyReleaseEventNew ¶
DeviceKeyReleaseEventNew constructs a DeviceKeyReleaseEvent value that implements xgb.Event from a byte slice.
func DeviceKeyStateNotifyEventNew ¶
DeviceKeyStateNotifyEventNew constructs a DeviceKeyStateNotifyEvent value that implements xgb.Event from a byte slice.
func DeviceMappingNotifyEventNew ¶
DeviceMappingNotifyEventNew constructs a DeviceMappingNotifyEvent value that implements xgb.Event from a byte slice.
func DeviceMotionNotifyEventNew ¶
DeviceMotionNotifyEventNew constructs a DeviceMotionNotifyEvent value that implements xgb.Event from a byte slice.
func DevicePresenceNotifyEventNew ¶
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 ¶
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 ¶
DeviceValuatorEventNew constructs a DeviceValuatorEvent value that implements xgb.Event from a byte slice.
func EventErrorNew ¶
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 ¶
FocusInEventNew constructs a FocusInEvent value that implements xgb.Event from a byte slice.
func FocusOutEventNew ¶
FocusOutEventNew constructs a FocusOutEvent value that implements xgb.Event from a byte slice.
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 ¶
InputInfoListBytes writes a list of InputInfo values to a byte slice.
func InputInfoRead ¶
InputInfoRead reads a byte slice into a InputInfo value.
func InputInfoReadList ¶
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 ¶
KeyInfoListBytes writes a list of KeyInfo values to a byte slice.
func KeyInfoRead ¶
KeyInfoRead reads a byte slice into a KeyInfo value.
func KeyInfoReadList ¶
KeyInfoReadList reads a byte slice into a list of KeyInfo values.
func KeyStateListBytes ¶
KeyStateListBytes writes a list of KeyState values to a byte slice.
func KeyStateListSize ¶
KeyStateListSize computes the size (bytes) of a list of KeyState values.
func KeyStateRead ¶
KeyStateRead reads a byte slice into a KeyState value.
func KeyStateReadList ¶
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 ¶
ModeErrorNew constructs a ModeError value that implements xgb.Error from a byte slice.
func ProximityInEventNew ¶
ProximityInEventNew constructs a ProximityInEvent value that implements xgb.Event from a byte slice.
func ProximityOutEventNew ¶
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 ¶
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 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 ¶
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 ¶
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 ¶
func (cook ChangeDeviceDontPropagateListCookie) 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 ChangeDeviceKeyMappingCookie ¶
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 ¶
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 ¶
func (cook ChangeKeyboardDeviceCookie) Reply() (*ChangeKeyboardDeviceReply, error)
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 ¶
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 ¶
func (cook ChangePointerDeviceCookie) Reply() (*ChangePointerDeviceReply, error)
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (v DeviceButtonStateNotifyEvent) String() string
String is a rudimentary string representation of DeviceButtonStateNotifyEvent.
type DeviceCoreCtrl ¶
func (DeviceCoreCtrl) Bytes ¶
func (v DeviceCoreCtrl) Bytes() []byte
Bytes writes a DeviceCoreCtrl value to a byte slice.
type DeviceCoreState ¶
func (DeviceCoreState) Bytes ¶
func (v DeviceCoreState) Bytes() []byte
Bytes writes a DeviceCoreState value to a byte slice.
type DeviceEnableCtrl ¶
func (DeviceEnableCtrl) Bytes ¶
func (v DeviceEnableCtrl) Bytes() []byte
Bytes writes a DeviceEnableCtrl value to a byte slice.
type DeviceEnableState ¶
func (DeviceEnableState) Bytes ¶
func (v DeviceEnableState) Bytes() []byte
Bytes writes a DeviceEnableState value to a byte slice.
type DeviceError ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (FeedbackCtl) Bytes ¶
func (v FeedbackCtl) Bytes() []byte
Bytes writes a FeedbackCtl value to a byte slice.
type FeedbackState ¶
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 ¶
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 ¶
func (cook GetDeviceButtonMappingCookie) Reply() (*GetDeviceButtonMappingReply, error)
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 ¶
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 ¶
func (cook GetDeviceControlCookie) Reply() (*GetDeviceControlReply, error)
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 ¶
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 ¶
func (cook GetDeviceDontPropagateListCookie) Reply() (*GetDeviceDontPropagateListReply, error)
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 ¶
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 ¶
func (cook GetDeviceFocusCookie) Reply() (*GetDeviceFocusReply, error)
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 ¶
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 ¶
func (cook GetDeviceKeyMappingCookie) Reply() (*GetDeviceKeyMappingReply, error)
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 ¶
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 ¶
func (cook GetDeviceModifierMappingCookie) Reply() (*GetDeviceModifierMappingReply, error)
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 ¶
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 ¶
func (cook GetDeviceMotionEventsCookie) Reply() (*GetDeviceMotionEventsReply, error)
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 ¶
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 ¶
func (cook GetExtensionVersionCookie) Reply() (*GetExtensionVersionReply, error)
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 ¶
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 ¶
func (cook GetFeedbackControlCookie) Reply() (*GetFeedbackControlReply, error)
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 ¶
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 ¶
func (cook GetSelectedExtensionEventsCookie) Reply() (*GetSelectedExtensionEventsReply, error)
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 ¶
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 ¶
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 ¶
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 ¶
func (InputClassInfo) Bytes ¶
func (v InputClassInfo) Bytes() []byte
Bytes writes a InputClassInfo value to a byte slice.
type InputState ¶
func (InputState) Bytes ¶
func (v InputState) Bytes() []byte
Bytes writes a InputState value to a byte slice.
type IntegerFeedbackCtl ¶
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 KeyState ¶
type LedFeedbackCtl ¶
func (LedFeedbackCtl) Bytes ¶
func (v LedFeedbackCtl) Bytes() []byte
Bytes writes a LedFeedbackCtl value to a byte slice.
type LedFeedbackState ¶
func (LedFeedbackState) Bytes ¶
func (v LedFeedbackState) Bytes() []byte
Bytes writes a LedFeedbackState value to a byte slice.
type ListInputDevicesCookie ¶
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 ¶
func (cook ListInputDevicesCookie) Reply() (*ListInputDevicesReply, error)
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 ¶
func (ModeError) BadId ¶
BadId returns the 'BadValue' number if one exists for the BadMode error. If no bad value exists, 0 is returned.
func (ModeError) SequenceId ¶
SequenceId returns the sequence id attached to the BadMode error. This is mostly used internally.
type OpenDeviceCookie ¶
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 ¶
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 ¶
func (cook QueryDeviceStateCookie) Reply() (*QueryDeviceStateReply, error)
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 ¶
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 ¶
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 ¶
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 ¶
func (cook SetDeviceButtonMappingCookie) Reply() (*SetDeviceButtonMappingReply, error)
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 ¶
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 ¶
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 ¶
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 ¶
func (cook SetDeviceModifierMappingCookie) Reply() (*SetDeviceModifierMappingReply, error)
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 ¶
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 ¶
func (cook SetDeviceValuatorsCookie) Reply() (*SetDeviceValuatorsReply, error)
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 ¶
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 ¶
UngrabDeviceCookie is a cookie used only for UngrabDevice requests.
func UngrabDevice ¶
UngrabDevice sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func UngrabDeviceChecked ¶
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 ¶
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.