xkb

package
v0.0.0-...-7ad2634 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConstMaxLegalKeyCode    = 255
	ConstPerKeyBitArraySize = 32
	ConstKeyNameLength      = 4
)

enum Const

View Source
const (
	EventTypeNewKeyboardNotify     = 1
	EventTypeMapNotify             = 2
	EventTypeStateNotify           = 4
	EventTypeControlsNotify        = 8
	EventTypeIndicatorStateNotify  = 16
	EventTypeIndicatorMapNotify    = 32
	EventTypeNamesNotify           = 64
	EventTypeCompatMapNotify       = 128
	EventTypeBellNotify            = 256
	EventTypeActionMessage         = 512
	EventTypeAccessXNotify         = 1024
	EventTypeExtensionDeviceNotify = 2048
)

enum EventType

View Source
const (
	NKNDetailKeycodes = 1
	NKNDetailGeometry = 2
	NKNDetailDeviceId = 4
)

enum NKNDetail

View Source
const (
	AXNDetailSkPress    = 1
	AXNDetailSkAccept   = 2
	AXNDetailSkReject   = 4
	AXNDetailSkRelease  = 8
	AXNDetailBkAccept   = 16
	AXNDetailBkReject   = 32
	AXNDetailAxkWarning = 64
)

enum AXNDetail

View Source
const (
	MapPartKeyTypes           = 1
	MapPartKeySyms            = 2
	MapPartModifierMap        = 4
	MapPartExplicitComponents = 8
	MapPartKeyActions         = 16
	MapPartKeyBehaviors       = 32
	MapPartVirtualMods        = 64
	MapPartVirtualModMap      = 128
)

enum MapPart

View Source
const (
	SetMapFlagsResizeTypes      = 1
	SetMapFlagsRecomputeActions = 2
)

enum SetMapFlags

View Source
const (
	StatePartModifierState    = 1
	StatePartModifierBase     = 2
	StatePartModifierLatch    = 4
	StatePartModifierLock     = 8
	StatePartGroupState       = 16
	StatePartGroupBase        = 32
	StatePartGroupLatch       = 64
	StatePartGroupLock        = 128
	StatePartCompatState      = 256
	StatePartGrabMods         = 512
	StatePartCompatGrabMods   = 1024
	StatePartLookupMods       = 2048
	StatePartCompatLookupMods = 4096
	StatePartPointerButtons   = 8192
)

enum StatePart

View Source
const (
	BoolCtrlRepeatKeys          = 1
	BoolCtrlSlowKeys            = 2
	BoolCtrlBounceKeys          = 4
	BoolCtrlStickyKeys          = 8
	BoolCtrlMouseKeys           = 16
	BoolCtrlMouseKeysAccel      = 32
	BoolCtrlAccessXKeys         = 64
	BoolCtrlAccessXTimeoutMask  = 128
	BoolCtrlAccessXFeedbackMask = 256
	BoolCtrlAudibleBellMask     = 512
	BoolCtrlOverlay1Mask        = 1024
	BoolCtrlOverlay2Mask        = 2048
	BoolCtrlIgnoreGroupLockMask = 4096
)

enum BoolCtrl

View Source
const (
	ControlGroupsWrap      = 134217728
	ControlInternalMods    = 268435456
	ControlIgnoreLockMods  = 536870912
	ControlPerKeyRepeat    = 1073741824
	ControlControlsEnabled = 2147483648
)

enum Control

View Source
const (
	AXOptionSkPressFb    = 1
	AXOptionSkAcceptFb   = 2
	AXOptionFeatureFb    = 4
	AXOptionSlowWarnFb   = 8
	AXOptionIndicatorFb  = 16
	AXOptionStickyKeysFb = 32
	AXOptionTwoKeys      = 64
	AXOptionLatchToLock  = 128
	AXOptionSkReleaseFb  = 256
	AXOptionSkRejectFb   = 512
	AXOptionBkRejectFb   = 1024
	AXOptionDumbBell     = 2048
)

enum AXOption

View Source
const (
	LedClassResultKbdFeedbackClass = 0
	LedClassResultLedFeedbackClass = 4
)

enum LedClassResult

View Source
const (
	LedClassKbdFeedbackClass = 0
	LedClassLedFeedbackClass = 4
	LedClassDfltXiClass      = 768
	LedClassAllXiClasses     = 1280
)

enum LedClass

View Source
const (
	BellClassResultKbdFeedbackClass  = 0
	BellClassResultBellFeedbackClass = 5
)

enum BellClassResult

View Source
const (
	BellClassKbdFeedbackClass  = 0
	BellClassBellFeedbackClass = 5
	BellClassDfltXiClass       = 768
)

enum BellClass

View Source
const (
	IDUseCoreKbd  = 256
	IDUseCorePtr  = 512
	IDDfltXiClass = 768
	IDDfltXiId    = 1024
	IDAllXiClass  = 1280
	IDAllXiId     = 1536
	IDXiNone      = 65280
)

enum ID

View Source
const (
	Group1 = 0
	Group2 = 1
	Group3 = 2
	Group4 = 3
)

enum Group

View Source
const (
	GroupsAny = 254
	GroupsAll = 255
)

enum Groups

View Source
const (
	SetOfGroupGroup1 = 1
	SetOfGroupGroup2 = 2
	SetOfGroupGroup3 = 4
	SetOfGroupGroup4 = 8
)

enum SetOfGroup

View Source
const (
	GroupsWrapWrapIntoRange     = 0
	GroupsWrapClampIntoRange    = 64
	GroupsWrapRedirectIntoRange = 128
)

enum GroupsWrap

View Source
const (
	VModsHigh15 = 128
	VModsHigh14 = 64
	VModsHigh13 = 32
	VModsHigh12 = 16
	VModsHigh11 = 8
	VModsHigh10 = 4
	VModsHigh9  = 2
	VModsHigh8  = 1
)

enum VModsHigh

View Source
const (
	VModsLow7 = 128
	VModsLow6 = 64
	VModsLow5 = 32
	VModsLow4 = 16
	VModsLow3 = 8
	VModsLow2 = 4
	VModsLow1 = 2
	VModsLow0 = 1
)

enum VModsLow

View Source
const (
	VMod15 = 32768
	VMod14 = 16384
	VMod13 = 8192
	VMod12 = 4096
	VMod11 = 2048
	VMod10 = 1024
	VMod9  = 512
	VMod8  = 256
	VMod7  = 128
	VMod6  = 64
	VMod5  = 32
	VMod4  = 16
	VMod3  = 8
	VMod2  = 4
	VMod1  = 2
	VMod0  = 1
)

