linuxapi

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XdotoolMouseClickLeft = 1 + iota
	XdotoolMouseClickMiddle
	XdotoolMouseClickRight
	XdotoolMouseClickWheelUp
	XdotoolMouseClickWheelDown
)

Variables

This section is empty.

Functions

func GetDisplay

func GetDisplay() (display string)

func GetDisplaySize

func GetDisplaySize(display string) (x, y int)

Types

type XdotoolHandler

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

func NewXdotool

func NewXdotool(display string) *XdotoolHandler

func (XdotoolHandler) GetPosition

func (x XdotoolHandler) GetPosition() (X, Y int)

func (XdotoolHandler) GetWindowGeometry

func (x XdotoolHandler) GetWindowGeometry() (width, height int)

func (XdotoolHandler) KeyDown

func (x XdotoolHandler) KeyDown(key string)

func (XdotoolHandler) KeyUp

func (x XdotoolHandler) KeyUp(key string)

func (XdotoolHandler) MouseDown

func (x XdotoolHandler) MouseDown(Button int)

func (XdotoolHandler) MouseMoveAbsolute

func (x XdotoolHandler) MouseMoveAbsolute(X, Y string)

func (XdotoolHandler) MouseMoveRelative

func (x XdotoolHandler) MouseMoveRelative(X, Y string)

func (XdotoolHandler) MouseUp

func (x XdotoolHandler) MouseUp(Button int)

func (XdotoolHandler) WheelDown

func (x XdotoolHandler) WheelDown()

func (XdotoolHandler) WheelUp

func (x XdotoolHandler) WheelUp()

Jump to

Keyboard shortcuts

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