Documentation
¶
Index ¶
- Variables
- type ZwpConfinedPointerV1
- func (obj *ZwpConfinedPointerV1) Base() *wire.Object
- func (obj *ZwpConfinedPointerV1) Dispatch(msg *wire.Message) error
- func (obj *ZwpConfinedPointerV1) Handler() ZwpConfinedPointerV1Handler
- func (obj *ZwpConfinedPointerV1) SendConfined() error
- func (obj *ZwpConfinedPointerV1) SendUnconfined() error
- type ZwpConfinedPointerV1Handler
- type ZwpLockedPointerV1
- type ZwpLockedPointerV1Handler
- type ZwpPointerConstraintsV1
- func (obj *ZwpPointerConstraintsV1) Base() *wire.Object
- func (obj *ZwpPointerConstraintsV1) Dispatch(msg *wire.Message) error
- func (obj *ZwpPointerConstraintsV1) Handler() ZwpPointerConstraintsV1Handler
- func (obj *ZwpPointerConstraintsV1) ProtocolError(code ZwpPointerConstraintsV1Error, format string, args ...any) error
- type ZwpPointerConstraintsV1Error
- type ZwpPointerConstraintsV1Handler
- type ZwpPointerConstraintsV1Lifetime
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, id wire.ObjectID, version uint32, h ZwpConfinedPointerV1Handler) (*ZwpConfinedPointerV1, error)
func (*ZwpConfinedPointerV1) Base ¶
func (obj *ZwpConfinedPointerV1) Base() *wire.Object
func (*ZwpConfinedPointerV1) Dispatch ¶
func (obj *ZwpConfinedPointerV1) Dispatch(msg *wire.Message) error
func (*ZwpConfinedPointerV1) Handler ¶
func (obj *ZwpConfinedPointerV1) Handler() ZwpConfinedPointerV1Handler
func (*ZwpConfinedPointerV1) SendConfined ¶
func (obj *ZwpConfinedPointerV1) SendConfined() error
func (*ZwpConfinedPointerV1) SendUnconfined ¶
func (obj *ZwpConfinedPointerV1) SendUnconfined() error
type ZwpConfinedPointerV1Handler ¶
type ZwpConfinedPointerV1Handler interface {
Destroy(obj *ZwpConfinedPointerV1) error
SetRegion(obj *ZwpConfinedPointerV1, region *wayland.WlRegion) 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, id wire.ObjectID, version uint32, h ZwpLockedPointerV1Handler) (*ZwpLockedPointerV1, error)
func (*ZwpLockedPointerV1) Base ¶
func (obj *ZwpLockedPointerV1) Base() *wire.Object
func (*ZwpLockedPointerV1) Dispatch ¶
func (obj *ZwpLockedPointerV1) Dispatch(msg *wire.Message) error
func (*ZwpLockedPointerV1) Handler ¶
func (obj *ZwpLockedPointerV1) Handler() ZwpLockedPointerV1Handler
func (*ZwpLockedPointerV1) SendLocked ¶
func (obj *ZwpLockedPointerV1) SendLocked() error
func (*ZwpLockedPointerV1) SendUnlocked ¶
func (obj *ZwpLockedPointerV1) SendUnlocked() error
type ZwpLockedPointerV1Handler ¶
type ZwpLockedPointerV1Handler interface {
Destroy(obj *ZwpLockedPointerV1) error
SetCursorPositionHint(obj *ZwpLockedPointerV1, surfaceX wire.Fixed, surfaceY wire.Fixed) error
SetRegion(obj *ZwpLockedPointerV1, region *wayland.WlRegion) error
}
type ZwpPointerConstraintsV1 ¶
type ZwpPointerConstraintsV1 struct {
// contains filtered or unexported fields
}
func CreateZwpPointerConstraintsV1 ¶
func CreateZwpPointerConstraintsV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ZwpPointerConstraintsV1) (ZwpPointerConstraintsV1Handler, error)) (*ZwpPointerConstraintsV1, error)
func NewZwpPointerConstraintsV1 ¶
func NewZwpPointerConstraintsV1(p wire.Peer, id wire.ObjectID, version uint32, h ZwpPointerConstraintsV1Handler) (*ZwpPointerConstraintsV1, error)
func (*ZwpPointerConstraintsV1) Base ¶
func (obj *ZwpPointerConstraintsV1) Base() *wire.Object
func (*ZwpPointerConstraintsV1) Dispatch ¶
func (obj *ZwpPointerConstraintsV1) Dispatch(msg *wire.Message) error
func (*ZwpPointerConstraintsV1) Handler ¶
func (obj *ZwpPointerConstraintsV1) Handler() ZwpPointerConstraintsV1Handler
func (*ZwpPointerConstraintsV1) ProtocolError ¶
func (obj *ZwpPointerConstraintsV1) ProtocolError(code ZwpPointerConstraintsV1Error, format string, args ...any) error
type ZwpPointerConstraintsV1Error ¶
type ZwpPointerConstraintsV1Error uint32
const (
ZwpPointerConstraintsV1ErrorAlreadyConstrained ZwpPointerConstraintsV1Error = 1
)
func (ZwpPointerConstraintsV1Error) Valid ¶
func (v ZwpPointerConstraintsV1Error) Valid(version uint32) bool
type ZwpPointerConstraintsV1Handler ¶
type ZwpPointerConstraintsV1Handler interface {
Destroy(obj *ZwpPointerConstraintsV1) error
LockPointer(obj *ZwpPointerConstraintsV1, id *ZwpLockedPointerV1, surface *wayland.WlSurface, pointer *wayland.WlPointer, region *wayland.WlRegion, lifetime ZwpPointerConstraintsV1Lifetime) (ZwpLockedPointerV1Handler, error)
ConfinePointer(obj *ZwpPointerConstraintsV1, id *ZwpConfinedPointerV1, surface *wayland.WlSurface, pointer *wayland.WlPointer, region *wayland.WlRegion, lifetime ZwpPointerConstraintsV1Lifetime) (ZwpConfinedPointerV1Handler, error)
}
type ZwpPointerConstraintsV1Lifetime ¶
type ZwpPointerConstraintsV1Lifetime uint32
const ( ZwpPointerConstraintsV1LifetimeOneshot ZwpPointerConstraintsV1Lifetime = 1 ZwpPointerConstraintsV1LifetimePersistent ZwpPointerConstraintsV1Lifetime = 2 )
func (ZwpPointerConstraintsV1Lifetime) Valid ¶
func (v ZwpPointerConstraintsV1Lifetime) Valid(version uint32) bool
Click to show internal directories.
Click to hide internal directories.