enum VMod

View Source
const (
	ExplicitVModMap    = 128
	ExplicitBehavior   = 64
	ExplicitAutoRepeat = 32
	ExplicitInterpret  = 16
	ExplicitKeyType4   = 8
	ExplicitKeyType3   = 4
	ExplicitKeyType2   = 2
	ExplicitKeyType1   = 1
)

enum Explicit

View Source
const (
	SymInterpretMatchNoneOf      = 0
	SymInterpretMatchAnyOfOrNone = 1
	SymInterpretMatchAnyOf       = 2
	SymInterpretMatchAllOf       = 3
	SymInterpretMatchExactly     = 4
)

enum SymInterpretMatch

View Source
const (
	SymInterpMatchLevelOneOnly = 128
	SymInterpMatchOpMask       = 127
)

enum SymInterpMatch

View Source
const (
	IMFlagNoExplicit  = 128
	IMFlagNoAutomatic = 64
	IMFlagLedDrivesKb = 32
)

enum IMFlag

View Source
const (
	IMModsWhichUseCompat    = 16
	IMModsWhichUseEffective = 8
	IMModsWhichUseLocked    = 4
	IMModsWhichUseLatched   = 2
	IMModsWhichUseBase      = 1
)

enum IMModsWhich

View Source
const (
	IMGroupsWhichUseCompat    = 16
	IMGroupsWhichUseEffective = 8
	IMGroupsWhichUseLocked    = 4
	IMGroupsWhichUseLatched   = 2
	IMGroupsWhichUseBase      = 1
)

enum IMGroupsWhich

View Source
const (
	CMDetailSymInterp   = 1
	CMDetailGroupCompat = 2
)

enum CMDetail

View Source
const (
	NameDetailKeycodes        = 1
	NameDetailGeometry        = 2
	NameDetailSymbols         = 4
	NameDetailPhysSymbols     = 8
	NameDetailTypes           = 16
	NameDetailCompat          = 32
	NameDetailKeyTypeNames    = 64
	NameDetailKtLevelNames    = 128
	NameDetailIndicatorNames  = 256
	NameDetailKeyNames        = 512
	NameDetailKeyAliases      = 1024
	NameDetailVirtualModNames = 2048
	NameDetailGroupNames      = 4096
	NameDetailRgNames         = 8192
)

enum NameDetail

View Source
const (
	GBNDetailTypes         = 1
	GBNDetailCompatMap     = 2
	GBNDetailClientSymbols = 4
	GBNDetailServerSymbols = 8
	GBNDetailIndicatorMaps = 16
	GBNDetailKeyNames      = 32
	GBNDetailGeometry      = 64
	GBNDetailOtherNames    = 128
)

enum GBNDetail

View Source
const (
	XIFeatureKeyboards      = 1
	XIFeatureButtonActions  = 2
	XIFeatureIndicatorNames = 4
	XIFeatureIndicatorMaps  = 8
	XIFeatureIndicatorState = 16
)

enum XIFeature

View Source
const (
	PerClientFlagDetectableAutoRepeat   = 1
	PerClientFlagGrabsUseXkbState       = 2
	PerClientFlagAutoResetControls      = 4
	PerClientFlagLookupStateWhenGrabbed = 8
	PerClientFlagSendEventUsesXkbState  = 16
)

enum PerClientFlag

View Source
const (
	BehaviorTypeDefault             = 0
	BehaviorTypeLock                = 1
	BehaviorTypeRadioGroup          = 2
	BehaviorTypeOverlay1            = 3
	BehaviorTypeOverlay2            = 4
	BehaviorTypePermamentLock       = 129
	BehaviorTypePermamentRadioGroup = 130
	BehaviorTypePermamentOverlay1   = 131
	BehaviorTypePermamentOverlay2   = 132
)

enum BehaviorType

View Source
const (
	DoodadTypeOutline   = 1
	DoodadTypeSolid     = 2
	DoodadTypeText      = 3
	DoodadTypeIndicator = 4
)

enum DoodadType

View Source
const (
	ErrorBadDevice = 255
	ErrorBadClass  = 254
	ErrorBadId     = 253
)

enum Error

View Source
const (
	SAClearLocks    = 1
	SALatchToLock   = 2
	SAUseModMapMods = 4
	SAGroupAbsolute = 4
)

enum SA

View Source
const (
	SATypeNoAction       = 0
	SATypeSetMods        = 1
	SATypeLatchMods      = 2
	SATypeLockMods       = 3
	SATypeSetGroup       = 4
	SATypeLatchGroup     = 5
	SATypeLockGroup      = 6
	SATypeMovePtr        = 7
	SATypePtrBtn         = 8
	SATypeLockPtrBtn     = 9
	SATypeSetPtrDflt     = 10
	SATypeIsoLock        = 11
	SATypeTerminate      = 12
	SATypeSwitchScreen   = 13
	SATypeSetControls    = 14
	SATypeLockControls   = 15
	SATypeActionMessage  = 16
	SATypeRedirectKey    = 17
	SATypeDeviceBtn      = 18
	SATypeLockDeviceBtn  = 19
	SATypeDeviceValuator = 20
)

enum SAType

View Source
const (
	SAMovePtrFlagNoAcceleration = 1
	SAMovePtrFlagMoveAbsoluteX  = 2
	SAMovePtrFlagMoveAbsoluteY  = 4
)

enum SAMovePtrFlag

View Source
const (
	SASetPtrDfltFlagDfltBtnAbsolute  = 4
	SASetPtrDfltFlagAffectDfltButton = 1
)

enum SASetPtrDfltFlag

View Source
const (
	SAIsoLockFlagNoLock         = 1
	SAIsoLockFlagNoUnlock       = 2
	SAIsoLockFlagUseModMapMods  = 4
	SAIsoLockFlagGroupAbsolute  = 4
	SAIsoLockFlagIsoDfltIsGroup = 8
)

enum SAIsoLockFlag

View Source
const (
	SAIsoLockNoAffectCtrls = 8
	SAIsoLockNoAffectPtr   = 16
	SAIsoLockNoAffectGroup = 32
	SAIsoLockNoAffectMods  = 64
)

enum SAIsoLockNoAffect

