xtest

package
v0.0.0-...-deaf085 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: BSD-3-Clause, GooglePatentClause Imports: 2 Imported by: 9

Documentation

Overview

Package xtest is the X client API for the XTEST extension.

Index

Constants

View Source
const (
	CursorNone    = 0
	CursorCurrent = 1
)

Variables

This section is empty.

Functions

func Init

func Init(c *xgb.Conn) error

Init must be called before using the XTEST extension.

Types

type CompareCursorCookie

type CompareCursorCookie struct {
	*xgb.Cookie
}

CompareCursorCookie is a cookie used only for CompareCursor requests.

func CompareCursor

func CompareCursor(c *xgb.Conn, Window xproto.Window, Cursor xproto.Cursor) CompareCursorCookie

CompareCursor sends a checked request. If an error occurs, it will be returned with the reply by calling CompareCursorCookie.Reply()

func CompareCursorUnchecked

func CompareCursorUnchecked(c *xgb.Conn, Window xproto.Window, Cursor xproto.Cursor) CompareCursorCookie

CompareCursorUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (CompareCursorCookie) Reply

func (cook CompareCursorCookie) Reply() (*CompareCursorReply, error)

Reply blocks and returns the reply data for a CompareCursor request.

type CompareCursorReply

type CompareCursorReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	Same     bool
}

CompareCursorReply represents the data returned from a CompareCursor request.

type FakeInputCookie

type FakeInputCookie struct {
	*xgb.Cookie
}

FakeInputCookie is a cookie used only for FakeInput requests.

func FakeInput

func FakeInput(c *xgb.Conn, Type byte, Detail byte, Time uint32, Root xproto.Window, RootX int16, RootY int16, Deviceid byte) FakeInputCookie

FakeInput sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func FakeInputChecked

func FakeInputChecked(c *xgb.Conn, Type byte, Detail byte, Time uint32, Root xproto.Window, RootX int16, RootY int16, Deviceid byte) FakeInputCookie

FakeInputChecked sends a checked request. If an error occurs, it can be retrieved using FakeInputCookie.Check()

func (FakeInputCookie) Check

func (cook FakeInputCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type GetVersionCookie

type GetVersionCookie struct {
	*xgb.Cookie
}

GetVersionCookie is a cookie used only for GetVersion requests.

func GetVersion

func GetVersion(c *xgb.Conn, MajorVersion byte, MinorVersion uint16) GetVersionCookie

GetVersion sends a checked request. If an error occurs, it will be returned with the reply by calling GetVersionCookie.Reply()

func GetVersionUnchecked

func GetVersionUnchecked(c *xgb.Conn, MajorVersion byte, MinorVersion uint16) GetVersionCookie

GetVersionUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetVersionCookie) Reply

func (cook GetVersionCookie) Reply() (*GetVersionReply, error)

Reply blocks and returns the reply data for a GetVersion request.

type GetVersionReply

type GetVersionReply struct {
	Sequence     uint16 // sequence number of the request for this reply
	Length       uint32 // number of bytes in this reply
	MajorVersion byte
	MinorVersion uint16
}

GetVersionReply represents the data returned from a GetVersion request.

type GrabControlCookie

type GrabControlCookie struct {
	*xgb.Cookie
}

GrabControlCookie is a cookie used only for GrabControl requests.

func GrabControl

func GrabControl(c *xgb.Conn, Impervious bool) GrabControlCookie

GrabControl sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func GrabControlChecked

func GrabControlChecked(c *xgb.Conn, Impervious bool) GrabControlCookie

GrabControlChecked sends a checked request. If an error occurs, it can be retrieved using GrabControlCookie.Check()

func (GrabControlCookie) Check

func (cook GrabControlCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

Jump to

Keyboard shortcuts

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