xevie

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: 0

Documentation

Overview

Package xevie is the X client API for the XEVIE extension.

Index

Constants

View Source
const (
	DatatypeUnmodified = 0
	DatatypeModified   = 1
)

Variables

This section is empty.

Functions

func EventListBytes

func EventListBytes(buf []byte, list []Event) int

EventListBytes writes a list of Event values to a byte slice.

func EventRead

func EventRead(buf []byte, v *Event) int

EventRead reads a byte slice into a Event value.

func EventReadList

func EventReadList(buf []byte, dest []Event) int

EventReadList reads a byte slice into a list of Event values.

func Init

func Init(c *xgb.Conn) error

Init must be called before using the XEVIE extension.

Types

type EndCookie

type EndCookie struct {
	*xgb.Cookie
}

EndCookie is a cookie used only for End requests.

func End

func End(c *xgb.Conn, Cmap uint32) EndCookie

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

func EndUnchecked

func EndUnchecked(c *xgb.Conn, Cmap uint32) EndCookie

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

func (EndCookie) Reply

func (cook EndCookie) Reply() (*EndReply, error)

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

type EndReply

type EndReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply

}

EndReply represents the data returned from a End request.

type Event

type Event struct {
}

func (Event) Bytes

func (v Event) Bytes() []byte

Bytes writes a Event value to a byte slice.

type QueryVersionCookie

type QueryVersionCookie struct {
	*xgb.Cookie
}

QueryVersionCookie is a cookie used only for QueryVersion requests.

func QueryVersion

func QueryVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) QueryVersionCookie

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

func QueryVersionUnchecked

func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) QueryVersionCookie

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

func (QueryVersionCookie) Reply

func (cook QueryVersionCookie) Reply() (*QueryVersionReply, error)

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

type QueryVersionReply

type QueryVersionReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	ServerMajorVersion uint16
	ServerMinorVersion uint16
}

QueryVersionReply represents the data returned from a QueryVersion request.

type SelectInputCookie

type SelectInputCookie struct {
	*xgb.Cookie
}

SelectInputCookie is a cookie used only for SelectInput requests.

func SelectInput

func SelectInput(c *xgb.Conn, EventMask uint32) SelectInputCookie

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

func SelectInputUnchecked

func SelectInputUnchecked(c *xgb.Conn, EventMask uint32) SelectInputCookie

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

func (SelectInputCookie) Reply

func (cook SelectInputCookie) Reply() (*SelectInputReply, error)

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

type SelectInputReply

type SelectInputReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply

}

SelectInputReply represents the data returned from a SelectInput request.

type SendCookie

type SendCookie struct {
	*xgb.Cookie
}

SendCookie is a cookie used only for Send requests.

func Send

func Send(c *xgb.Conn, Event Event, DataType uint32) SendCookie

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

func SendUnchecked

func SendUnchecked(c *xgb.Conn, Event Event, DataType uint32) SendCookie

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

func (SendCookie) Reply

func (cook SendCookie) Reply() (*SendReply, error)

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

type SendReply

type SendReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply

}

SendReply represents the data returned from a Send request.

type StartCookie

type StartCookie struct {
	*xgb.Cookie
}

StartCookie is a cookie used only for Start requests.

func Start

func Start(c *xgb.Conn, Screen uint32) StartCookie

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

func StartUnchecked

func StartUnchecked(c *xgb.Conn, Screen uint32) StartCookie

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

func (StartCookie) Reply

func (cook StartCookie) Reply() (*StartReply, error)

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

type StartReply

type StartReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply

}

StartReply represents the data returned from a Start request.

Jump to

Keyboard shortcuts

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