View Source
const (
	SwitchScreenFlagApplication = 1
	SwitchScreenFlagAbsolute    = 4
)

enum SwitchScreenFlag

View Source
const (
	BoolCtrlsHighAccessXFeedback = 1
	BoolCtrlsHighAudibleBell     = 2
	BoolCtrlsHighOverlay1        = 4
	BoolCtrlsHighOverlay2        = 8
	BoolCtrlsHighIgnoreGroupLock = 16
)

enum BoolCtrlsHigh

View Source
const (
	BoolCtrlsLowRepeatKeys     = 1
	BoolCtrlsLowSlowKeys       = 2
	BoolCtrlsLowBounceKeys     = 4
	BoolCtrlsLowStickyKeys     = 8
	BoolCtrlsLowMouseKeys      = 16
	BoolCtrlsLowMouseKeysAccel = 32
	BoolCtrlsLowAccessXKeys    = 64
	BoolCtrlsLowAccessXTimeout = 128
)

enum BoolCtrlsLow

View Source
const (
	ActionMessageFlagOnPress     = 1
	ActionMessageFlagOnRelease   = 2
	ActionMessageFlagGenKeyEvent = 4
)

enum ActionMessageFlag

View Source
const (
	LockDeviceFlagsNoLock   = 1
	LockDeviceFlagsNoUnlock = 2
)

enum LockDeviceFlags

View Source
const (
	SAValWhatIgnoreVal      = 0
	SAValWhatSetValMin      = 1
	SAValWhatSetValCenter   = 2
	SAValWhatSetValMax      = 3
	SAValWhatSetValRelative = 4
	SAValWhatSetValAbsolute = 5
)

enum SAValWhat

View Source
const AccessXNotifyEventCode = 10
View Source
const ActionMessageEventCode = 9
View Source
const BellNotifyEventCode = 8
View Source
const BellOpcode = 3
View Source
const CompatMapNotifyEventCode = 7
View Source
const ControlsNotifyEventCode = 3
View Source
const ExtensionDeviceNotifyEventCode = 11
View Source
const GetCompatMapOpcode = 10
View Source
const GetControlsOpcode = 6
View Source
const GetDeviceInfoOpcode = 24
View Source
const GetIndicatorMapOpcode = 13
View Source
const GetIndicatorStateOpcode = 12
View Source
const GetKbdByNameOpcode = 23
View Source
const GetMapOpcode = 8
View Source
const GetNamedIndicatorOpcode = 15
View Source
const GetNamesOpcode = 17
View Source
const GetStateOpcode = 4
View Source
const IndicatorMapNotifyEventCode = 5
View Source
const IndicatorStateNotifyEventCode = 4
View Source
const KeyboardErrorCode = 0
View Source
const LatchLockStateOpcode = 5
View Source
const ListComponentsOpcode = 22
View Source
const MajorVersion = 1

_ns.ext_name: xkb

View Source
const MapNotifyEventCode = 1
View Source
const MinorVersion = 0
View Source
const NamesNotifyEventCode = 6
View Source
const NewKeyboardNotifyEventCode = 0
View Source
const PerClientFlagsOpcode = 21
View Source
const SelectEventsOpcode = 1
View Source
const SetCompatMapOpcode = 11
View Source
const SetControlsOpcode = 7
View Source
const SetDebuggingFlagsOpcode = 101
View Source
const SetDeviceInfoOpcode = 25
View Source
const SetIndicatorMapOpcode = 14
View Source
const SetMapOpcode = 9
View Source
const SetNamedIndicatorOpcode = 16
View Source
const SetNamesOpcode = 18
View Source
const (
	SetOfGroupsAny = 128
)

enum SetOfGroups

View Source
const StateNotifyEventCode = 2
View Source
const UseExtensionOpcode = 0

Variables

This section is empty.

Functions

func Bell

func Bell(conn *x.Conn, deviceSpec DeviceSpec, bellClass BellClassSpec, bellID IdSpec, percent int8, forceSound, eventOnly bool, pitch, duration int16, name x.Atom, window x.Window)

func BellChecked

func BellChecked(conn *x.Conn, deviceSpec DeviceSpec, bellClass BellClassSpec, bellID IdSpec, percent int8, forceSound, eventOnly bool, pitch, duration int16, name x.Atom, window x.Window) x.VoidCookie

func Ext

func Ext() *x.Extension

func LatchLockState

func LatchLockState(conn *x.Conn, deviceSpec DeviceSpec, affectModLocks, modLocks uint8, lockGroup bool, groupLock, affectModLatches, modLatches uint8, latchGroup bool, groupLatch uint16)

func LatchLockStateChecked

func LatchLockStateChecked(conn *x.Conn, deviceSpec DeviceSpec, affectModLocks, modLocks uint8, lockGroup bool, groupLock, affectModLatches, modLatches uint8, latchGroup bool, groupLatch uint16) x.VoidCookie

func SelectEvents

func SelectEvents(conn *x.Conn, deviceSpec DeviceSpec, options ...SelectOption)

func SelectEventsChecked

func SelectEventsChecked(conn *x.Conn, deviceSpec DeviceSpec, options ...SelectOption) x.VoidCookie

func SetCompatMap

func SetCompatMap(conn *x.Conn, deviceSpec DeviceSpec, v *SetCompatMapValue)

func SetCompatMapChecked

func SetCompatMapChecked(conn *x.Conn, deviceSpec DeviceSpec, v *SetCompatMapValue) x.VoidCookie

func SetControls

func SetControls(conn *x.Conn, deviceSpec DeviceSpec, affectInternalRealMods, affectIgnoreLockRealMods uint8, affectInternalVirtualMods, affectIgnoreLockVirtualMods uint16, affectEnabledControls, changeControls uint32, c *Controls)

func SetControlsChecked

func SetControlsChecked(conn *x.Conn, deviceSpec DeviceSpec, affectInternalRealMods, affectIgnoreLockRealMods uint8, affectInternalVirtualMods, affectIgnoreLockVirtualMods uint16, affectEnabledControls, changeControls uint32, c *Controls) x.VoidCookie

func SetDeviceInfo

func SetDeviceInfo(conn *x.Conn, deviceSpec DeviceSpec, firstBtn uint8, change uint16, btnActions []Action, leds []DeviceLedInfo)

func SetDeviceInfoChecked

func SetDeviceInfoChecked(conn *x.Conn, deviceSpec DeviceSpec, firstBtn uint8, change uint16, btnActions []Action, leds []DeviceLedInfo) x.VoidCookie

