clipboard

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Initial requestState = iota
	Incremental
)
View Source
const (
	ImageTarget = "image/png"
)

Variables

This section is empty.

Functions

func CopyImage

func CopyImage(img image.Image) error

func CopyText

func CopyText(text string) error

Types

type RequestHandler

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

func (*RequestHandler) ReportTargets

func (r *RequestHandler) ReportTargets() bool

ReportTargets reports available targets and whether request was finished.

func (*RequestHandler) SendContent

func (r *RequestHandler) SendContent() bool

func (*RequestHandler) SendContentPart

func (r *RequestHandler) SendContentPart() bool

type XEventType

type XEventType C.int

XEventType are the values in an C.XEvent, defined in X11.h.

const (
	Reserved0EventType XEventType = iota
	Reserved1EventType
	KeyPressEventType
	KeyReleaseEventType
	ButtonPressEventType
	ButtonReleaseEventType
	MotionNotifyEventType
	EnterNotifyEventType
	LeaveNotifyEventType
	FocusInEventType
	FocusOutEventType
	KeymapNotifyEventType
	ExposeEventType
	GraphicsExposeEventType
	NoExposeEventType
	VisibilityNotifyEventType
	CreateNotifyEventType
	DestroyNotifyEventType
	UnmapNotifyEventType
	MapNotifyEventType
	MapRequestEventType
	ReparentNotifyEventType
	ConfigureNotifyEventType
	ConfigureRequestEventType
	GravityNotifyEventType
	ResizeRequestEventType
	CirculateNotifyEventType
	CirculateRequestEventType
	PropertyNotifyEventType
	SelectionClearEventType
	SelectionRequestEventType
	SelectionNotifyEventType
	ColormapNotifyEventType
	ClientMessageEventType
	MappingNotifyEventType
	GenericEventEventType
	LASTEventEventType
)

List of event types is generated from /usr/include/X11/X.h.

Jump to

Keyboard shortcuts

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