xgb: github.com/BurntSushi/xgb/xtest Index | Files

package xtest

import "github.com/BurntSushi/xgb/xtest"

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

Index

Package Files

xtest.go

Constants

const (
    CursorNone    = 0
    CursorCurrent = 1
)

func Init Uses

func Init(c *xgb.Conn) error

Init must be called before using the XTEST extension.

type CompareCursorCookie Uses

type CompareCursorCookie struct {
    *xgb.Cookie
}

CompareCursorCookie is a cookie used only for CompareCursor requests.

func CompareCursor Uses

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 Uses

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 Uses

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

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

type CompareCursorReply Uses

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 Uses

type FakeInputCookie struct {
    *xgb.Cookie
}

FakeInputCookie is a cookie used only for FakeInput requests.

func FakeInput Uses

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 Uses

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 Uses

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 Uses

type GetVersionCookie struct {
    *xgb.Cookie
}

GetVersionCookie is a cookie used only for GetVersion requests.

func GetVersion Uses

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 Uses

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 Uses

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

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

type GetVersionReply Uses

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 Uses

type GrabControlCookie struct {
    *xgb.Cookie
}

GrabControlCookie is a cookie used only for GrabControl requests.

func GrabControl Uses

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 Uses

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 Uses

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.

Package xtest imports 2 packages (graph) and is imported by 4 packages. Updated 2016-11-06. Refresh now. Tools for package owners.