extdatacontrol

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 ExtDataControlDeviceV1Interface = &wire.Interface{
	Name:    "ext_data_control_device_v1",
	Version: 1,
	Requests: []wire.MessageSpec{
		{Name: "set_selection", Since: 1, Args: []wire.Arg{{Name: "source", Type: wire.ArgObject, Interface: "ext_data_control_source_v1", Nullable: true}}},
		{Name: "destroy", Since: 1, Destructor: true},
		{Name: "set_primary_selection", Since: 1, Args: []wire.Arg{{Name: "source", Type: wire.ArgObject, Interface: "ext_data_control_source_v1", Nullable: true}}},
	},
	Events: []wire.MessageSpec{
		{Name: "data_offer", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgNewID, Interface: "ext_data_control_offer_v1"}}},
		{Name: "selection", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgObject, Interface: "ext_data_control_offer_v1", Nullable: true}}},
		{Name: "finished", Since: 1},
		{Name: "primary_selection", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgObject, Interface: "ext_data_control_offer_v1", Nullable: true}}},
	},
}
View Source
var ExtDataControlManagerV1Interface = &wire.Interface{
	Name:    "ext_data_control_manager_v1",
	Version: 1,
	Requests: []wire.MessageSpec{
		{Name: "create_data_source", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgNewID, Interface: "ext_data_control_source_v1"}}},
		{Name: "get_data_device", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgNewID, Interface: "ext_data_control_device_v1"}, {Name: "seat", Type: wire.ArgObject, Interface: "wl_seat"}}},
		{Name: "destroy", Since: 1, Destructor: true},
	},
}
View Source
var ExtDataControlOfferV1Interface = &wire.Interface{
	Name:    "ext_data_control_offer_v1",
	Version: 1,
	Requests: []wire.MessageSpec{
		{Name: "receive", Since: 1, Args: []wire.Arg{{Name: "mime_type", Type: wire.ArgString}, {Name: "fd", Type: wire.ArgFD}}},
		{Name: "destroy", Since: 1, Destructor: true},
	},
	Events: []wire.MessageSpec{
		{Name: "offer", Since: 1, Args: []wire.Arg{{Name: "mime_type", Type: wire.ArgString}}},
	},
}
View Source
var ExtDataControlSourceV1Interface = &wire.Interface{
	Name:    "ext_data_control_source_v1",
	Version: 1,
	Requests: []wire.MessageSpec{
		{Name: "offer", Since: 1, Args: []wire.Arg{{Name: "mime_type", Type: wire.ArgString}}},
		{Name: "destroy", Since: 1, Destructor: true},
	},
	Events: []wire.MessageSpec{
		{Name: "send", Since: 1, Args: []wire.Arg{{Name: "mime_type", Type: wire.ArgString}, {Name: "fd", Type: wire.ArgFD}}},
		{Name: "cancelled", Since: 1},
	},
}

Functions

This section is empty.

Types

type ExtDataControlDeviceV1

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

func CreateExtDataControlDeviceV1

func CreateExtDataControlDeviceV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ExtDataControlDeviceV1) (ExtDataControlDeviceV1Handler, error)) (*ExtDataControlDeviceV1, error)

func (*ExtDataControlDeviceV1) Base

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

func (*ExtDataControlDeviceV1) Dispatch

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

func (*ExtDataControlDeviceV1) Handler

func (*ExtDataControlDeviceV1) ProtocolError

func (obj *ExtDataControlDeviceV1) ProtocolError(code ExtDataControlDeviceV1Error, format string, args ...any) error

func (*ExtDataControlDeviceV1) SendDataOffer

func (*ExtDataControlDeviceV1) SendFinished

func (obj *ExtDataControlDeviceV1) SendFinished() error

func (*ExtDataControlDeviceV1) SendPrimarySelection

func (obj *ExtDataControlDeviceV1) SendPrimarySelection(id *ExtDataControlOfferV1) error

func (*ExtDataControlDeviceV1) SendSelection

func (obj *ExtDataControlDeviceV1) SendSelection(id *ExtDataControlOfferV1) error

type ExtDataControlDeviceV1Error

type ExtDataControlDeviceV1Error uint32
const (
	ExtDataControlDeviceV1ErrorUsedSource ExtDataControlDeviceV1Error = 1
)

func (ExtDataControlDeviceV1Error) Valid

func (v ExtDataControlDeviceV1Error) Valid(version uint32) bool

type ExtDataControlDeviceV1Handler

type ExtDataControlDeviceV1Handler interface {
	SetSelection(obj *ExtDataControlDeviceV1, source *ExtDataControlSourceV1) error
	Destroy(obj *ExtDataControlDeviceV1) error
	SetPrimarySelection(obj *ExtDataControlDeviceV1, source *ExtDataControlSourceV1) error
}

type ExtDataControlManagerV1

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

func (*ExtDataControlManagerV1) Base

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

func (*ExtDataControlManagerV1) Dispatch

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

func (*ExtDataControlManagerV1) Handler

type ExtDataControlOfferV1

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

func CreateExtDataControlOfferV1

func CreateExtDataControlOfferV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ExtDataControlOfferV1) (ExtDataControlOfferV1Handler, error)) (*ExtDataControlOfferV1, error)

func (*ExtDataControlOfferV1) Base

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

func (*ExtDataControlOfferV1) Dispatch

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

func (*ExtDataControlOfferV1) Handler

func (*ExtDataControlOfferV1) SendOffer

func (obj *ExtDataControlOfferV1) SendOffer(mimeType string) error

type ExtDataControlOfferV1Handler

type ExtDataControlOfferV1Handler interface {
	Receive(obj *ExtDataControlOfferV1, mimeType string, fd int) error
	Destroy(obj *ExtDataControlOfferV1) error
}

type ExtDataControlSourceV1

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

func CreateExtDataControlSourceV1

func CreateExtDataControlSourceV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ExtDataControlSourceV1) (ExtDataControlSourceV1Handler, error)) (*ExtDataControlSourceV1, error)

func (*ExtDataControlSourceV1) Base

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

func (*ExtDataControlSourceV1) Dispatch

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

func (*ExtDataControlSourceV1) Handler

func (*ExtDataControlSourceV1) ProtocolError

func (obj *ExtDataControlSourceV1) ProtocolError(code ExtDataControlSourceV1Error, format string, args ...any) error

func (*ExtDataControlSourceV1) SendCancelled

func (obj *ExtDataControlSourceV1) SendCancelled() error

func (*ExtDataControlSourceV1) SendSend

func (obj *ExtDataControlSourceV1) SendSend(mimeType string, fd int) error

type ExtDataControlSourceV1Error

type ExtDataControlSourceV1Error uint32
const (
	ExtDataControlSourceV1ErrorInvalidOffer ExtDataControlSourceV1Error = 1
)

func (ExtDataControlSourceV1Error) Valid

func (v ExtDataControlSourceV1Error) Valid(version uint32) bool

type ExtDataControlSourceV1Handler

type ExtDataControlSourceV1Handler interface {
	Offer(obj *ExtDataControlSourceV1, mimeType string) error
	Destroy(obj *ExtDataControlSourceV1) error
}

Jump to

Keyboard shortcuts

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