pointerwarp

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
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

type WpPointerWarp struct {
	wl.BaseProxy
}

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.

Jump to

Keyboard shortcuts

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