dragndrop

package
v1.3.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusEventAcceptFlag        = 1 << 0
	StatusEventSendPositionsFlag = 1 << 1 // ask to keep sending positions
)

Variables

View Source
var DndAtoms struct {
	XdndAware    xproto.Atom
	XdndEnter    xproto.Atom
	XdndLeave    xproto.Atom
	XdndPosition xproto.Atom
	XdndStatus   xproto.Atom
	XdndDrop     xproto.Atom
	XdndFinished xproto.Atom

	XdndActionCopy    xproto.Atom
	XdndActionMove    xproto.Atom
	XdndActionLink    xproto.Atom
	XdndActionAsk     xproto.Atom
	XdndActionPrivate xproto.Atom

	XdndProxy    xproto.Atom
	XdndTypeList xproto.Atom

	XdndSelection xproto.Atom
}
View Source
var DropTypeAtoms struct {
	TextURLList xproto.Atom `loadAtoms:"text/uri-list"` // technically, a URL
}

Functions

This section is empty.

Types

type Dnd

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

Drag and drop

func NewDnd

func NewDnd(conn *xgb.Conn, win xproto.Window) (*Dnd, error)

func (*Dnd) OnClientMessage

func (dnd *Dnd) OnClientMessage(ev *xproto.ClientMessageEvent) (ev_ any, _ error, ok bool)

Error could be nil.

func (*Dnd) OnSelectionNotify

func (dnd *Dnd) OnSelectionNotify(ev *xproto.SelectionNotifyEvent)

Called after a request for data.

type DndData

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

type FinishedEvent

type FinishedEvent struct {
	Window   xproto.Window
	Accepted bool
	Action   xproto.Atom
}

func (*FinishedEvent) Data32

func (f *FinishedEvent) Data32() []uint32

type StatusEvent

type StatusEvent struct {
	Window xproto.Window
	Flags  uint32
	Action xproto.Atom
}

func (*StatusEvent) Data32

func (st *StatusEvent) Data32() []uint32

Jump to

Keyboard shortcuts

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