Documentation
¶
Index ¶
Constants ¶
const WpPointerWarpInterface = "wp_pointer_warp_v1"
WpPointerWarpInterface is the protocol interface name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WpPointerWarp ¶
WpPointerWarp is the generated binding for wp_pointer_warp_v1 version 1.
func NewWpPointerWarp ¶
func NewWpPointerWarp(ctx *wl.Context) *WpPointerWarp
NewWpPointerWarp returns an unbound WpPointerWarp.
func (*WpPointerWarp) Destroy ¶
func (o *WpPointerWarp) Destroy() error
Destroy the pointer warp manager.
func (*WpPointerWarp) Dispatch ¶
func (o *WpPointerWarp) Dispatch(event *wl.Event)
Dispatch decodes one event on wp_pointer_warp_v1 and calls the registered handlers.
func (*WpPointerWarp) EventSignature ¶
func (o *WpPointerWarp) EventSignature(opcode uint16) (string, bool)
EventSignature returns the declared event argument types in wire order.
func (*WpPointerWarp) WarpPointer ¶
func (o *WpPointerWarp) WarpPointer(surface *cross_wl_surface.Surface, pointer *cross_wl_pointer.Pointer, x wl.Fixed, y wl.Fixed, serial uint32) error
Request the compositor to move the pointer to a surface-local position. Whether or not the compositor honors the request is implementation defined, but it should - honor it if the surface has pointer focus, including when it has an implicit pointer grab - reject it if the enter serial is incorrect - reject it if the requested position is outside of the surface Note that the enter serial is valid for any surface of the client, and does not have to be from the surface the pointer is warped to.