bigreq

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

Documentation

Overview

Package bigreq is the X client API for the BIG-REQUESTS extension.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(c *xgb.Conn) error

Init must be called before using the BIG-REQUESTS extension.

Types

type EnableCookie

type EnableCookie struct {
	*xgb.Cookie
}

EnableCookie is a cookie used only for Enable requests.

func Enable

func Enable(c *xgb.Conn) EnableCookie

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

func EnableUnchecked

func EnableUnchecked(c *xgb.Conn) EnableCookie

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

func (EnableCookie) Reply

func (cook EnableCookie) Reply() (*EnableReply, error)

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

type EnableReply

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

EnableReply represents the data returned from a Enable request.

Jump to

Keyboard shortcuts

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