Documentation
¶
Index ¶
- Variables
- type ExtImageCopyCaptureCursorSessionV1
- func (obj *ExtImageCopyCaptureCursorSessionV1) Base() *wire.Object
- func (obj *ExtImageCopyCaptureCursorSessionV1) Dispatch(msg *wire.Message) error
- func (obj *ExtImageCopyCaptureCursorSessionV1) Handler() ExtImageCopyCaptureCursorSessionV1Handler
- func (obj *ExtImageCopyCaptureCursorSessionV1) ProtocolError(code ExtImageCopyCaptureCursorSessionV1Error, format string, args ...any) error
- func (obj *ExtImageCopyCaptureCursorSessionV1) SendEnter() error
- func (obj *ExtImageCopyCaptureCursorSessionV1) SendHotspot(x int32, y int32) error
- func (obj *ExtImageCopyCaptureCursorSessionV1) SendLeave() error
- func (obj *ExtImageCopyCaptureCursorSessionV1) SendPosition(x int32, y int32) error
- type ExtImageCopyCaptureCursorSessionV1Error
- type ExtImageCopyCaptureCursorSessionV1Handler
- type ExtImageCopyCaptureFrameV1
- func (obj *ExtImageCopyCaptureFrameV1) Base() *wire.Object
- func (obj *ExtImageCopyCaptureFrameV1) Dispatch(msg *wire.Message) error
- func (obj *ExtImageCopyCaptureFrameV1) Handler() ExtImageCopyCaptureFrameV1Handler
- func (obj *ExtImageCopyCaptureFrameV1) ProtocolError(code ExtImageCopyCaptureFrameV1Error, format string, args ...any) error
- func (obj *ExtImageCopyCaptureFrameV1) SendDamage(x int32, y int32, width int32, height int32) error
- func (obj *ExtImageCopyCaptureFrameV1) SendFailed(reason ExtImageCopyCaptureFrameV1FailureReason) error
- func (obj *ExtImageCopyCaptureFrameV1) SendPresentationTime(tvSecHi uint32, tvSecLo uint32, tvNsec uint32) error
- func (obj *ExtImageCopyCaptureFrameV1) SendReady() error
- func (obj *ExtImageCopyCaptureFrameV1) SendTransform(transform wayland.WlOutputTransform) error
- type ExtImageCopyCaptureFrameV1Error
- type ExtImageCopyCaptureFrameV1FailureReason
- type ExtImageCopyCaptureFrameV1Handler
- type ExtImageCopyCaptureManagerV1
- func (obj *ExtImageCopyCaptureManagerV1) Base() *wire.Object
- func (obj *ExtImageCopyCaptureManagerV1) Dispatch(msg *wire.Message) error
- func (obj *ExtImageCopyCaptureManagerV1) Handler() ExtImageCopyCaptureManagerV1Handler
- func (obj *ExtImageCopyCaptureManagerV1) ProtocolError(code ExtImageCopyCaptureManagerV1Error, format string, args ...any) error
- type ExtImageCopyCaptureManagerV1Error
- type ExtImageCopyCaptureManagerV1Handler
- type ExtImageCopyCaptureManagerV1Options
- type ExtImageCopyCaptureSessionV1
- func (obj *ExtImageCopyCaptureSessionV1) Base() *wire.Object
- func (obj *ExtImageCopyCaptureSessionV1) Dispatch(msg *wire.Message) error
- func (obj *ExtImageCopyCaptureSessionV1) Handler() ExtImageCopyCaptureSessionV1Handler
- func (obj *ExtImageCopyCaptureSessionV1) ProtocolError(code ExtImageCopyCaptureSessionV1Error, format string, args ...any) error
- func (obj *ExtImageCopyCaptureSessionV1) SendBufferSize(width uint32, height uint32) error
- func (obj *ExtImageCopyCaptureSessionV1) SendDmabufDevice(device []byte) error
- func (obj *ExtImageCopyCaptureSessionV1) SendDmabufFormat(format uint32, modifiers []byte) error
- func (obj *ExtImageCopyCaptureSessionV1) SendDone() error
- func (obj *ExtImageCopyCaptureSessionV1) SendShmFormat(format wayland.WlShmFormat) error
- func (obj *ExtImageCopyCaptureSessionV1) SendStopped() error
- type ExtImageCopyCaptureSessionV1Error
- type ExtImageCopyCaptureSessionV1Handler
Constants ¶
This section is empty.
Variables ¶
View Source
var ExtImageCopyCaptureCursorSessionV1Interface = &wire.Interface{ Name: "ext_image_copy_capture_cursor_session_v1", Version: 1, Requests: []wire.MessageSpec{ {Name: "destroy", Since: 1, Destructor: true}, {Name: "get_capture_session", Since: 1, Args: []wire.Arg{{Name: "session", Type: wire.ArgNewID, Interface: "ext_image_copy_capture_session_v1"}}}, }, Events: []wire.MessageSpec{ {Name: "enter", Since: 1}, {Name: "leave", Since: 1}, {Name: "position", Since: 1, Args: []wire.Arg{{Name: "x", Type: wire.ArgInt}, {Name: "y", Type: wire.ArgInt}}}, {Name: "hotspot", Since: 1, Args: []wire.Arg{{Name: "x", Type: wire.ArgInt}, {Name: "y", Type: wire.ArgInt}}}, }, }
View Source
var ExtImageCopyCaptureFrameV1Interface = &wire.Interface{ Name: "ext_image_copy_capture_frame_v1", Version: 1, Requests: []wire.MessageSpec{ {Name: "destroy", Since: 1, Destructor: true}, {Name: "attach_buffer", Since: 1, Args: []wire.Arg{{Name: "buffer", Type: wire.ArgObject, Interface: "wl_buffer"}}}, {Name: "damage_buffer", Since: 1, Args: []wire.Arg{{Name: "x", Type: wire.ArgInt}, {Name: "y", Type: wire.ArgInt}, {Name: "width", Type: wire.ArgInt}, {Name: "height", Type: wire.ArgInt}}}, {Name: "capture", Since: 1}, }, Events: []wire.MessageSpec{ {Name: "transform", Since: 1, Args: []wire.Arg{{Name: "transform", Type: wire.ArgUint}}}, {Name: "damage", Since: 1, Args: []wire.Arg{{Name: "x", Type: wire.ArgInt}, {Name: "y", Type: wire.ArgInt}, {Name: "width", Type: wire.ArgInt}, {Name: "height", Type: wire.ArgInt}}}, {Name: "presentation_time", Since: 1, Args: []wire.Arg{{Name: "tv_sec_hi", Type: wire.ArgUint}, {Name: "tv_sec_lo", Type: wire.ArgUint}, {Name: "tv_nsec", Type: wire.ArgUint}}}, {Name: "ready", Since: 1}, {Name: "failed", Since: 1, Args: []wire.Arg{{Name: "reason", Type: wire.ArgUint}}}, }, }
View Source
var ExtImageCopyCaptureManagerV1Interface = &wire.Interface{ Name: "ext_image_copy_capture_manager_v1", Version: 1, Requests: []wire.MessageSpec{ {Name: "create_session", Since: 1, Args: []wire.Arg{{Name: "session", Type: wire.ArgNewID, Interface: "ext_image_copy_capture_session_v1"}, {Name: "source", Type: wire.ArgObject, Interface: "ext_image_capture_source_v1"}, {Name: "options", Type: wire.ArgUint}}}, {Name: "create_pointer_cursor_session", Since: 1, Args: []wire.Arg{{Name: "session", Type: wire.ArgNewID, Interface: "ext_image_copy_capture_cursor_session_v1"}, {Name: "source", Type: wire.ArgObject, Interface: "ext_image_capture_source_v1"}, {Name: "pointer", Type: wire.ArgObject, Interface: "wl_pointer"}}}, {Name: "destroy", Since: 1, Destructor: true}, }, }
View Source
var ExtImageCopyCaptureSessionV1Interface = &wire.Interface{ Name: "ext_image_copy_capture_session_v1", Version: 1, Requests: []wire.MessageSpec{ {Name: "create_frame", Since: 1, Args: []wire.Arg{{Name: "frame", Type: wire.ArgNewID, Interface: "ext_image_copy_capture_frame_v1"}}}, {Name: "destroy", Since: 1, Destructor: true}, }, Events: []wire.MessageSpec{ {Name: "buffer_size", Since: 1, Args: []wire.Arg{{Name: "width", Type: wire.ArgUint}, {Name: "height", Type: wire.ArgUint}}}, {Name: "shm_format", Since: 1, Args: []wire.Arg{{Name: "format", Type: wire.ArgUint}}}, {Name: "dmabuf_device", Since: 1, Args: []wire.Arg{{Name: "device", Type: wire.ArgArray}}}, {Name: "dmabuf_format", Since: 1, Args: []wire.Arg{{Name: "format", Type: wire.ArgUint}, {Name: "modifiers", Type: wire.ArgArray}}}, {Name: "done", Since: 1}, {Name: "stopped", Since: 1}, }, }
Functions ¶
This section is empty.
Types ¶
type ExtImageCopyCaptureCursorSessionV1 ¶
type ExtImageCopyCaptureCursorSessionV1 struct {
// contains filtered or unexported fields
}
func CreateExtImageCopyCaptureCursorSessionV1 ¶
func CreateExtImageCopyCaptureCursorSessionV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ExtImageCopyCaptureCursorSessionV1) (ExtImageCopyCaptureCursorSessionV1Handler, error)) (*ExtImageCopyCaptureCursorSessionV1, error)
func NewExtImageCopyCaptureCursorSessionV1 ¶
func NewExtImageCopyCaptureCursorSessionV1(p wire.Peer, id wire.ObjectID, version uint32, h ExtImageCopyCaptureCursorSessionV1Handler) (*ExtImageCopyCaptureCursorSessionV1, error)
func (*ExtImageCopyCaptureCursorSessionV1) Base ¶
func (obj *ExtImageCopyCaptureCursorSessionV1) Base() *wire.Object
func (*ExtImageCopyCaptureCursorSessionV1) Dispatch ¶
func (obj *ExtImageCopyCaptureCursorSessionV1) Dispatch(msg *wire.Message) error
func (*ExtImageCopyCaptureCursorSessionV1) Handler ¶
func (obj *ExtImageCopyCaptureCursorSessionV1) Handler() ExtImageCopyCaptureCursorSessionV1Handler
func (*ExtImageCopyCaptureCursorSessionV1) ProtocolError ¶
func (obj *ExtImageCopyCaptureCursorSessionV1) ProtocolError(code ExtImageCopyCaptureCursorSessionV1Error, format string, args ...any) error
func (*ExtImageCopyCaptureCursorSessionV1) SendEnter ¶
func (obj *ExtImageCopyCaptureCursorSessionV1) SendEnter() error
func (*ExtImageCopyCaptureCursorSessionV1) SendHotspot ¶
func (obj *ExtImageCopyCaptureCursorSessionV1) SendHotspot(x int32, y int32) error
func (*ExtImageCopyCaptureCursorSessionV1) SendLeave ¶
func (obj *ExtImageCopyCaptureCursorSessionV1) SendLeave() error
func (*ExtImageCopyCaptureCursorSessionV1) SendPosition ¶
func (obj *ExtImageCopyCaptureCursorSessionV1) SendPosition(x int32, y int32) error
type ExtImageCopyCaptureCursorSessionV1Error ¶
type ExtImageCopyCaptureCursorSessionV1Error uint32
const (
ExtImageCopyCaptureCursorSessionV1ErrorDuplicateSession ExtImageCopyCaptureCursorSessionV1Error = 1
)
func (ExtImageCopyCaptureCursorSessionV1Error) Valid ¶
func (v ExtImageCopyCaptureCursorSessionV1Error) Valid(version uint32) bool
type ExtImageCopyCaptureCursorSessionV1Handler ¶
type ExtImageCopyCaptureCursorSessionV1Handler interface {
Destroy(obj *ExtImageCopyCaptureCursorSessionV1) error
GetCaptureSession(obj *ExtImageCopyCaptureCursorSessionV1, session *ExtImageCopyCaptureSessionV1) (ExtImageCopyCaptureSessionV1Handler, error)
}
type ExtImageCopyCaptureFrameV1 ¶
type ExtImageCopyCaptureFrameV1 struct {
// contains filtered or unexported fields
}
func CreateExtImageCopyCaptureFrameV1 ¶
func CreateExtImageCopyCaptureFrameV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ExtImageCopyCaptureFrameV1) (ExtImageCopyCaptureFrameV1Handler, error)) (*ExtImageCopyCaptureFrameV1, error)
func NewExtImageCopyCaptureFrameV1 ¶
func NewExtImageCopyCaptureFrameV1(p wire.Peer, id wire.ObjectID, version uint32, h ExtImageCopyCaptureFrameV1Handler) (*ExtImageCopyCaptureFrameV1, error)
func (*ExtImageCopyCaptureFrameV1) Base ¶
func (obj *ExtImageCopyCaptureFrameV1) Base() *wire.Object
func (*ExtImageCopyCaptureFrameV1) Dispatch ¶
func (obj *ExtImageCopyCaptureFrameV1) Dispatch(msg *wire.Message) error
func (*ExtImageCopyCaptureFrameV1) Handler ¶
func (obj *ExtImageCopyCaptureFrameV1) Handler() ExtImageCopyCaptureFrameV1Handler
func (*ExtImageCopyCaptureFrameV1) ProtocolError ¶
func (obj *ExtImageCopyCaptureFrameV1) ProtocolError(code ExtImageCopyCaptureFrameV1Error, format string, args ...any) error
func (*ExtImageCopyCaptureFrameV1) SendDamage ¶
func (*ExtImageCopyCaptureFrameV1) SendFailed ¶
func (obj *ExtImageCopyCaptureFrameV1) SendFailed(reason ExtImageCopyCaptureFrameV1FailureReason) error
func (*ExtImageCopyCaptureFrameV1) SendPresentationTime ¶
func (obj *ExtImageCopyCaptureFrameV1) SendPresentationTime(tvSecHi uint32, tvSecLo uint32, tvNsec uint32) error
func (*ExtImageCopyCaptureFrameV1) SendReady ¶
func (obj *ExtImageCopyCaptureFrameV1) SendReady() error
func (*ExtImageCopyCaptureFrameV1) SendTransform ¶
func (obj *ExtImageCopyCaptureFrameV1) SendTransform(transform wayland.WlOutputTransform) error
type ExtImageCopyCaptureFrameV1Error ¶
type ExtImageCopyCaptureFrameV1Error uint32
const ( ExtImageCopyCaptureFrameV1ErrorNoBuffer ExtImageCopyCaptureFrameV1Error = 1 ExtImageCopyCaptureFrameV1ErrorInvalidBufferDamage ExtImageCopyCaptureFrameV1Error = 2 ExtImageCopyCaptureFrameV1ErrorAlreadyCaptured ExtImageCopyCaptureFrameV1Error = 3 )
func (ExtImageCopyCaptureFrameV1Error) Valid ¶
func (v ExtImageCopyCaptureFrameV1Error) Valid(version uint32) bool
type ExtImageCopyCaptureFrameV1FailureReason ¶
type ExtImageCopyCaptureFrameV1FailureReason uint32
const ( ExtImageCopyCaptureFrameV1FailureReasonUnknown ExtImageCopyCaptureFrameV1FailureReason = 0 ExtImageCopyCaptureFrameV1FailureReasonBufferConstraints ExtImageCopyCaptureFrameV1FailureReason = 1 ExtImageCopyCaptureFrameV1FailureReasonStopped ExtImageCopyCaptureFrameV1FailureReason = 2 )
func (ExtImageCopyCaptureFrameV1FailureReason) Valid ¶
func (v ExtImageCopyCaptureFrameV1FailureReason) Valid(version uint32) bool
type ExtImageCopyCaptureFrameV1Handler ¶
type ExtImageCopyCaptureFrameV1Handler interface {
Destroy(obj *ExtImageCopyCaptureFrameV1) error
AttachBuffer(obj *ExtImageCopyCaptureFrameV1, buffer *wayland.WlBuffer) error
DamageBuffer(obj *ExtImageCopyCaptureFrameV1, x int32, y int32, width int32, height int32) error
Capture(obj *ExtImageCopyCaptureFrameV1) error
}
type ExtImageCopyCaptureManagerV1 ¶
type ExtImageCopyCaptureManagerV1 struct {
// contains filtered or unexported fields
}
func CreateExtImageCopyCaptureManagerV1 ¶
func CreateExtImageCopyCaptureManagerV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ExtImageCopyCaptureManagerV1) (ExtImageCopyCaptureManagerV1Handler, error)) (*ExtImageCopyCaptureManagerV1, error)
func NewExtImageCopyCaptureManagerV1 ¶
func NewExtImageCopyCaptureManagerV1(p wire.Peer, id wire.ObjectID, version uint32, h ExtImageCopyCaptureManagerV1Handler) (*ExtImageCopyCaptureManagerV1, error)
func (*ExtImageCopyCaptureManagerV1) Base ¶
func (obj *ExtImageCopyCaptureManagerV1) Base() *wire.Object
func (*ExtImageCopyCaptureManagerV1) Dispatch ¶
func (obj *ExtImageCopyCaptureManagerV1) Dispatch(msg *wire.Message) error
func (*ExtImageCopyCaptureManagerV1) Handler ¶
func (obj *ExtImageCopyCaptureManagerV1) Handler() ExtImageCopyCaptureManagerV1Handler
func (*ExtImageCopyCaptureManagerV1) ProtocolError ¶
func (obj *ExtImageCopyCaptureManagerV1) ProtocolError(code ExtImageCopyCaptureManagerV1Error, format string, args ...any) error
type ExtImageCopyCaptureManagerV1Error ¶
type ExtImageCopyCaptureManagerV1Error uint32
const (
ExtImageCopyCaptureManagerV1ErrorInvalidOption ExtImageCopyCaptureManagerV1Error = 1
)
func (ExtImageCopyCaptureManagerV1Error) Valid ¶
func (v ExtImageCopyCaptureManagerV1Error) Valid(version uint32) bool
type ExtImageCopyCaptureManagerV1Handler ¶
type ExtImageCopyCaptureManagerV1Handler interface {
CreateSession(obj *ExtImageCopyCaptureManagerV1, session *ExtImageCopyCaptureSessionV1, source *extimagecapturesource.ExtImageCaptureSourceV1, options ExtImageCopyCaptureManagerV1Options) (ExtImageCopyCaptureSessionV1Handler, error)
CreatePointerCursorSession(obj *ExtImageCopyCaptureManagerV1, session *ExtImageCopyCaptureCursorSessionV1, source *extimagecapturesource.ExtImageCaptureSourceV1, pointer *wayland.WlPointer) (ExtImageCopyCaptureCursorSessionV1Handler, error)
Destroy(obj *ExtImageCopyCaptureManagerV1) error
}
type ExtImageCopyCaptureManagerV1Options ¶
type ExtImageCopyCaptureManagerV1Options uint32
const (
ExtImageCopyCaptureManagerV1OptionsPaintCursors ExtImageCopyCaptureManagerV1Options = 1
)
func (ExtImageCopyCaptureManagerV1Options) Has ¶
func (v ExtImageCopyCaptureManagerV1Options) Has(flag ExtImageCopyCaptureManagerV1Options) bool
func (ExtImageCopyCaptureManagerV1Options) Valid ¶
func (v ExtImageCopyCaptureManagerV1Options) Valid(version uint32) bool
type ExtImageCopyCaptureSessionV1 ¶
type ExtImageCopyCaptureSessionV1 struct {
// contains filtered or unexported fields
}
func CreateExtImageCopyCaptureSessionV1 ¶
func CreateExtImageCopyCaptureSessionV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ExtImageCopyCaptureSessionV1) (ExtImageCopyCaptureSessionV1Handler, error)) (*ExtImageCopyCaptureSessionV1, error)
func NewExtImageCopyCaptureSessionV1 ¶
func NewExtImageCopyCaptureSessionV1(p wire.Peer, id wire.ObjectID, version uint32, h ExtImageCopyCaptureSessionV1Handler) (*ExtImageCopyCaptureSessionV1, error)
func (*ExtImageCopyCaptureSessionV1) Base ¶
func (obj *ExtImageCopyCaptureSessionV1) Base() *wire.Object
func (*ExtImageCopyCaptureSessionV1) Dispatch ¶
func (obj *ExtImageCopyCaptureSessionV1) Dispatch(msg *wire.Message) error
func (*ExtImageCopyCaptureSessionV1) Handler ¶
func (obj *ExtImageCopyCaptureSessionV1) Handler() ExtImageCopyCaptureSessionV1Handler
func (*ExtImageCopyCaptureSessionV1) ProtocolError ¶
func (obj *ExtImageCopyCaptureSessionV1) ProtocolError(code ExtImageCopyCaptureSessionV1Error, format string, args ...any) error
func (*ExtImageCopyCaptureSessionV1) SendBufferSize ¶
func (obj *ExtImageCopyCaptureSessionV1) SendBufferSize(width uint32, height uint32) error
func (*ExtImageCopyCaptureSessionV1) SendDmabufDevice ¶
func (obj *ExtImageCopyCaptureSessionV1) SendDmabufDevice(device []byte) error
func (*ExtImageCopyCaptureSessionV1) SendDmabufFormat ¶
func (obj *ExtImageCopyCaptureSessionV1) SendDmabufFormat(format uint32, modifiers []byte) error
func (*ExtImageCopyCaptureSessionV1) SendDone ¶
func (obj *ExtImageCopyCaptureSessionV1) SendDone() error
func (*ExtImageCopyCaptureSessionV1) SendShmFormat ¶
func (obj *ExtImageCopyCaptureSessionV1) SendShmFormat(format wayland.WlShmFormat) error
func (*ExtImageCopyCaptureSessionV1) SendStopped ¶
func (obj *ExtImageCopyCaptureSessionV1) SendStopped() error
type ExtImageCopyCaptureSessionV1Error ¶
type ExtImageCopyCaptureSessionV1Error uint32
const (
ExtImageCopyCaptureSessionV1ErrorDuplicateFrame ExtImageCopyCaptureSessionV1Error = 1
)
func (ExtImageCopyCaptureSessionV1Error) Valid ¶
func (v ExtImageCopyCaptureSessionV1Error) Valid(version uint32) bool
type ExtImageCopyCaptureSessionV1Handler ¶
type ExtImageCopyCaptureSessionV1Handler interface {
CreateFrame(obj *ExtImageCopyCaptureSessionV1, frame *ExtImageCopyCaptureFrameV1) (ExtImageCopyCaptureFrameV1Handler, error)
Destroy(obj *ExtImageCopyCaptureSessionV1) error
}
Click to show internal directories.
Click to hide internal directories.