Documentation
¶
Index ¶
- Constants
- type Tablet
- func (o *Tablet) Destroy() error
- func (o *Tablet) Dispatch(event *wl.Event)
- func (o *Tablet) EventSignature(opcode uint16) (string, bool)
- func (o *Tablet) OnBustype(handler func(bustype uint32))
- func (o *Tablet) OnDone(handler func())
- func (o *Tablet) OnId(handler func(vid uint32, pid uint32))
- func (o *Tablet) OnName(handler func(name string))
- func (o *Tablet) OnPath(handler func(path string))
- func (o *Tablet) OnRemoved(handler func())
- type TabletManager
- type TabletPad
- func (o *TabletPad) Destroy() error
- func (o *TabletPad) Dispatch(event *wl.Event)
- func (o *TabletPad) EventSignature(opcode uint16) (string, bool)
- func (o *TabletPad) OnButton(handler func(time uint32, button uint32, state uint32))
- func (o *TabletPad) OnButtons(handler func(buttons uint32))
- func (o *TabletPad) OnDone(handler func())
- func (o *TabletPad) OnEnter(handler func(serial uint32, tabletID uint32, surfaceID uint32))
- func (o *TabletPad) OnGroup(handler func(padGroupObject *TabletPadGroup))
- func (o *TabletPad) OnLeave(handler func(serial uint32, surfaceID uint32))
- func (o *TabletPad) OnPath(handler func(path string))
- func (o *TabletPad) OnRemoved(handler func())
- func (o *TabletPad) SetFeedback(button uint32, description string, serial uint32) error
- type TabletPadDial
- func (o *TabletPadDial) Destroy() error
- func (o *TabletPadDial) Dispatch(event *wl.Event)
- func (o *TabletPadDial) EventSignature(opcode uint16) (string, bool)
- func (o *TabletPadDial) OnDelta(handler func(value120 int32))
- func (o *TabletPadDial) OnFrame(handler func(time uint32))
- func (o *TabletPadDial) SetFeedback(description string, serial uint32) error
- type TabletPadGroup
- func (o *TabletPadGroup) Destroy() error
- func (o *TabletPadGroup) Dispatch(event *wl.Event)
- func (o *TabletPadGroup) EventSignature(opcode uint16) (string, bool)
- func (o *TabletPadGroup) OnButtons(handler func(buttons []byte))
- func (o *TabletPadGroup) OnDial(handler func(dialObject *TabletPadDial))
- func (o *TabletPadGroup) OnDone(handler func())
- func (o *TabletPadGroup) OnModeSwitch(handler func(time uint32, serial uint32, mode uint32))
- func (o *TabletPadGroup) OnModes(handler func(modes uint32))
- func (o *TabletPadGroup) OnRing(handler func(ringObject *TabletPadRing))
- func (o *TabletPadGroup) OnStrip(handler func(stripObject *TabletPadStrip))
- type TabletPadRing
- func (o *TabletPadRing) Destroy() error
- func (o *TabletPadRing) Dispatch(event *wl.Event)
- func (o *TabletPadRing) EventSignature(opcode uint16) (string, bool)
- func (o *TabletPadRing) OnAngle(handler func(degrees wl.Fixed))
- func (o *TabletPadRing) OnFrame(handler func(time uint32))
- func (o *TabletPadRing) OnSource(handler func(source uint32))
- func (o *TabletPadRing) OnStop(handler func())
- func (o *TabletPadRing) SetFeedback(description string, serial uint32) error
- type TabletPadStrip
- func (o *TabletPadStrip) Destroy() error
- func (o *TabletPadStrip) Dispatch(event *wl.Event)
- func (o *TabletPadStrip) EventSignature(opcode uint16) (string, bool)
- func (o *TabletPadStrip) OnFrame(handler func(time uint32))
- func (o *TabletPadStrip) OnPosition(handler func(position uint32))
- func (o *TabletPadStrip) OnSource(handler func(source uint32))
- func (o *TabletPadStrip) OnStop(handler func())
- func (o *TabletPadStrip) SetFeedback(description string, serial uint32) error
- type TabletSeat
- func (o *TabletSeat) Destroy() error
- func (o *TabletSeat) Dispatch(event *wl.Event)
- func (o *TabletSeat) EventSignature(opcode uint16) (string, bool)
- func (o *TabletSeat) OnPadAdded(handler func(idObject *TabletPad))
- func (o *TabletSeat) OnTabletAdded(handler func(idObject *Tablet))
- func (o *TabletSeat) OnToolAdded(handler func(idObject *TabletTool))
- type TabletTool
- func (o *TabletTool) Destroy() error
- func (o *TabletTool) Dispatch(event *wl.Event)
- func (o *TabletTool) EventSignature(opcode uint16) (string, bool)
- func (o *TabletTool) OnButton(handler func(serial uint32, button uint32, state uint32))
- func (o *TabletTool) OnCapability(handler func(capability uint32))
- func (o *TabletTool) OnDistance(handler func(distance uint32))
- func (o *TabletTool) OnDone(handler func())
- func (o *TabletTool) OnDown(handler func(serial uint32))
- func (o *TabletTool) OnFrame(handler func(time uint32))
- func (o *TabletTool) OnHardwareIdWacom(handler func(hardwareIdHi uint32, hardwareIdLo uint32))
- func (o *TabletTool) OnHardwareSerial(handler func(hardwareSerialHi uint32, hardwareSerialLo uint32))
- func (o *TabletTool) OnMotion(handler func(x wl.Fixed, y wl.Fixed))
- func (o *TabletTool) OnPressure(handler func(pressure uint32))
- func (o *TabletTool) OnProximityIn(handler func(serial uint32, tabletID uint32, surfaceID uint32))
- func (o *TabletTool) OnProximityOut(handler func())
- func (o *TabletTool) OnRemoved(handler func())
- func (o *TabletTool) OnRotation(handler func(degrees wl.Fixed))
- func (o *TabletTool) OnSlider(handler func(position int32))
- func (o *TabletTool) OnTilt(handler func(tiltX wl.Fixed, tiltY wl.Fixed))
- func (o *TabletTool) OnType(handler func(toolType uint32))
- func (o *TabletTool) OnUp(handler func())
- func (o *TabletTool) OnWheel(handler func(degrees wl.Fixed, clicks int32))
- func (o *TabletTool) SetCursor(serial uint32, surface *cross_wl_surface.Surface, hotspotX int32, ...) error
Constants ¶
const BUSTYPE_BLUETOOTH = 5
BUSTYPE_BLUETOOTH is the bustype bluetooth value.
const BUSTYPE_I2C = 24
BUSTYPE_I2C is the bustype i2c value.
const BUSTYPE_SERIAL = 17
BUSTYPE_SERIAL is the bustype serial value.
const BUSTYPE_USB = 3
BUSTYPE_USB is the bustype usb value.
const BUSTYPE_VIRTUAL = 6
BUSTYPE_VIRTUAL is the bustype virtual value.
const CAPABILITY_DISTANCE = 3
CAPABILITY_DISTANCE is the capability distance value.
const CAPABILITY_PRESSURE = 2
CAPABILITY_PRESSURE is the capability pressure value.
const CAPABILITY_ROTATION = 4
CAPABILITY_ROTATION is the capability rotation value.
const CAPABILITY_SLIDER = 5
CAPABILITY_SLIDER is the capability slider value.
const CAPABILITY_TILT = 1
CAPABILITY_TILT is the capability tilt value.
const CAPABILITY_WHEEL = 6
CAPABILITY_WHEEL is the capability wheel value.
const ERROR_ROLE = 0
ERROR_ROLE is the error role value.
const TYPE_AIRBRUSH = 0x144
TYPE_AIRBRUSH is the type airbrush value.
const TYPE_BRUSH = 0x142
TYPE_BRUSH is the type brush value.
const TYPE_ERASER = 0x141
TYPE_ERASER is the type eraser value.
const TYPE_FINGER = 0x145
TYPE_FINGER is the type finger value.
const TYPE_LENS = 0x147
TYPE_LENS is the type lens value.
const TYPE_MOUSE = 0x146
TYPE_MOUSE is the type mouse value.
const TYPE_PEN = 0x140
TYPE_PEN is the type pen value.
const TYPE_PENCIL = 0x143
TYPE_PENCIL is the type pencil value.
const TabletInterface = "zwp_tablet_v2"
TabletInterface is the protocol interface name.
const TabletManagerInterface = "zwp_tablet_manager_v2"
TabletManagerInterface is the protocol interface name.
const TabletPadDialInterface = "zwp_tablet_pad_dial_v2"
TabletPadDialInterface is the protocol interface name.
const TabletPadGroupInterface = "zwp_tablet_pad_group_v2"
TabletPadGroupInterface is the protocol interface name.
const TabletPadInterface = "zwp_tablet_pad_v2"
TabletPadInterface is the protocol interface name.
const TabletPadRingInterface = "zwp_tablet_pad_ring_v2"
TabletPadRingInterface is the protocol interface name.
const TabletPadStripInterface = "zwp_tablet_pad_strip_v2"
TabletPadStripInterface is the protocol interface name.
const TabletSeatInterface = "zwp_tablet_seat_v2"
TabletSeatInterface is the protocol interface name.
const TabletToolInterface = "zwp_tablet_tool_v2"
TabletToolInterface is the protocol interface name.
const ZWP_TABLET_PAD_RING_V2_SOURCE_FINGER = 1
ZWP_TABLET_PAD_RING_V2_SOURCE_FINGER is the source finger value.
const ZWP_TABLET_PAD_STRIP_V2_SOURCE_FINGER = 1
ZWP_TABLET_PAD_STRIP_V2_SOURCE_FINGER is the source finger value.
const ZWP_TABLET_PAD_V2_BUTTON_STATE_PRESSED = 1
ZWP_TABLET_PAD_V2_BUTTON_STATE_PRESSED is the button_state pressed value.
const ZWP_TABLET_PAD_V2_BUTTON_STATE_RELEASED = 0
ZWP_TABLET_PAD_V2_BUTTON_STATE_RELEASED is the button_state released value.
const ZWP_TABLET_TOOL_V2_BUTTON_STATE_PRESSED = 1
ZWP_TABLET_TOOL_V2_BUTTON_STATE_PRESSED is the button_state pressed value.
const ZWP_TABLET_TOOL_V2_BUTTON_STATE_RELEASED = 0
ZWP_TABLET_TOOL_V2_BUTTON_STATE_RELEASED is the button_state released value.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tablet ¶
Tablet is the generated binding for zwp_tablet_v2 version 2.
func (*Tablet) Dispatch ¶
Dispatch decodes one event on zwp_tablet_v2 and calls the registered handlers.
func (*Tablet) EventSignature ¶
EventSignature returns the declared event argument types in wire order.
func (*Tablet) OnBustype ¶
OnBustype registers a handler for the bustype event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*Tablet) OnDone ¶
func (o *Tablet) OnDone(handler func())
OnDone registers a handler for the done event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*Tablet) OnId ¶
OnId registers a handler for the id event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*Tablet) OnName ¶
OnName registers a handler for the name event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
type TabletManager ¶
TabletManager is the generated binding for zwp_tablet_manager_v2 version 2.
func NewTabletManager ¶
func NewTabletManager(ctx *wl.Context) *TabletManager
NewTabletManager returns an unbound TabletManager.
func (*TabletManager) Destroy ¶
func (o *TabletManager) Destroy() error
Destroy the zwp_tablet_manager_v2 object. Objects created from this object are unaffected and should be destroyed separately.
func (*TabletManager) Dispatch ¶
func (o *TabletManager) Dispatch(event *wl.Event)
Dispatch decodes one event on zwp_tablet_manager_v2 and calls the registered handlers.
func (*TabletManager) EventSignature ¶
func (o *TabletManager) EventSignature(opcode uint16) (string, bool)
EventSignature returns the declared event argument types in wire order.
func (*TabletManager) GetTabletSeat ¶
func (o *TabletManager) GetTabletSeat(seat *cross_wl_seat.Seat) (*TabletSeat, error)
Get the zwp_tablet_seat_v2 object for the given seat. This object provides access to all graphics tablets in this seat.
type TabletPad ¶
TabletPad is the generated binding for zwp_tablet_pad_v2 version 2.
func NewTabletPad ¶
NewTabletPad returns an unbound TabletPad.
func (*TabletPad) Destroy ¶
Destroy the zwp_tablet_pad_v2 object. Objects created from this object are unaffected and should be destroyed separately.
func (*TabletPad) Dispatch ¶
Dispatch decodes one event on zwp_tablet_pad_v2 and calls the registered handlers.
func (*TabletPad) EventSignature ¶
EventSignature returns the declared event argument types in wire order.
func (*TabletPad) OnButton ¶
OnButton registers a handler for the button event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPad) OnButtons ¶
OnButtons registers a handler for the buttons event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPad) OnDone ¶
func (o *TabletPad) OnDone(handler func())
OnDone registers a handler for the done event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPad) OnEnter ¶
OnEnter registers a handler for the enter event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPad) OnGroup ¶
func (o *TabletPad) OnGroup(handler func(padGroupObject *TabletPadGroup))
OnGroup registers a handler for the group event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPad) OnLeave ¶
OnLeave registers a handler for the leave event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPad) OnPath ¶
OnPath registers a handler for the path event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPad) OnRemoved ¶
func (o *TabletPad) OnRemoved(handler func())
OnRemoved registers a handler for the removed event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPad) SetFeedback ¶
Requests the compositor to use the provided feedback string associated with this button. This request should be issued immediately after a zwp_tablet_pad_group_v2.mode_switch event from the corresponding group is received, or whenever a button is mapped to a different action. See zwp_tablet_pad_group_v2.mode_switch for more details. Clients are encouraged to provide context-aware descriptions for the actions associated with each button, and compositors may use this information to offer visual feedback on the button layout (e.g. on-screen displays). Button indices start at 0. Setting the feedback string on a button that is reserved by the compositor (i.e. not belonging to any zwp_tablet_pad_group_v2) does not generate an error but the compositor is free to ignore the request. The provided string 'description' is a UTF-8 encoded string to be associated with this ring, and is considered user-visible; general internationalization rules apply. The serial argument will be that of the last zwp_tablet_pad_group_v2.mode_switch event received for the group of this button. Requests providing other serials than the most recent one will be ignored.
type TabletPadDial ¶
TabletPadDial is the generated binding for zwp_tablet_pad_dial_v2 version 2.
func NewTabletPadDial ¶
func NewTabletPadDial(ctx *wl.Context) *TabletPadDial
NewTabletPadDial returns an unbound TabletPadDial.
func (*TabletPadDial) Destroy ¶
func (o *TabletPadDial) Destroy() error
This destroys the client's resource for this dial object.
func (*TabletPadDial) Dispatch ¶
func (o *TabletPadDial) Dispatch(event *wl.Event)
Dispatch decodes one event on zwp_tablet_pad_dial_v2 and calls the registered handlers.
func (*TabletPadDial) EventSignature ¶
func (o *TabletPadDial) EventSignature(opcode uint16) (string, bool)
EventSignature returns the declared event argument types in wire order.
func (*TabletPadDial) OnDelta ¶
func (o *TabletPadDial) OnDelta(handler func(value120 int32))
OnDelta registers a handler for the delta event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPadDial) OnFrame ¶
func (o *TabletPadDial) OnFrame(handler func(time uint32))
OnFrame registers a handler for the frame event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPadDial) SetFeedback ¶
func (o *TabletPadDial) SetFeedback(description string, serial uint32) error
Requests the compositor to use the provided feedback string associated with this dial. This request should be issued immediately after a zwp_tablet_pad_group_v2.mode_switch event from the corresponding group is received, or whenever the dial is mapped to a different action. See zwp_tablet_pad_group_v2.mode_switch for more details. Clients are encouraged to provide context-aware descriptions for the actions associated with the dial, and compositors may use this information to offer visual feedback about the button layout (eg. on-screen displays). The provided string 'description' is a UTF-8 encoded string to be associated with this ring, and is considered user-visible; general internationalization rules apply. The serial argument will be that of the last zwp_tablet_pad_group_v2.mode_switch event received for the group of this dial. Requests providing other serials than the most recent one will be ignored.
type TabletPadGroup ¶
TabletPadGroup is the generated binding for zwp_tablet_pad_group_v2 version 2.
func NewTabletPadGroup ¶
func NewTabletPadGroup(ctx *wl.Context) *TabletPadGroup
NewTabletPadGroup returns an unbound TabletPadGroup.
func (*TabletPadGroup) Destroy ¶
func (o *TabletPadGroup) Destroy() error
Destroy the zwp_tablet_pad_group_v2 object. Objects created from this object are unaffected and should be destroyed separately.
func (*TabletPadGroup) Dispatch ¶
func (o *TabletPadGroup) Dispatch(event *wl.Event)
Dispatch decodes one event on zwp_tablet_pad_group_v2 and calls the registered handlers.
func (*TabletPadGroup) EventSignature ¶
func (o *TabletPadGroup) EventSignature(opcode uint16) (string, bool)
EventSignature returns the declared event argument types in wire order.
func (*TabletPadGroup) OnButtons ¶
func (o *TabletPadGroup) OnButtons(handler func(buttons []byte))
OnButtons registers a handler for the buttons event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPadGroup) OnDial ¶
func (o *TabletPadGroup) OnDial(handler func(dialObject *TabletPadDial))
OnDial registers a handler for the dial event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPadGroup) OnDone ¶
func (o *TabletPadGroup) OnDone(handler func())
OnDone registers a handler for the done event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPadGroup) OnModeSwitch ¶
func (o *TabletPadGroup) OnModeSwitch(handler func(time uint32, serial uint32, mode uint32))
OnModeSwitch registers a handler for the mode_switch event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPadGroup) OnModes ¶
func (o *TabletPadGroup) OnModes(handler func(modes uint32))
OnModes registers a handler for the modes event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPadGroup) OnRing ¶
func (o *TabletPadGroup) OnRing(handler func(ringObject *TabletPadRing))
OnRing registers a handler for the ring event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPadGroup) OnStrip ¶
func (o *TabletPadGroup) OnStrip(handler func(stripObject *TabletPadStrip))
OnStrip registers a handler for the strip event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
type TabletPadRing ¶
TabletPadRing is the generated binding for zwp_tablet_pad_ring_v2 version 2.
func NewTabletPadRing ¶
func NewTabletPadRing(ctx *wl.Context) *TabletPadRing
NewTabletPadRing returns an unbound TabletPadRing.
func (*TabletPadRing) Destroy ¶
func (o *TabletPadRing) Destroy() error
This destroys the client's resource for this ring object.
func (*TabletPadRing) Dispatch ¶
func (o *TabletPadRing) Dispatch(event *wl.Event)
Dispatch decodes one event on zwp_tablet_pad_ring_v2 and calls the registered handlers.
func (*TabletPadRing) EventSignature ¶
func (o *TabletPadRing) EventSignature(opcode uint16) (string, bool)
EventSignature returns the declared event argument types in wire order.
func (*TabletPadRing) OnAngle ¶
func (o *TabletPadRing) OnAngle(handler func(degrees wl.Fixed))
OnAngle registers a handler for the angle event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPadRing) OnFrame ¶
func (o *TabletPadRing) OnFrame(handler func(time uint32))
OnFrame registers a handler for the frame event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPadRing) OnSource ¶
func (o *TabletPadRing) OnSource(handler func(source uint32))
OnSource registers a handler for the source event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPadRing) OnStop ¶
func (o *TabletPadRing) OnStop(handler func())
OnStop registers a handler for the stop event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPadRing) SetFeedback ¶
func (o *TabletPadRing) SetFeedback(description string, serial uint32) error
Request that the compositor use the provided feedback string associated with this ring. This request should be issued immediately after a zwp_tablet_pad_group_v2.mode_switch event from the corresponding group is received, or whenever the ring is mapped to a different action. See zwp_tablet_pad_group_v2.mode_switch for more details. Clients are encouraged to provide context-aware descriptions for the actions associated with the ring; compositors may use this information to offer visual feedback about the button layout (eg. on-screen displays). The provided string 'description' is a UTF-8 encoded string to be associated with this ring, and is considered user-visible; general internationalization rules apply. The serial argument will be that of the last zwp_tablet_pad_group_v2.mode_switch event received for the group of this ring. Requests providing other serials than the most recent one will be ignored.
type TabletPadStrip ¶
TabletPadStrip is the generated binding for zwp_tablet_pad_strip_v2 version 2.
func NewTabletPadStrip ¶
func NewTabletPadStrip(ctx *wl.Context) *TabletPadStrip
NewTabletPadStrip returns an unbound TabletPadStrip.
func (*TabletPadStrip) Destroy ¶
func (o *TabletPadStrip) Destroy() error
This destroys the client's resource for this strip object.
func (*TabletPadStrip) Dispatch ¶
func (o *TabletPadStrip) Dispatch(event *wl.Event)
Dispatch decodes one event on zwp_tablet_pad_strip_v2 and calls the registered handlers.
func (*TabletPadStrip) EventSignature ¶
func (o *TabletPadStrip) EventSignature(opcode uint16) (string, bool)
EventSignature returns the declared event argument types in wire order.
func (*TabletPadStrip) OnFrame ¶
func (o *TabletPadStrip) OnFrame(handler func(time uint32))
OnFrame registers a handler for the frame event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPadStrip) OnPosition ¶
func (o *TabletPadStrip) OnPosition(handler func(position uint32))
OnPosition registers a handler for the position event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPadStrip) OnSource ¶
func (o *TabletPadStrip) OnSource(handler func(source uint32))
OnSource registers a handler for the source event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPadStrip) OnStop ¶
func (o *TabletPadStrip) OnStop(handler func())
OnStop registers a handler for the stop event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletPadStrip) SetFeedback ¶
func (o *TabletPadStrip) SetFeedback(description string, serial uint32) error
Requests the compositor to use the provided feedback string associated with this strip. This request should be issued immediately after a zwp_tablet_pad_group_v2.mode_switch event from the corresponding group is received, or whenever the strip is mapped to a different action. See zwp_tablet_pad_group_v2.mode_switch for more details. Clients are encouraged to provide context-aware descriptions for the actions associated with the strip, and compositors may use this information to offer visual feedback about the button layout (eg. on-screen displays). The provided string 'description' is a UTF-8 encoded string to be associated with this ring, and is considered user-visible; general internationalization rules apply. The serial argument will be that of the last zwp_tablet_pad_group_v2.mode_switch event received for the group of this strip. Requests providing other serials than the most recent one will be ignored.
type TabletSeat ¶
TabletSeat is the generated binding for zwp_tablet_seat_v2 version 2.
func NewTabletSeat ¶
func NewTabletSeat(ctx *wl.Context) *TabletSeat
NewTabletSeat returns an unbound TabletSeat.
func (*TabletSeat) Destroy ¶
func (o *TabletSeat) Destroy() error
Destroy the zwp_tablet_seat_v2 object. Objects created from this object are unaffected and should be destroyed separately.
func (*TabletSeat) Dispatch ¶
func (o *TabletSeat) Dispatch(event *wl.Event)
Dispatch decodes one event on zwp_tablet_seat_v2 and calls the registered handlers.
func (*TabletSeat) EventSignature ¶
func (o *TabletSeat) EventSignature(opcode uint16) (string, bool)
EventSignature returns the declared event argument types in wire order.
func (*TabletSeat) OnPadAdded ¶
func (o *TabletSeat) OnPadAdded(handler func(idObject *TabletPad))
OnPadAdded registers a handler for the pad_added event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletSeat) OnTabletAdded ¶
func (o *TabletSeat) OnTabletAdded(handler func(idObject *Tablet))
OnTabletAdded registers a handler for the tablet_added event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletSeat) OnToolAdded ¶
func (o *TabletSeat) OnToolAdded(handler func(idObject *TabletTool))
OnToolAdded registers a handler for the tool_added event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
type TabletTool ¶
TabletTool is the generated binding for zwp_tablet_tool_v2 version 2.
func NewTabletTool ¶
func NewTabletTool(ctx *wl.Context) *TabletTool
NewTabletTool returns an unbound TabletTool.
func (*TabletTool) Destroy ¶
func (o *TabletTool) Destroy() error
This destroys the client's resource for this tool object.
func (*TabletTool) Dispatch ¶
func (o *TabletTool) Dispatch(event *wl.Event)
Dispatch decodes one event on zwp_tablet_tool_v2 and calls the registered handlers.
func (*TabletTool) EventSignature ¶
func (o *TabletTool) EventSignature(opcode uint16) (string, bool)
EventSignature returns the declared event argument types in wire order.
func (*TabletTool) OnButton ¶
func (o *TabletTool) OnButton(handler func(serial uint32, button uint32, state uint32))
OnButton registers a handler for the button event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletTool) OnCapability ¶
func (o *TabletTool) OnCapability(handler func(capability uint32))
OnCapability registers a handler for the capability event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletTool) OnDistance ¶
func (o *TabletTool) OnDistance(handler func(distance uint32))
OnDistance registers a handler for the distance event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletTool) OnDone ¶
func (o *TabletTool) OnDone(handler func())
OnDone registers a handler for the done event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletTool) OnDown ¶
func (o *TabletTool) OnDown(handler func(serial uint32))
OnDown registers a handler for the down event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletTool) OnFrame ¶
func (o *TabletTool) OnFrame(handler func(time uint32))
OnFrame registers a handler for the frame event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletTool) OnHardwareIdWacom ¶
func (o *TabletTool) OnHardwareIdWacom(handler func(hardwareIdHi uint32, hardwareIdLo uint32))
OnHardwareIdWacom registers a handler for the hardware_id_wacom event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletTool) OnHardwareSerial ¶
func (o *TabletTool) OnHardwareSerial(handler func(hardwareSerialHi uint32, hardwareSerialLo uint32))
OnHardwareSerial registers a handler for the hardware_serial event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletTool) OnMotion ¶
func (o *TabletTool) OnMotion(handler func(x wl.Fixed, y wl.Fixed))
OnMotion registers a handler for the motion event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletTool) OnPressure ¶
func (o *TabletTool) OnPressure(handler func(pressure uint32))
OnPressure registers a handler for the pressure event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletTool) OnProximityIn ¶
func (o *TabletTool) OnProximityIn(handler func(serial uint32, tabletID uint32, surfaceID uint32))
OnProximityIn registers a handler for the proximity_in event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletTool) OnProximityOut ¶
func (o *TabletTool) OnProximityOut(handler func())
OnProximityOut registers a handler for the proximity_out event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletTool) OnRemoved ¶
func (o *TabletTool) OnRemoved(handler func())
OnRemoved registers a handler for the removed event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletTool) OnRotation ¶
func (o *TabletTool) OnRotation(handler func(degrees wl.Fixed))
OnRotation registers a handler for the rotation event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletTool) OnSlider ¶
func (o *TabletTool) OnSlider(handler func(position int32))
OnSlider registers a handler for the slider event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletTool) OnTilt ¶
func (o *TabletTool) OnTilt(handler func(tiltX wl.Fixed, tiltY wl.Fixed))
OnTilt registers a handler for the tilt event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletTool) OnType ¶
func (o *TabletTool) OnType(handler func(toolType uint32))
OnType registers a handler for the type event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletTool) OnUp ¶
func (o *TabletTool) OnUp(handler func())
OnUp registers a handler for the up event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletTool) OnWheel ¶
func (o *TabletTool) OnWheel(handler func(degrees wl.Fixed, clicks int32))
OnWheel registers a handler for the wheel event.
Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.
func (*TabletTool) SetCursor ¶
func (o *TabletTool) SetCursor(serial uint32, surface *cross_wl_surface.Surface, hotspotX int32, hotspotY int32) error
Sets the surface of the cursor used for this tool on the given tablet. This request only takes effect if the tool is in proximity of one of the requesting client's surfaces or the surface parameter is the current pointer surface. If there was a previous surface set with this request it is replaced. If surface is NULL, the cursor image is hidden. The parameters hotspot_x and hotspot_y define the position of the pointer surface relative to the pointer location. Its top-left corner is always at (x, y) - (hotspot_x, hotspot_y), where (x, y) are the coordinates of the pointer location, in surface-local coordinates. On surface.attach requests to the pointer surface, hotspot_x and hotspot_y are decremented by the x and y parameters passed to the request. Attach must be confirmed by wl_surface.commit as usual. The hotspot can also be updated by passing the currently set pointer surface to this request with new values for hotspot_x and hotspot_y. The current and pending input regions of the wl_surface are cleared, and wl_surface.set_input_region is ignored until the wl_surface is no longer used as the cursor. When the use as a cursor ends, the current and pending input regions become undefined, and the wl_surface is unmapped. This request gives the surface the role of a zwp_tablet_tool_v2 cursor. A surface may only ever be used as the cursor surface for one zwp_tablet_tool_v2. If the surface already has another role or has previously been used as cursor surface for a different tool, a protocol error is raised.