process

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotSupported = errors.New("not supported")

ErrNotSupported not supported

Functions

This section is empty.

Types

type Process

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

Process process

func CreateWorker

func CreateWorker(name, confDir string, showCursor bool) (*Process, error)

CreateWorker create worker process

func (*Process) CADEvent

func (p *Process) CADEvent()

CADEvent handle ctrl+alt+del event

func (*Process) Capture

func (p *Process) Capture(timeout time.Duration) (*image.RGBA, error)

Capture capture desktop image

func (*Process) Close

func (p *Process) Close()

Close close process

func (*Process) GetClipboard

func (p *Process) GetClipboard() string

GetClipboard get clipboard data from child process

func (*Process) KeyboardEvent

func (p *Process) KeyboardEvent(data *network.VncKeyboard)

KeyboardEvent dispatch keyboard event to child process

func (*Process) MouseEvent

func (p *Process) MouseEvent(data *network.VncMouse)

MouseEvent dispatch mouse event to child process

func (*Process) ScrollEvent

func (p *Process) ScrollEvent(data *network.VncScroll)

ScrollEvent dispatch scroll event to child process

func (*Process) SetClipboard

func (p *Process) SetClipboard(data *network.VncClipboard)

SetClipboard set clipboard data to child process

func (*Process) SetCursor

func (p *Process) SetCursor(b bool)

SetCursor dispatch draw cursor to child process

Jump to

Keyboard shortcuts

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