Documentation
¶
Overview ¶
Package data implements the clipboard, the primary selection and drag and drop: wl_data_device_manager and zwp_primary_selection_device_manager_v1.
Index ¶
- Variables
- func ReserveForDrag(res *sw.WlDataSource, refuse func() error) error
- type Action
- type Drag
- func (d *Drag) Actions() Action
- func (d *Drag) Cancel() error
- func (d *Drag) Carries(res *sw.WlDataSource) bool
- func (d *Drag) Drop() error
- func (d *Drag) Finished(ok bool) error
- func (d *Drag) Icon() (*surface.Surface, image.Point)
- func (d *Drag) Motion(target *surface.Surface, x, y float64, at time.Duration) error
- func (d *Drag) Origin() *surface.Surface
- func (d *Drag) Serial() uint32
- func (d *Drag) Source() Source
- func (d *Drag) Status(accepted bool, action Action) error
- type DragSource
- type DropTarget
- type Kind
- type Listener
- type Manager
- type Source
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSourceUsed = errors.New("data: the source was already used")
Functions ¶
func ReserveForDrag ¶
func ReserveForDrag(res *sw.WlDataSource, refuse func() error) error
Types ¶
type Action ¶
type Action = sw.WlDataDeviceManagerDndAction
type DragSource ¶
type DropTarget ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) SetDropTarget ¶
func (m *Manager) SetDropTarget(t DropTarget)
func (*Manager) StartForeignDrag ¶
func (m *Manager) StartForeignDrag(src DragSource) (*Drag, error)
Click to show internal directories.
Click to hide internal directories.