copypaste

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CopyAtoms struct {
	Atom      xproto.Atom `loadAtoms:"ATOM"`
	Primary   xproto.Atom `loadAtoms:"PRIMARY"`
	Clipboard xproto.Atom `loadAtoms:"CLIPBOARD"`
	Targets   xproto.Atom `loadAtoms:"TARGETS"`

	Utf8String           xproto.Atom `loadAtoms:"UTF8_STRING"`
	String               xproto.Atom `loadAtoms:"STRING"`
	Text                 xproto.Atom `loadAtoms:"TEXT"`
	TextPlain            xproto.Atom `loadAtoms:"text/plain"`
	TextPlainCharsetUtf8 xproto.Atom `loadAtoms:"text/plain;charset=utf-8"`
}
View Source
var PasteAtoms struct {
	Primary   xproto.Atom `loadAtoms:"PRIMARY"`
	Clipboard xproto.Atom `loadAtoms:"CLIPBOARD"`
	XSelData  xproto.Atom `loadAtoms:"XSEL_DATA"`
	Incr      xproto.Atom `loadAtoms:"INCR"`

	Utf8String xproto.Atom `loadAtoms:"UTF8_STRING"`
}

Functions

This section is empty.

Types

type Copy

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

func NewCopy

func NewCopy(conn *xgb.Conn, win xproto.Window) (*Copy, error)

func (*Copy) OnSelectionClear

func (c *Copy) OnSelectionClear(ev *xproto.SelectionClearEvent)

Another application now owns the selection.

func (*Copy) OnSelectionRequest

func (c *Copy) OnSelectionRequest(ev *xproto.SelectionRequestEvent) error

Another application is asking for the data

func (*Copy) Set

func (c *Copy) Set(i event.ClipboardIndex, str string) error

type Paste

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

func NewPaste

func NewPaste(conn *xgb.Conn, win xproto.Window) (*Paste, error)

func (*Paste) Get

func (p *Paste) Get(index event.ClipboardIndex) (string, error)

func (*Paste) OnPropertyNotify

func (p *Paste) OnPropertyNotify(ev *xproto.PropertyNotifyEvent)

func (*Paste) OnSelectionNotify

func (p *Paste) OnSelectionNotify(ev *xproto.SelectionNotifyEvent)

Jump to

Keyboard shortcuts

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