func SetIndicatorMap

func SetIndicatorMap(conn *x.Conn, deviceSpec DeviceSpec, which uint32, maps []IndicatorMap)

func SetIndicatorMapChecked

func SetIndicatorMapChecked(conn *x.Conn, deviceSpec DeviceSpec, which uint32, maps []IndicatorMap) x.VoidCookie

func SetMap

func SetMap(conn *x.Conn, deviceSpec DeviceSpec, flags uint16, m *SetMapValue)

func SetMapChecked

func SetMapChecked(conn *x.Conn, deviceSpec DeviceSpec, flags uint16, m *SetMapValue) x.VoidCookie

func SetNamedIndicator

func SetNamedIndicator(conn *x.Conn, deviceSpec DeviceSpec, ledClass LedClassSpec, ledID IdSpec, indicator x.Atom, setState, on, setMap, createMap bool, map0 *IndicatorMap)

func SetNamedIndicatorChecked

func SetNamedIndicatorChecked(conn *x.Conn, deviceSpec DeviceSpec, ledClass LedClassSpec, ledID IdSpec, indicator x.Atom, setState, on, setMap, createMap bool, map0 *IndicatorMap) x.VoidCookie

func SetNames

func SetNames(conn *x.Conn, r *SetNamesRequest)

func SetNamesChecked

func SetNamesChecked(conn *x.Conn, r *SetNamesRequest) x.VoidCookie

Types

type AccessXNotifyEvent

type AccessXNotifyEvent struct {
	Keycode       x.Keycode
	Detail        uint16
	SlowKeysDelay uint16
	DebounceDelay uint16
	// contains filtered or unexported fields
}

func NewAccessXNotifyEvent

func NewAccessXNotifyEvent(data []byte) (*AccessXNotifyEvent, error)

type Action

type Action interface {
	Type() uint8 // TODO: rename ActionType
	// contains filtered or unexported methods
}

size: 2 * 4b

type ActionMessageEvent

type ActionMessageEvent struct {
	Keycode         x.Keycode
	Press           bool
	KeyEventFollows bool
	Mods            uint8
	Group           uint8
	Message         string
	// contains filtered or unexported fields
}

func NewActionMessageEvent

func NewActionMessageEvent(data []byte) (*ActionMessageEvent, error)

type Behavior

type Behavior interface {
	Type() uint8
	// contains filtered or unexported methods
}

size: 2b

type BellClassSpec

type BellClassSpec uint16

simple ('xcb', 'xkb', 'BellClassSpec')

type BellNotifyEvent

type BellNotifyEvent struct {
	BellClass uint8
	BellID    uint8
	Percent   uint8
	Pitch     uint16
	Duration  uint16
	Name      x.Atom
	Window    x.Window
	EventOnly bool
	// contains filtered or unexported fields
}

func NewBellNotifyEvent

func NewBellNotifyEvent(data []byte) (*BellNotifyEvent, error)

type CompatMapNotifyEvent

type CompatMapNotifyEvent struct {
	ChangedGroup uint8
	FirstSI      uint16
	NSI          uint16
	NTotalSI     uint16
	// contains filtered or unexported fields
}

func NewCompatMapNotifyEvent

func NewCompatMapNotifyEvent(data []byte) (*CompatMapNotifyEvent, error)

type ComponentNames

type ComponentNames struct {
	KeymapsSpec   string
	KeycodesSpec  string
	TypesSpec     string
	CompatMapSpec string
	SymbolsSpec   string
	GeometrySpec  string
}

type Controls

type Controls struct {
	MouseKeysDefaultBtn         uint8
	NumGroups                   uint8
	GroupsWrap                  uint8
	Internal                    ModDef
	IgnoreLock                  ModDef
	EnabledControls             uint32
	RepeatDelay                 uint16
	RepeatInterval              uint16
	SlowKeysDelay               uint16
	DebounceDelay               uint16
	MouseKeysDelay              uint16
	MouseKeysInterval           uint16
	MouseKeysTimeToMax          uint16
	MouseKeysMaxSpeed           uint16
	MouseKeysCurve              int16
	AccessXOption               uint16
	AccessXTimeout              uint16
	AccessXTimeoutOptionsMask   uint16
	AccessXTimeoutOptionsValues uint16

	AccessXTimeoutMask   uint32
	AccessXTimeoutValues uint32
	PerKeyRepeat         []byte // len 32
}

type ControlsNotifyEvent

type ControlsNotifyEvent struct {
	NumGroups             uint8
	ChangedControls       uint32
	EnabledControls       uint32
	EnabledControlChanges uint32
	Keycode               x.Keycode
	EventType             uint8
	RequestMajor          uint8
	RequestMinor          uint8
	// contains filtered or unexported fields
}

func NewControlsNotifyEvent

func NewControlsNotifyEvent(data []byte) (*ControlsNotifyEvent, error)

type DefaultBehavior

type DefaultBehavior struct {
}

func (DefaultBehavior) Type

func (DefaultBehavior) Type() uint8

type DeviceLedInfo

type DeviceLedInfo struct {
	LedClass       LedClassSpec
	LedID          IdSpec
	NamesPresent   uint32
	MapsPresent    uint32
	PhysIndicators uint32
	State          uint32
	Names          []x.Atom
	Maps           []IndicatorMap
}

type DeviceSpec

type DeviceSpec uint16

simple ('xcb', 'xkb', 'DeviceSpec')

type ExtensionDeviceNotifyEvent

type ExtensionDeviceNotifyEvent struct {
	Reason      uint16
	LedClass    uint16
	LedID       uint16
	LedsDefined uint32
	LedState    uint32
	FirstButton uint8
	NButtons    uint8
	Supported   uint16
	Unsupported uint16
	// contains filtered or unexported fields
}

func NewExtensionDeviceNotifyEvent

func NewExtensionDeviceNotifyEvent(data []byte) (*ExtensionDeviceNotifyEvent, error)

type GetCompatMapCookie

type GetCompatMapCookie x.SeqNum

func GetCompatMap

func GetCompatMap(conn *x.Conn, deviceSpec DeviceSpec, groups uint8, getAllSI bool, firstSI, NSI uint16) GetCompatMapCookie

func (GetCompatMapCookie) Reply

func (cookie GetCompatMapCookie) Reply(conn *x.Conn) (*GetCompatMapReply, error)

