xdriver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Atoms struct {
	NetWMName  xproto.Atom `loadAtoms:"_NET_WM_NAME"`
	Utf8String xproto.Atom `loadAtoms:"UTF8_STRING"`
}

Functions

This section is empty.

Types

type Window

type Window struct {
	Conn   *xgb.Conn
	Window xproto.Window
	Screen *xproto.ScreenInfo
	GCtx   xproto.Gcontext

	Paste   *copypaste.Paste
	Copy    *copypaste.Copy
	Cursors *xcursors.Cursors
	XInput  *xinput.XInput
	Wmp     *wmprotocols.WMP
	Dnd     *dragndrop.Dnd

	WImg wimage.WImage
	// contains filtered or unexported fields
}

func NewWindow

func NewWindow() (*Window, error)

func (*Window) Close

func (win *Window) Close() error

func (*Window) GetCPPaste

func (win *Window) GetCPPaste(i event.CopyPasteIndex, fn func(string, error))

func (*Window) Image

func (win *Window) Image() draw.Image

func (*Window) NextEvent

func (win *Window) NextEvent() interface{}

func (*Window) PutImage

func (win *Window) PutImage(rect image.Rectangle) error

func (*Window) QueryPointer

func (win *Window) QueryPointer() (image.Point, error)

func (*Window) ResizeImage

func (win *Window) ResizeImage(r image.Rectangle) error

func (*Window) SetCPCopy

func (win *Window) SetCPCopy(i event.CopyPasteIndex, v string) error

func (*Window) SetCursor

func (win *Window) SetCursor(c event.Cursor)

func (*Window) SetWindowName

func (win *Window) SetWindowName(str string)

func (*Window) WarpPointer

func (win *Window) WarpPointer(p image.Point)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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