cursor

package
v1.6.18 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewImage

func NewImage(logger zerolog.Logger, desktop types.DesktopManager) *image

func NewPosition

func NewPosition(logger zerolog.Logger) *position

Types

type Image added in v1.6.10

type Image interface {
	Start()
	Shutdown()
	GetCurrent() (cur *types.CursorImage, img []byte, err error)
	AddListener(listener ImageListener)
	RemoveListener(listener ImageListener)
}

type ImageListener added in v1.6.10

type ImageListener interface {
	SendCursorImage(cur *types.CursorImage, img []byte) error
}

type Position added in v1.6.10

type Position interface {
	Shutdown()
	Set(x, y int)
	AddListener(listener PositionListener)
	RemoveListener(listener PositionListener)
}

type PositionListener added in v1.6.10

type PositionListener interface {
	SendCursorPosition(x, y int) error
}

Jump to

Keyboard shortcuts

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