Documentation
¶
Index ¶
- Variables
- type ExtSessionLockManagerV1
- type ExtSessionLockSurfaceV1
- func (obj *ExtSessionLockSurfaceV1) AckConfigure(serial uint32) error
- func (obj *ExtSessionLockSurfaceV1) Base() *wire.Object
- func (obj *ExtSessionLockSurfaceV1) Destroy() error
- func (obj *ExtSessionLockSurfaceV1) Dispatch(msg *wire.Message) error
- func (obj *ExtSessionLockSurfaceV1) Handler() ExtSessionLockSurfaceV1Handler
- type ExtSessionLockSurfaceV1Error
- type ExtSessionLockSurfaceV1Handler
- type ExtSessionLockV1
- func (obj *ExtSessionLockV1) Base() *wire.Object
- func (obj *ExtSessionLockV1) Destroy() error
- func (obj *ExtSessionLockV1) Dispatch(msg *wire.Message) error
- func (obj *ExtSessionLockV1) GetLockSurface(h ExtSessionLockSurfaceV1Handler, surface *wayland.WlSurface, ...) (*ExtSessionLockSurfaceV1, error)
- func (obj *ExtSessionLockV1) Handler() ExtSessionLockV1Handler
- func (obj *ExtSessionLockV1) UnlockAndDestroy() 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 NewExtSessionLockManagerV1 ¶
func NewExtSessionLockManagerV1(p wire.Peer, version uint32) (*ExtSessionLockManagerV1, error)
func (*ExtSessionLockManagerV1) Base ¶
func (obj *ExtSessionLockManagerV1) Base() *wire.Object
func (*ExtSessionLockManagerV1) Destroy ¶
func (obj *ExtSessionLockManagerV1) Destroy() error
func (*ExtSessionLockManagerV1) Dispatch ¶
func (obj *ExtSessionLockManagerV1) Dispatch(msg *wire.Message) error
func (*ExtSessionLockManagerV1) Lock ¶
func (obj *ExtSessionLockManagerV1) Lock(h ExtSessionLockV1Handler) (*ExtSessionLockV1, 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, version uint32, h ExtSessionLockSurfaceV1Handler) (*ExtSessionLockSurfaceV1, error)
func (*ExtSessionLockSurfaceV1) AckConfigure ¶
func (obj *ExtSessionLockSurfaceV1) AckConfigure(serial uint32) error
func (*ExtSessionLockSurfaceV1) Base ¶
func (obj *ExtSessionLockSurfaceV1) Base() *wire.Object
func (*ExtSessionLockSurfaceV1) Destroy ¶
func (obj *ExtSessionLockSurfaceV1) Destroy() error
func (*ExtSessionLockSurfaceV1) Dispatch ¶
func (obj *ExtSessionLockSurfaceV1) Dispatch(msg *wire.Message) error
func (*ExtSessionLockSurfaceV1) Handler ¶
func (obj *ExtSessionLockSurfaceV1) Handler() ExtSessionLockSurfaceV1Handler
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 {
Configure(obj *ExtSessionLockSurfaceV1, serial uint32, width uint32, height 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, version uint32, h ExtSessionLockV1Handler) (*ExtSessionLockV1, error)
func (*ExtSessionLockV1) Base ¶
func (obj *ExtSessionLockV1) Base() *wire.Object
func (*ExtSessionLockV1) Destroy ¶
func (obj *ExtSessionLockV1) Destroy() error
func (*ExtSessionLockV1) GetLockSurface ¶
func (obj *ExtSessionLockV1) GetLockSurface(h ExtSessionLockSurfaceV1Handler, surface *wayland.WlSurface, output *wayland.WlOutput) (*ExtSessionLockSurfaceV1, error)
func (*ExtSessionLockV1) Handler ¶
func (obj *ExtSessionLockV1) Handler() ExtSessionLockV1Handler
func (*ExtSessionLockV1) UnlockAndDestroy ¶
func (obj *ExtSessionLockV1) UnlockAndDestroy() 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 {
Locked(obj *ExtSessionLockV1) error
Finished(obj *ExtSessionLockV1) error
}
Click to show internal directories.
Click to hide internal directories.