pointerconstraints

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT, MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ZwpConfinedPointerV1Interface = &wire.Interface{
	Name:    "zwp_confined_pointer_v1",
	Version: 1,
	Requests: []wire.MessageSpec{
		{Name: "destroy", Since: 1, Destructor: true},
		{Name: "set_region", Since: 1, Args: []wire.Arg{{Name: "region", Type: wire.ArgObject, Interface: "wl_region", Nullable: true}}},
	},
	Events: []wire.MessageSpec{
		{Name: "confined", Since: 1},
		{Name: "unconfined", Since: 1},
	},
}
View Source
var ZwpLockedPointerV1Interface = &wire.Interface{
	Name:    "zwp_locked_pointer_v1",
	Version: 1,
	Requests: []wire.MessageSpec{
		{Name: "destroy", Since: 1, Destructor: true},
		{Name: "set_cursor_position_hint", Since: 1, Args: []wire.Arg{{Name: "surface_x", Type: wire.ArgFixed}, {Name: "surface_y", Type: wire.ArgFixed}}},
		{Name: "set_region", Since: 1, Args: []wire.Arg{{Name: "region", Type: wire.ArgObject, Interface: "wl_region", Nullable: true}}},
	},
	Events: []wire.MessageSpec{
		{Name: "locked", Since: 1},
		{Name: "unlocked", Since: 1},
	},
}
View Source
var ZwpPointerConstraintsV1Interface = &wire.Interface{
	Name:    "zwp_pointer_constraints_v1",
	Version: 1,
	Requests: []wire.MessageSpec{
		{Name: "destroy", Since: 1, Destructor: true},
		{Name: "lock_pointer", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgNewID, Interface: "zwp_locked_pointer_v1"}, {Name: "surface", Type: wire.ArgObject, Interface: "wl_surface"}, {Name: "pointer", Type: wire.ArgObject, Interface: "wl_pointer"}, {Name: "region", Type: wire.ArgObject, Interface: "wl_region", Nullable: true}, {Name: "lifetime", Type: wire.ArgUint}}},
		{Name: "confine_pointer", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgNewID, Interface: "zwp_confined_pointer_v1"}, {Name: "surface", Type: wire.ArgObject, Interface: "wl_surface"}, {Name: "pointer", Type: wire.ArgObject, Interface: "wl_pointer"}, {Name: "region", Type: wire.ArgObject, Interface: "wl_region", Nullable: true}, {Name: "lifetime", Type: wire.ArgUint}}},
	},
}

Functions

This section is empty.

Types

type ZwpConfinedPointerV1

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

func CreateZwpConfinedPointerV1

func CreateZwpConfinedPointerV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ZwpConfinedPointerV1) (ZwpConfinedPointerV1Handler, error)) (*ZwpConfinedPointerV1, error)

func NewZwpConfinedPointerV1

func NewZwpConfinedPointerV1(p wire.Peer, version uint32, h ZwpConfinedPointerV1Handler) (*ZwpConfinedPointerV1, error)

func (*ZwpConfinedPointerV1) Base

func (obj *ZwpConfinedPointerV1) Base() *wire.Object

func (*ZwpConfinedPointerV1) Destroy

func (obj *ZwpConfinedPointerV1) Destroy() error

func (*ZwpConfinedPointerV1) Dispatch

func (obj *ZwpConfinedPointerV1) Dispatch(msg *wire.Message) error

func (*ZwpConfinedPointerV1) Handler

func (*ZwpConfinedPointerV1) SetRegion

func (obj *ZwpConfinedPointerV1) SetRegion(region *wayland.WlRegion) error

type ZwpConfinedPointerV1Handler

type ZwpConfinedPointerV1Handler interface {
	Confined(obj *ZwpConfinedPointerV1) error
	Unconfined(obj *ZwpConfinedPointerV1) error
}

type ZwpLockedPointerV1

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

func CreateZwpLockedPointerV1

func CreateZwpLockedPointerV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ZwpLockedPointerV1) (ZwpLockedPointerV1Handler, error)) (*ZwpLockedPointerV1, error)

func NewZwpLockedPointerV1

func NewZwpLockedPointerV1(p wire.Peer, version uint32, h ZwpLockedPointerV1Handler) (*ZwpLockedPointerV1, error)

func (*ZwpLockedPointerV1) Base

func (obj *ZwpLockedPointerV1) Base() *wire.Object

func (*ZwpLockedPointerV1) Destroy

func (obj *ZwpLockedPointerV1) Destroy() error

func (*ZwpLockedPointerV1) Dispatch

func (obj *ZwpLockedPointerV1) Dispatch(msg *wire.Message) error

func (*ZwpLockedPointerV1) Handler

func (*ZwpLockedPointerV1) SetCursorPositionHint

func (obj *ZwpLockedPointerV1) SetCursorPositionHint(surfaceX wire.Fixed, surfaceY wire.Fixed) error

func (*ZwpLockedPointerV1) SetRegion

func (obj *ZwpLockedPointerV1) SetRegion(region *wayland.WlRegion) error

type ZwpLockedPointerV1Handler

type ZwpLockedPointerV1Handler interface {
	Locked(obj *ZwpLockedPointerV1) error
	Unlocked(obj *ZwpLockedPointerV1) error
}

type ZwpPointerConstraintsV1

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

func CreateZwpPointerConstraintsV1

func CreateZwpPointerConstraintsV1(p wire.Peer, id wire.ObjectID, version uint32) (*ZwpPointerConstraintsV1, error)

func NewZwpPointerConstraintsV1

func NewZwpPointerConstraintsV1(p wire.Peer, version uint32) (*ZwpPointerConstraintsV1, error)

func (*ZwpPointerConstraintsV1) Base

func (obj *ZwpPointerConstraintsV1) Base() *wire.Object

func (*ZwpPointerConstraintsV1) ConfinePointer

func (*ZwpPointerConstraintsV1) Destroy

func (obj *ZwpPointerConstraintsV1) Destroy() error

func (*ZwpPointerConstraintsV1) Dispatch

func (obj *ZwpPointerConstraintsV1) Dispatch(msg *wire.Message) error

func (*ZwpPointerConstraintsV1) LockPointer

type ZwpPointerConstraintsV1Error

type ZwpPointerConstraintsV1Error uint32
const (
	ZwpPointerConstraintsV1ErrorAlreadyConstrained ZwpPointerConstraintsV1Error = 1
)

func (ZwpPointerConstraintsV1Error) Valid

func (v ZwpPointerConstraintsV1Error) Valid(version uint32) bool

type ZwpPointerConstraintsV1Lifetime

type ZwpPointerConstraintsV1Lifetime uint32
const (
	ZwpPointerConstraintsV1LifetimeOneshot    ZwpPointerConstraintsV1Lifetime = 1
	ZwpPointerConstraintsV1LifetimePersistent ZwpPointerConstraintsV1Lifetime = 2
)

func (ZwpPointerConstraintsV1Lifetime) Valid

func (v ZwpPointerConstraintsV1Lifetime) Valid(version uint32) bool

Jump to

Keyboard shortcuts

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