type GetCompatMapReply

type GetCompatMapReply struct {
	DeviceID    uint8
	GroupsRtrn  uint8
	FirstSIRtrn uint16
	NSIRtrn     uint16
	NTotalSI    uint16
	SIRtrn      []SymInterpret
	GroupRtrn   []ModDef
}

type GetControlsCookie

type GetControlsCookie x.SeqNum

func GetControls

func GetControls(conn *x.Conn, deviceSpec DeviceSpec) GetControlsCookie

func (GetControlsCookie) Reply

func (cookie GetControlsCookie) Reply(conn *x.Conn) (*GetControlsReply, error)

type GetControlsReply

type GetControlsReply struct {
	DeviceID uint8
	Controls
}

type GetDeviceInfoCookie

type GetDeviceInfoCookie x.SeqNum

func GetDeviceInfo

func GetDeviceInfo(conn *x.Conn, deviceSpec DeviceSpec, wanted uint16, allButtons bool, FirstButton, nButtons uint8, ledClass LedClassSpec, ledID IdSpec) GetDeviceInfoCookie

func (GetDeviceInfoCookie) Reply

func (cookie GetDeviceInfoCookie) Reply(conn *x.Conn) (*GetDeviceInfoReply, error)

type GetDeviceInfoReply

type GetDeviceInfoReply struct {
	DeviceID       uint8
	Present        uint16
	Supported      uint16
	Unsupported    uint16
	NDeviceLedFBs  uint16
	FirstBtnWanted uint8
	NBtnsWanted    uint8
	FirstBtnRtrn   uint8
	NBtnsRtrn      uint8
	TotalBtns      uint8
	HasOwnState    bool
	DfltKbdFB      uint16
	DfltLedFB      uint16
	DevType        x.Atom
	NameLen        uint16
	Name           string
	BtnActions     []Action
	Leds           []DeviceLedInfo
}

type GetIndicatorMapCookie

type GetIndicatorMapCookie x.SeqNum

func GetIndicatorMap

func GetIndicatorMap(conn *x.Conn, deviceSpec DeviceSpec, which uint32) GetIndicatorMapCookie

func (GetIndicatorMapCookie) Reply

func (cookie GetIndicatorMapCookie) Reply(conn *x.Conn) (*GetIndicatorMapReply, error)

type GetIndicatorMapReply

type GetIndicatorMapReply struct {
	DeviceID       uint8
	Which          uint32
	RealIndicators uint32
	NIndicators    uint8
	Maps           []IndicatorMap
}

type GetIndicatorStateCookie

type GetIndicatorStateCookie x.SeqNum

func GetIndicatorState

func GetIndicatorState(conn *x.Conn, deviceSpec DeviceSpec) GetIndicatorStateCookie

func (GetIndicatorStateCookie) Reply

func (cookie GetIndicatorStateCookie) Reply(conn *x.Conn) (*GetIndicatorStateReply, error)

type GetIndicatorStateReply

type GetIndicatorStateReply struct {
	DeviceID uint8
	State    uint32
}

type GetKbdByNameCookie

type GetKbdByNameCookie x.SeqNum

type GetMapCookie

type GetMapCookie x.SeqNum

func GetMap

func GetMap(conn *x.Conn, deviceSpec DeviceSpec, full uint16, opt *GetMapPartOptions) GetMapCookie

func (GetMapCookie) Reply

func (cookie GetMapCookie) Reply(conn *x.Conn) (*GetMapReply, error)

type GetMapPartOptions

type GetMapPartOptions struct {
	Partial   uint16
	FirstType uint8
	NTypes    uint8

	FirstKeySym x.Keycode
	NKeySyms    uint8

	FirstKeyAction x.Keycode
	NKeyActions    uint8

	FirstKeyBehavior x.Keycode
	NKeyBehavior     uint8

	VirtualMods uint16

	FirstKeyExplicit x.Keycode
	NKeyExplicit     uint8

	FirstModMapKey x.Keycode
	NModMapKeys    uint8

	FirstVModMapKey x.Keycode
	NVModMapKeys    uint8
}

type GetMapReply

type GetMapReply struct {
	DeviceID   uint8
	MinKeyCode x.Keycode
	MaxKeyCode x.Keycode
	Present    uint16

	FirstType  uint8
	NTypes     uint8
	TotalTypes uint8

	FirstKeySym x.Keycode
	TotalSyms   uint16
	NKeySyms    uint8

	FirstKeyAction x.Keycode
	TotalActions   uint16
	NKeyActions    uint8

	FirstKeyBehavior  x.Keycode
	NKeyBehaviors     uint8
	TotalKeyBehaviors uint8

	FirstKeyExplicit x.Keycode
	NKeyExplicit     uint8
	TotalKeyExplicit uint8

	FirstModMapKey  x.Keycode
	NModMapKeys     uint8
	TotalModMapKeys uint8

	FirstVModMapKey  x.Keycode
	NVModMapKeys     uint8
	TotalVModMapKeys uint8

	VirtualMods uint16

	Types        []KeyType
	Syms         []KeySymMap
	ActionsCount []uint8
	Actions      []Action
	Behaviors    []SetBehavior
	VMods        []uint8
	Explicit     []SetExplicit
	ModMap       []KeyModMap
	VModMap      []KeyVModMap
}

type GetNamedIndicatorCookie

type GetNamedIndicatorCookie x.SeqNum

func GetNamedIndicator

func GetNamedIndicator(conn *x.Conn, deviceSpec DeviceSpec, ledClass LedClassSpec, ledID IdSpec, indicator x.Atom) GetNamedIndicatorCookie

func (GetNamedIndicatorCookie) Reply

func (cookie GetNamedIndicatorCookie) Reply(conn *x.Conn) (*GetNamedIndicatorReply, error)

type GetNamedIndicatorReply

type GetNamedIndicatorReply struct {
	DeviceID      uint8
	Indicator     x.Atom
	Found         bool
	On            bool
	RealIndicator bool
	Ndx           uint8
	Map           IndicatorMap
	Supported     bool
}

type GetNamesCookie

type GetNamesCookie x.SeqNum

func GetNames

func GetNames(conn *x.Conn, deviceSpec DeviceSpec, which uint32) GetNamesCookie

func (GetNamesCookie) Reply

func (cookie GetNamesCookie) Reply(conn *x.Conn) (*GetNamesReply, error)

type GetNamesReply

