...

Package xevie

import "github.com/jezek/xgb/xevie"
Overview
Index

Overview ▾

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

Index ▾

Package files

xevie.go

Constants

const (
    DatatypeUnmodified = 0
    DatatypeModified   = 1
)

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.

type EndCookie

EndCookie is a cookie used only for End requests.

type EndCookie struct {
    *xgb.Cookie
}

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

EndReply represents the data returned from a End request.

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

}

type Event

type Event struct {
}

func (Event) Bytes

func (v Event) Bytes() []byte

Bytes writes a Event value to a byte slice.

type QueryVersionCookie

QueryVersionCookie is a cookie used only for QueryVersion requests.

type QueryVersionCookie struct {
    *xgb.Cookie
}

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

QueryVersionReply represents the data returned from a QueryVersion request.

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
}

type SelectInputCookie

SelectInputCookie is a cookie used only for SelectInput requests.

type SelectInputCookie struct {
    *xgb.Cookie
}

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

SelectInputReply represents the data returned from a SelectInput request.

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

}

type SendCookie

SendCookie is a cookie used only for Send requests.

type SendCookie struct {
    *xgb.Cookie
}

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

SendReply represents the data returned from a Send request.

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

}

type StartCookie

StartCookie is a cookie used only for Start requests.

type StartCookie struct {
    *xgb.Cookie
}

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

StartReply represents the data returned from a Start request.

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

}