driver

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type W2Window added in v1.1.0

type W2Window struct {
	W2 Window2
}

Maintain Window interface with Window2 based implementation.

func NewW2Window added in v1.1.0

func NewW2Window(w2 Window2) *W2Window

func (*W2Window) Close added in v1.1.0

func (w *W2Window) Close() error

func (*W2Window) GetCPPaste added in v1.1.0

func (w *W2Window) GetCPPaste(i event.CopyPasteIndex, fn func(string, error))

func (*W2Window) Image added in v1.1.0

func (w *W2Window) Image() draw.Image

func (*W2Window) NextEvent added in v1.1.0

func (w *W2Window) NextEvent() interface{}

func (*W2Window) PutImage added in v1.1.0

func (w *W2Window) PutImage(r image.Rectangle) error

func (*W2Window) QueryPointer added in v1.1.0

func (w *W2Window) QueryPointer() (image.Point, error)

func (*W2Window) ResizeImage added in v1.1.0

func (w *W2Window) ResizeImage(r image.Rectangle) error

func (*W2Window) SetCPCopy added in v1.1.0

func (w *W2Window) SetCPCopy(i event.CopyPasteIndex, s string) error

func (*W2Window) SetCursor added in v1.1.0

func (w *W2Window) SetCursor(c event.Cursor)

func (*W2Window) SetWindowName added in v1.1.0

func (w *W2Window) SetWindowName(name string)

func (*W2Window) WarpPointer added in v1.1.0

func (w *W2Window) WarpPointer(p image.Point)

type Window deprecated

type Window interface {
	NextEvent() interface{} // emits errors and events (util/uiutil/event)

	Close() error
	SetWindowName(string)

	Image() draw.Image
	PutImage(image.Rectangle) error
	ResizeImage(image.Rectangle) error

	SetCursor(event.Cursor)
	QueryPointer() (image.Point, error)
	WarpPointer(image.Point)

	// copypaste
	// paste func arg is called from another goroutine
	GetCPPaste(event.CopyPasteIndex, func(string, error))
	SetCPCopy(event.CopyPasteIndex, string) error
}

Deprecated: use Window2

func NewWindow deprecated

func NewWindow() (Window, error)

Deprecated: use NewWindow2

type Window2 added in v1.1.0

type Window2 interface {
	NextEvent() (_ event.Event, ok bool) // !ok = no more events
	Request(event.Request) error
}

func NewWindow2 added in v1.1.0

func NewWindow2() (Window2, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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