type GetNamesReply struct {
	DeviceID     uint8
	Which        uint32
	MinKeyCode   x.Keycode
	MaxKeyCode   x.Keycode
	NTypes       uint8
	Groups       uint8
	VirtualMods  uint16
	FirstKey     x.Keycode
	NKeys        uint8
	Indicators   uint32
	NRadioGroups uint8
	NKeyAliases  uint8
	NKTLevels    uint16

	KeycodesName    x.Atom
	GeometryName    x.Atom
	SymbolsName     x.Atom
	PhysSymbolsName x.Atom
	TypesName       x.Atom
	CompatName      x.Atom
	TypeNames       []x.Atom
	NLevelsPerType  []uint8
	KTLevelNames    []x.Atom
	IndicatorNames  []x.Atom
	VirtualModNames []x.Atom
	GroupNames      []x.Atom
	KeyNames        []string
	KeyAliases      []KeyAlias
	RadioGroupNames []x.Atom
}

type GetStateCookie

type GetStateCookie x.SeqNum

func GetState

func GetState(conn *x.Conn, deviceSpec DeviceSpec) GetStateCookie

func (GetStateCookie) Reply

func (cookie GetStateCookie) Reply(conn *x.Conn) (*GetStateReply, error)

type GetStateReply

type GetStateReply struct {
	DeviceID         uint8
	Mods             uint8
	BaseMods         uint8
	LatchedMods      uint8
	LockedMods       uint8
	Group            uint8
	LockedGroup      uint8
	BaseGroup        int16
	LatchedGroup     int16
	CompatState      uint8
	GrabMods         uint8
	CompatGrabMods   uint8
	LookupMods       uint8
	CompatLookupMods uint8
	PtrBtnState      uint16
}

type IdSpec

type IdSpec uint16

simple ('xcb', 'xkb', 'IDSpec')

type IndicatorMap

type IndicatorMap struct {
	Flags       uint8
	WhichGroups uint8
	Groups      uint8
	WhichMods   uint8

	Mods     uint8
	RealMods uint8
	VMods    uint16

	Ctrls uint32
}

size: 3 * 4b

type IndicatorMapNotifyEvent

type IndicatorMapNotifyEvent struct {
	State      uint32
	MapChanged uint32
	// contains filtered or unexported fields
}

func NewIndicatorMapNotifyEvent

func NewIndicatorMapNotifyEvent(data []byte) (*IndicatorMapNotifyEvent, error)

type IndicatorStateNotifyEvent

type IndicatorStateNotifyEvent struct {
	State        uint32
	StateChanged uint32
	// contains filtered or unexported fields
}

func NewIndicatorStateNotifyEvent

func NewIndicatorStateNotifyEvent(data []byte) (*IndicatorStateNotifyEvent, error)

type KTMapEntry

type KTMapEntry struct {
	Active    bool
	ModsMask  uint8
	Level     uint8
	ModsMods  uint8
	ModsVMods uint16
}

key type map entry, size: 2 * 4b

type KTSetMapEntry

type KTSetMapEntry struct {
	Level       uint8
	RealMods    uint8
	VirtualMods uint16
}

size: 1 * 4b

type KeyAlias

type KeyAlias struct {
	Real  string
	Alias string
}

size: 2 * 4b

type KeyModMap

type KeyModMap struct {
	Keycode x.Keycode
	Mods    uint8
}

size: 2b

type KeySymMap

type KeySymMap struct {
	KtIndex   []uint8 // length 4
	GroupInfo uint8
	Width     uint8
	NSyms     uint16
	Syms      []x.Keysym
}

type KeyType

type KeyType struct {
	ModsMask    uint8
	ModsMods    uint8
	ModsVMods   uint16
	NumLevels   uint8
	NMapEntries uint8
	HasPreserve bool
	Map         []KTMapEntry
	Preserve    []ModDef
}

type KeyVModMap

type KeyVModMap struct {
	Keycode x.Keycode
	VMods   uint16
}

size: 1 * 4b

type LedClassSpec

type LedClassSpec uint16

simple ('xcb', 'xkb', 'LedClassSpec')

type ListComponentsCookie

type ListComponentsCookie x.SeqNum

func ListComponents

func ListComponents(conn *x.Conn, deviceSpec DeviceSpec, maxNames uint16, cn *ComponentNames) ListComponentsCookie

func (ListComponentsCookie) Reply

func (cookie ListComponentsCookie) Reply(conn *x.Conn) (*ListComponentsReply, error)

type ListComponentsReply

type ListComponentsReply struct {
	DeviceID    uint8
	NKeymaps    uint16
	NKeycodes   uint16
	NTypes      uint16
	NCompatMaps uint16
	NSymbols    uint16
	NGeometries uint16
	Extra       uint16

	Keymaps    []int
	Keycodes   []int
	Types      []int
	CompatMaps []int
	Symbols    []int
	Geometries []int
}

type LockBehavior

type LockBehavior struct {
}

func (LockBehavior) Type

func (LockBehavior) Type() uint8

type MapNotifyEvent

type MapNotifyEvent struct {
	PtrBtnActions    uint8
	Changed          uint16
	MinKeyCode       x.Keycode
	MaxKeyCode       x.Keycode
	FirstType        uint8
	NTypes           uint8
	FirstKeySym      x.Keycode
	NKeySyms         uint8
	FirstKeyAct      x.Keycode
	NKeyActs         uint8
	FirstKeyBehavior x.Keycode
	NKeyBehavior     uint8
	FirstKeyExplicit x.Keycode
	NKeyExplicit     uint8
	FirstModMapKey   x.Keycode
	NModMapKeys      uint8
	FirstVModMapKey  x.Keycode
	NVModMapKeys     uint8
	VirtualMods      uint16
	// contains filtered or unexported fields
}

func NewMapNotifyEvent

func NewMapNotifyEvent(data []byte) (*MapNotifyEvent, error)

type ModDef

type ModDef struct {
	// RealMods | VirtualMods mapped to real modifiers
	Mask uint8
	//  real modifier bits
	RealMods uint8
	// virtual modifier bits
	VirtualMods uint16
}

size: 1 * 4b

type NamesNotifyEvent

type NamesNotifyEvent struct {
	Changed            uint16
	FirstType          uint8
	NTypes             uint8
	FirstLevelName     uint8
	NLevelNames        uint8
	NRadioGroups       uint8
	NKeyAliases        uint8
	ChangedGroupNames  uint8
	ChangedVirtualMods uint16
	FirstKey           x.Keycode
	NKeys              uint8
	ChangedIndicators  uint32
	// contains filtered or unexported fields
}

