cursor

package
v1.6.7 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageCtx

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

func NewImage

func NewImage(desktop types.DesktopManager) *ImageCtx

func (*ImageCtx) AddListener

func (manager *ImageCtx) AddListener(listener *func(entry *ImageEntry))

func (*ImageCtx) Get

func (manager *ImageCtx) Get() (*ImageEntry, error)

func (*ImageCtx) GetCached

func (manager *ImageCtx) GetCached(serial uint64) (*ImageEntry, error)

func (*ImageCtx) RemoveListener

func (manager *ImageCtx) RemoveListener(listener *func(entry *ImageEntry))

func (*ImageCtx) Shutdown

func (manager *ImageCtx) Shutdown()

func (*ImageCtx) Start

func (manager *ImageCtx) Start()

type ImageEntry

type ImageEntry struct {
	Cursor *types.CursorImage
	Image  []byte
}

type PositionCtx

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

func NewPosition

func NewPosition() *PositionCtx

func (*PositionCtx) AddListener

func (manager *PositionCtx) AddListener(listener *func(x, y int))

func (*PositionCtx) RemoveListener

func (manager *PositionCtx) RemoveListener(listener *func(x, y int))

func (*PositionCtx) Set

func (manager *PositionCtx) Set(x, y int)

func (*PositionCtx) Shutdown

func (manager *PositionCtx) Shutdown()

Jump to

Keyboard shortcuts

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