Documentation
¶
Index ¶
- Variables
- type ExtSessionLockManagerV1
- type ExtSessionLockManagerV1Handler
- type ExtSessionLockSurfaceV1
- func (obj *ExtSessionLockSurfaceV1) Base() *wire.Object
- func (obj *ExtSessionLockSurfaceV1) Dispatch(msg *wire.Message) error
- func (obj *ExtSessionLockSurfaceV1) Handler() ExtSessionLockSurfaceV1Handler
- func (obj *ExtSessionLockSurfaceV1) ProtocolError(code ExtSessionLockSurfaceV1Error, format string, args ...any) error
- func (obj *ExtSessionLockSurfaceV1) SendConfigure(serial uint32, width uint32, height uint32) error
- type ExtSessionLockSurfaceV1Error
- type ExtSessionLockSurfaceV1Handler
- type ExtSessionLockV1
- func (obj *ExtSessionLockV1) Base() *wire.Object
- func (obj *ExtSessionLockV1) Dispatch(msg *wire.Message) error
- func (obj *ExtSessionLockV1) Handler() ExtSessionLockV1Handler
- func (obj *ExtSessionLockV1) ProtocolError(code ExtSessionLockV1Error, format string, args ...any) error
- func (obj *ExtSessionLockV1) SendFinished() error
- func (obj *ExtSessionLockV1) SendLocked() error
- type ExtSessionLockV1Error
- type ExtSessionLockV1Handler
Constants ¶
This section is empty.
Variables ¶
View Source
var ExtSessionLockManagerV1Interface = &wire.Interface{ Name: "ext_session_lock_manager_v1", Version: 1, Requests: []wire.MessageSpec{ {Name: "destroy", Since: 1, Destructor: true}, {Name: "lock", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgNewID, Interface: "ext_session_lock_v1"}}}, }, }
View Source
var ExtSessionLockSurfaceV1Interface = &wire.Interface{ Name: "ext_session_lock_surface_v1", Version: 1, Requests: []wire.MessageSpec{ {Name: "destroy", Since: 1, Destructor: true}, {Name: "ack_configure", Since: 1, Args: []wire.Arg{{Name: "serial", Type: wire.ArgUint}}}, }, Events: []wire.MessageSpec{ {Name: "configure", Since: 1, Args: []wire.Arg{{Name: "serial", Type: wire.ArgUint}, {Name: "width", Type: wire.ArgUint}, {Name: "height", Type: wire.ArgUint}}}, }, }
View Source
var ExtSessionLockV1Interface = &wire.Interface{ Name: "ext_session_lock_v1", Version: 1, Requests: []wire.MessageSpec{ {Name: "destroy", Since: 1, Destructor: true}, {Name: "get_lock_surface", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgNewID, Interface: "ext_session_lock_surface_v1"}, {Name: "surface", Type: wire.ArgObject, Interface: "wl_surface"}, {Name: "output", Type: wire.ArgObject, Interface: "wl_output"}}}, {Name: "unlock_and_destroy", Since: 1, Destructor: true}, }, Events: []wire.MessageSpec{ {Name: "locked", Since: 1}, {Name: "finished", Since: 1}, }, }
Functions ¶
This section is empty.
Types ¶
type ExtSessionLockManagerV1 ¶
type ExtSessionLockManagerV1 struct {
// contains filtered or unexported fields
}
func CreateExtSessionLockManagerV1 ¶
func CreateExtSessionLockManagerV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ExtSessionLockManagerV1) (ExtSessionLockManagerV1Handler, error)) (*ExtSessionLockManagerV1, error)
func NewExtSessionLockManagerV1 ¶
func NewExtSessionLockManagerV1(p wire.Peer, id wire.ObjectID, version uint32, h ExtSessionLockManagerV1Handler) (*ExtSessionLockManagerV1, error)
func (*ExtSessionLockManagerV1) Base ¶
func (obj *ExtSessionLockManagerV1) Base() *wire.Object
func (*ExtSessionLockManagerV1) Dispatch ¶
func (obj *ExtSessionLockManagerV1) Dispatch(msg *wire.Message) error
func (*ExtSessionLockManagerV1) Handler ¶
func (obj *ExtSessionLockManagerV1) Handler() ExtSessionLockManagerV1Handler
type ExtSessionLockManagerV1Handler ¶
type ExtSessionLockManagerV1Handler interface {
Destroy(obj *ExtSessionLockManagerV1) error
Lock(obj *ExtSessionLockManagerV1, id *ExtSessionLockV1) (ExtSessionLockV1Handler, error)
}
type ExtSessionLockSurfaceV1 ¶
type ExtSessionLockSurfaceV1 struct {
// contains filtered or unexported fields
}
func CreateExtSessionLockSurfaceV1 ¶
func CreateExtSessionLockSurfaceV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ExtSessionLockSurfaceV1) (ExtSessionLockSurfaceV1Handler, error)) (*ExtSessionLockSurfaceV1, error)
func NewExtSessionLockSurfaceV1 ¶
func NewExtSessionLockSurfaceV1(p wire.Peer, id wire.ObjectID, version uint32, h ExtSessionLockSurfaceV1Handler) (*ExtSessionLockSurfaceV1, error)
func (*ExtSessionLockSurfaceV1) Base ¶
func (obj *ExtSessionLockSurfaceV1) Base() *wire.Object
func (*ExtSessionLockSurfaceV1) Dispatch ¶
func (obj *ExtSessionLockSurfaceV1) Dispatch(msg *wire.Message) error
func (*ExtSessionLockSurfaceV1) Handler ¶
func (obj *ExtSessionLockSurfaceV1) Handler() ExtSessionLockSurfaceV1Handler
func (*ExtSessionLockSurfaceV1) ProtocolError ¶
func (obj *ExtSessionLockSurfaceV1) ProtocolError(code ExtSessionLockSurfaceV1Error, format string, args ...any) error
func (*ExtSessionLockSurfaceV1) SendConfigure ¶
func (obj *ExtSessionLockSurfaceV1) SendConfigure(serial uint32, width uint32, height uint32) error
type ExtSessionLockSurfaceV1Error ¶
type ExtSessionLockSurfaceV1Error uint32
const ( ExtSessionLockSurfaceV1ErrorCommitBeforeFirstAck ExtSessionLockSurfaceV1Error = 0 ExtSessionLockSurfaceV1ErrorNullBuffer ExtSessionLockSurfaceV1Error = 1 ExtSessionLockSurfaceV1ErrorDimensionsMismatch ExtSessionLockSurfaceV1Error = 2 ExtSessionLockSurfaceV1ErrorInvalidSerial ExtSessionLockSurfaceV1Error = 3 )
func (ExtSessionLockSurfaceV1Error) Valid ¶
func (v ExtSessionLockSurfaceV1Error) Valid(version uint32) bool
type ExtSessionLockSurfaceV1Handler ¶
type ExtSessionLockSurfaceV1Handler interface {
Destroy(obj *ExtSessionLockSurfaceV1) error
AckConfigure(obj *ExtSessionLockSurfaceV1, serial uint32) error
}
type ExtSessionLockV1 ¶
type ExtSessionLockV1 struct {
// contains filtered or unexported fields
}
func CreateExtSessionLockV1 ¶
func CreateExtSessionLockV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ExtSessionLockV1) (ExtSessionLockV1Handler, error)) (*ExtSessionLockV1, error)
func NewExtSessionLockV1 ¶
func NewExtSessionLockV1(p wire.Peer, id wire.ObjectID, version uint32, h ExtSessionLockV1Handler) (*ExtSessionLockV1, error)
func (*ExtSessionLockV1) Base ¶
func (obj *ExtSessionLockV1) Base() *wire.Object
func (*ExtSessionLockV1) Handler ¶
func (obj *ExtSessionLockV1) Handler() ExtSessionLockV1Handler
func (*ExtSessionLockV1) ProtocolError ¶
func (obj *ExtSessionLockV1) ProtocolError(code ExtSessionLockV1Error, format string, args ...any) error
func (*ExtSessionLockV1) SendFinished ¶
func (obj *ExtSessionLockV1) SendFinished() error
func (*ExtSessionLockV1) SendLocked ¶
func (obj *ExtSessionLockV1) SendLocked() error
type ExtSessionLockV1Error ¶
type ExtSessionLockV1Error uint32
const ( ExtSessionLockV1ErrorInvalidDestroy ExtSessionLockV1Error = 0 ExtSessionLockV1ErrorInvalidUnlock ExtSessionLockV1Error = 1 ExtSessionLockV1ErrorRole ExtSessionLockV1Error = 2 ExtSessionLockV1ErrorDuplicateOutput ExtSessionLockV1Error = 3 ExtSessionLockV1ErrorAlreadyConstructed ExtSessionLockV1Error = 4 )
func (ExtSessionLockV1Error) Valid ¶
func (v ExtSessionLockV1Error) Valid(version uint32) bool
type ExtSessionLockV1Handler ¶
type ExtSessionLockV1Handler interface {
Destroy(obj *ExtSessionLockV1) error
GetLockSurface(obj *ExtSessionLockV1, id *ExtSessionLockSurfaceV1, surface *wayland.WlSurface, output *wayland.WlOutput) (ExtSessionLockSurfaceV1Handler, error)
UnlockAndDestroy(obj *ExtSessionLockV1) error
}
Click to show internal directories.
Click to hide internal directories.