func NewNamesNotifyEvent

func NewNamesNotifyEvent(data []byte) (*NamesNotifyEvent, error)

type NewKeyboardNotifyEvent

type NewKeyboardNotifyEvent struct {
	OldDeviceID   uint8
	MinKeyCode    x.Keycode
	MaxKeyCode    x.Keycode
	OldMinKeyCode x.Keycode
	OldMaxKeyCode x.Keycode
	RequestMajor  uint8
	RequestMinor  uint8
	Changed       uint16
	// contains filtered or unexported fields
}

func NewNewKeyboardNotifyEvent

func NewNewKeyboardNotifyEvent(data []byte) (*NewKeyboardNotifyEvent, error)

type Overlay1Behavior

type Overlay1Behavior struct {
	Key x.Keycode
}

func (Overlay1Behavior) Type

func (Overlay1Behavior) Type() uint8

type Overlay2Behavior

type Overlay2Behavior Overlay1Behavior

func (Overlay2Behavior) Type

func (Overlay2Behavior) Type() uint8

type PerClientFlagsCookie

type PerClientFlagsCookie x.SeqNum

func PerClientFlags

func PerClientFlags(conn *x.Conn, deviceSpec DeviceSpec, change, value, ctrlsToChange, autoCtrls, autoCtrlsValues uint32) PerClientFlagsCookie

func (PerClientFlagsCookie) Reply

func (cookie PerClientFlagsCookie) Reply(conn *x.Conn) (*PerClientFlagsReply, error)

type PerClientFlagsReply

type PerClientFlagsReply struct {
	DeviceID        uint8
	Supported       uint32
	Value           uint32
	AutoCtrls       uint32
	AutoCtrlsValues uint32
}

type PermamentLockBehavior

type PermamentLockBehavior LockBehavior

func (PermamentLockBehavior) Type

type PermamentOverlay1Behavior

type PermamentOverlay1Behavior Overlay1Behavior

func (PermamentOverlay1Behavior) Type

type PermamentOverlay2Behavior

type PermamentOverlay2Behavior Overlay1Behavior

func (PermamentOverlay2Behavior) Type

type PermamentRadioGroupBehavior

type PermamentRadioGroupBehavior RadioGroupBehavior

func (PermamentRadioGroupBehavior) Type

type RadioGroupBehavior

type RadioGroupBehavior struct {
	Group uint8
}

func (RadioGroupBehavior) Type

func (RadioGroupBehavior) Type() uint8

type SAActionMessage

type SAActionMessage struct {
	Flags   uint8
	Message []byte // length 6
}

Action ActionMessage

func (SAActionMessage) Type

func (SAActionMessage) Type() uint8

type SADeviceBtn

type SADeviceBtn struct {
	Flags  uint8
	Count  uint8
	Button uint8
	Device uint8
}

Action DeviceBtn

func (SADeviceBtn) Type

func (SADeviceBtn) Type() uint8

type SADeviceValuator

type SADeviceValuator struct {
	Device    uint8
	Val1What  uint8
	Val1Index uint8
	Val1Value uint8

	Val2What  uint8
	Val2Index uint8
	Val2Value uint8
}

Action DeviceValuator

func (SADeviceValuator) Type

func (SADeviceValuator) Type() uint8

type SAIsoLock

type SAIsoLock struct {
	Flags    uint8
	Mask     uint8
	RealMods uint8
	Group    int8
	Affect   uint8
	VMods    uint16
}

Action Iso Lock

func (SAIsoLock) Type

func (SAIsoLock) Type() uint8

type SALatchGroup

type SALatchGroup SASetGroup

Action LatchGroup

func (SALatchGroup) Type

func (SALatchGroup) Type() uint8

type SALatchMods

type SALatchMods SASetMods

Action LatchMods

func (SALatchMods) Type

func (SALatchMods) Type() uint8

type SALockControls

type SALockControls SASetControls

Action LockControls

func (SALockControls) Type

func (SALockControls) Type() uint8

type SALockDeviceBtn

type SALockDeviceBtn struct {
	Flags  uint8
	Button uint8
	Device uint8
}

Action LockDeviceBtn

func (SALockDeviceBtn) Type

func (SALockDeviceBtn) Type() uint8

type SALockGroup

type SALockGroup SASetGroup

Action LockGroup

func (SALockGroup) Type

func (SALockGroup) Type() uint8

type SALockMods

type SALockMods SASetMods

Action LockMods

func (SALockMods) Type

func (SALockMods) Type() uint8

type SALockPtrBtn

type SALockPtrBtn struct {
	Flags  uint8
	Button uint8
}

Action LockPtrBtn

func (SALockPtrBtn) Type

func (SALockPtrBtn) Type() uint8

type SAMovePtr

type SAMovePtr struct {
	Flags uint8
	X     int16
	Y     int16
}

Action MovePtr

func (SAMovePtr) Type

func (SAMovePtr) Type() uint8

type SANoAction

type SANoAction struct {
}

Action NoAction

func (SANoAction) Type

func (SANoAction) Type() uint8

type SAPtrBtn

type SAPtrBtn struct {
	Flags  uint8
	Count  uint8
	Button uint8
}

Action PtrBtn

func (SAPtrBtn) Type

func (SAPtrBtn) Type() uint8

type SARedirectKey

type SARedirectKey struct {
	NewKey        x.Keycode
	Mask          uint8
	RealModifiers uint8
	VModsMask     uint16
	VMods         uint16
}

Action RedirectKey

func (SARedirectKey) Type

func (SARedirectKey) Type() uint8

type SASetControls

type SASetControls struct {
	BoolCtrls uint16
}

Action SetControls

func (SASetControls) Type

func (SASetControls) Type() uint8

type SASetGroup

type SASetGroup struct {
	Flags uint8
	Group int8
}

Action SetGroup

func (SASetGroup) Type

func (SASetGroup) Type() uint8

type SASetMods

type SASetMods struct {
	Flags    uint8
	Mask     uint8
	RealMods uint8
	VMods    uint16
}

Action SetMods

func (SASetMods) Type

func (SASetMods) Type() uint8

type SASetPtrDflt

type SASetPtrDflt struct {
	Flags  uint8
	Affect uint8
	Value  int8
}

Action SetPtrDflt

