Documentation ¶
Overview ¶
Package xevie is the X client API for the XEVIE extension.
Index ¶
- Constants
- func EventListBytes(buf []byte, list []Event) int
- func EventRead(buf []byte, v *Event) int
- func EventReadList(buf []byte, dest []Event) int
- func Init(c *xgb.Conn) error
- type EndCookie
- type EndReply
- type Event
- type QueryVersionCookie
- type QueryVersionReply
- type SelectInputCookie
- type SelectInputReply
- type SendCookie
- type SendReply
- type StartCookie
- type StartReply
Constants ¶
const ( DatatypeUnmodified = 0 DatatypeModified = 1 )
Variables ¶
This section is empty.
Functions ¶
func EventListBytes ¶
EventListBytes writes a list of Event values to a byte slice.
func EventReadList ¶
EventReadList reads a byte slice into a list of Event values.
Types ¶
type EndCookie ¶
EndCookie is a cookie used only for End requests.
func End ¶
End sends a checked request. If an error occurs, it will be returned with the reply by calling EndCookie.Reply()
func EndUnchecked ¶
EndUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
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 QueryVersionCookie ¶
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 ¶
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 ¶
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 ¶
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.