func (SASetPtrDflt) Type

func (SASetPtrDflt) Type() uint8

type SASwitchScreen

type SASwitchScreen struct {
	Flags     uint8
	NewScreen int8
}

Action Switch Screen

func (SASwitchScreen) Type

func (SASwitchScreen) Type() uint8

type SATerminate

type SATerminate struct {
}

Action Terminate

func (SATerminate) Type

func (SATerminate) Type() uint8

type SelectOption

type SelectOption interface {
	// contains filtered or unexported methods
}

func SelectAll

func SelectAll(eventType uint16) SelectOption

func SelectClear

func SelectClear(eventType uint16) SelectOption

func SelectDetail

func SelectDetail(eventType uint16, detail map[uint]bool) SelectOption

type SetBehavior

type SetBehavior struct {
	Keycode  x.Keycode
	Behavior Behavior
}

size: 1 * 4b

type SetCompatMapValue

type SetCompatMapValue struct {
	RecomputeActions bool
	TruncateSI       bool
	Groups           uint8
	FirstSI          uint16
	NSI              uint16
	SI               []SymInterpret
	GroupMaps        []ModDef
}

type SetDebuggingFlagsCookie

type SetDebuggingFlagsCookie x.SeqNum

func SetDebuggingFlags

func SetDebuggingFlags(conn *x.Conn, affectFlags, flags, affectCtrls, ctrls uint32, message string) SetDebuggingFlagsCookie

func (SetDebuggingFlagsCookie) Reply

func (cookie SetDebuggingFlagsCookie) Reply(conn *x.Conn) (*SetDebuggingFlagsReply, error)

type SetDebuggingFlagsReply

type SetDebuggingFlagsReply struct {
	CurrentFlags   uint32
	CurrentCtrls   uint32
	SupportedFlags uint32
	SupportedCtrls uint32
}

type SetExplicit

type SetExplicit struct {
	Keycode  x.Keycode
	Explicit uint8
}

size: 2b

type SetKeyType

type SetKeyType struct {
	Mask            uint8
	RealMods        uint8
	VirtualMods     uint16
	NumLevels       uint8
	NMapEntries     uint8
	Preserve        bool
	Entries         []KTSetMapEntry
	PreserveEntries []KTSetMapEntry
}

type SetMapValue

type SetMapValue struct {
	MinKeyCode x.Keycode
	MaxKeyCode x.Keycode

	FirstType  uint8
	NTypes     uint8 // Types
	TotalTypes uint8

	FirstKeySym x.Keycode
	TotalSyms   uint16
	NKeySyms    uint8 // Syms

	FirstKeyAction x.Keycode
	TotalActions   uint16 // Actions
	NKeyActions    uint8  // ActionsCount

	FirstKeyBehavior  x.Keycode
	NKeyBehaviors     uint8
	TotalKeyBehaviors uint8 // Behaviors

	FirstKeyExplicit x.Keycode
	NKeyExplicit     uint8
	TotalKeyExplicit uint8 // Explicit

	FirstModMapKey  x.Keycode
	NModMapKeys     uint8
	TotalModMapKeys uint8 // modMap

	FirstVModMapKey  x.Keycode
	NVModMapKeys     uint8
	TotalVModMapKeys uint8 // vModMap

	VirtualMods uint16 // VMods

	Types        []SetKeyType
	Syms         []KeySymMap
	ActionsCount []uint8
	Actions      []Action
	Behaviors    []SetBehavior
	VMods        []uint8
	Explicit     []SetExplicit
	ModMap       []KeyModMap
	VModMap      []KeyVModMap
}

type SetNamesRequest

type SetNamesRequest struct {
	DeviceSpec        DeviceSpec
	VirtualMods       uint16
	Which             uint32
	FirstType         uint8
	NTypes            uint8
	FirstKTLevel      uint8
	NKTLevels         uint8
	Indicators        uint32
	Groups            uint8
	NRadioGroups      uint8
	FirstKey          x.Keycode
	NKeys             uint8
	NKeyAliases       uint8
	TotalKTLevelNames uint16

	KeycodesName    x.Atom
	GeometryName    x.Atom
	SymbolsName     x.Atom
	PhysSymbolsName x.Atom
	TypesName       x.Atom
	CompatName      x.Atom
	TypeNames       []x.Atom
	NLevelsPerType  []uint8
	KTLevelNames    []x.Atom
	IndicatorNames  []x.Atom
	VirtualModNames []x.Atom
	GroupNames      []x.Atom
	KeyNames        []string
	KeyAliases      []KeyAlias
	RadioGroupNames []x.Atom
}

type StateNotifyEvent

type StateNotifyEvent struct {
	Mods             uint8
	BaseMods         uint8
	LatchedMods      uint8
	LockedMods       uint8
	Group            uint8
	BaseGroup        int16
	LatchedGroup     int16
	LockedGroup      uint8
	CompatState      uint8
	GrabMods         uint8
	CompatGrabMods   uint8
	LookupMods       uint8
	CompatLookupMods uint8
	PtrBtnState      uint16
	Changed          uint16
	Keycode          x.Keycode
	EventType        uint8
	RequestMajor     uint8
	RequestMinor     uint8
	// contains filtered or unexported fields
}

func NewStateNotifyEvent

func NewStateNotifyEvent(data []byte) (*StateNotifyEvent, error)

type String8

type String8 byte

simple ('xcb', 'xkb', 'STRING8')

type SymInterpret

type SymInterpret struct {
	Sym        x.Keysym
	Mods       uint8
	Match      uint8
	VirtualMod uint8
	Flags      uint8
	Action     Action
}

size: 4 * 4b

type UnknownAction

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

func (UnknownAction) Type

func (v UnknownAction) Type() uint8

type UnknownBehavior

type UnknownBehavior struct {
	Data uint8
	// contains filtered or unexported fields
}

func (UnknownBehavior) Type

func (v UnknownBehavior) Type() uint8

type UseExtensionCookie

type UseExtensionCookie x.SeqNum

func UseExtension

func UseExtension(conn *x.Conn, wantedMajor, wantedMinor uint16) UseExtensionCookie

func (UseExtensionCookie) Reply

func (cookie UseExtensionCookie) Reply(conn *x.Conn) (*UseExtensionReply, error)

type UseExtensionReply

type UseExtensionReply struct {
	Supported   bool
	ServerMajor uint16
	ServerMinor uint16
}

Jump to

Keyboard shortcuts

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