nexgb: regenerate from xcb-proto 1.12

To refresh documentation.
This commit is contained in:
Přemysl Eric Janouch 2018-09-30 16:32:47 +02:00
parent 7051829581
commit e6e4e94436
Signed by: p
GPG Key ID: A0420B94F92B9493
26 changed files with 2479 additions and 2300 deletions

View File

@ -71,7 +71,7 @@ type EnableCookie struct {
}
// Enable sends a checked request.
// If an error occurs, it will be returned with the reply by calling EnableCookie.Reply()
// If an error occurs, it will be returned with the reply by calling EnableCookie.Reply.
func Enable(c *xgb.Conn) EnableCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -135,8 +135,7 @@ func enableReply(buf []byte) *EnableReply {
return v
}
// Write request to wire for Enable
// enableRequest writes a Enable request to a byte slice.
// enableRequest writes a Enable request to a byte slice for transfer.
func enableRequest(c *xgb.Conn) []byte {
size := 4
b := 0

View File

@ -90,7 +90,7 @@ func CreateRegionFromBorderClip(c *xgb.Conn, Region xfixes.Region, Window xproto
}
// CreateRegionFromBorderClipChecked sends a checked request.
// If an error occurs, it can be retrieved using CreateRegionFromBorderClipCookie.Check()
// If an error occurs, it can be retrieved using CreateRegionFromBorderClipCookie.Check.
func CreateRegionFromBorderClipChecked(c *xgb.Conn, Region xfixes.Region, Window xproto.Window) CreateRegionFromBorderClipCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -108,8 +108,7 @@ func (cook CreateRegionFromBorderClipCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CreateRegionFromBorderClip
// createRegionFromBorderClipRequest writes a CreateRegionFromBorderClip request to a byte slice.
// createRegionFromBorderClipRequest writes a CreateRegionFromBorderClip request to a byte slice for transfer.
func createRegionFromBorderClipRequest(c *xgb.Conn, Region xfixes.Region, Window xproto.Window) []byte {
size := 12
b := 0
@ -141,7 +140,7 @@ type GetOverlayWindowCookie struct {
}
// GetOverlayWindow sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetOverlayWindowCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetOverlayWindowCookie.Reply.
func GetOverlayWindow(c *xgb.Conn, Window xproto.Window) GetOverlayWindowCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -208,8 +207,7 @@ func getOverlayWindowReply(buf []byte) *GetOverlayWindowReply {
return v
}
// Write request to wire for GetOverlayWindow
// getOverlayWindowRequest writes a GetOverlayWindow request to a byte slice.
// getOverlayWindowRequest writes a GetOverlayWindow request to a byte slice for transfer.
func getOverlayWindowRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@ -251,7 +249,7 @@ func NameWindowPixmap(c *xgb.Conn, Window xproto.Window, Pixmap xproto.Pixmap) N
}
// NameWindowPixmapChecked sends a checked request.
// If an error occurs, it can be retrieved using NameWindowPixmapCookie.Check()
// If an error occurs, it can be retrieved using NameWindowPixmapCookie.Check.
func NameWindowPixmapChecked(c *xgb.Conn, Window xproto.Window, Pixmap xproto.Pixmap) NameWindowPixmapCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -269,8 +267,7 @@ func (cook NameWindowPixmapCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for NameWindowPixmap
// nameWindowPixmapRequest writes a NameWindowPixmap request to a byte slice.
// nameWindowPixmapRequest writes a NameWindowPixmap request to a byte slice for transfer.
func nameWindowPixmapRequest(c *xgb.Conn, Window xproto.Window, Pixmap xproto.Pixmap) []byte {
size := 12
b := 0
@ -302,8 +299,8 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersion(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie {
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint32) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["Composite"]; !ok {
@ -316,7 +313,7 @@ func QueryVersion(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uin
// QueryVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie {
func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint32) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["Composite"]; !ok {
@ -373,9 +370,8 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
// Write request to wire for QueryVersion
// queryVersionRequest writes a QueryVersion request to a byte slice.
func queryVersionRequest(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uint32) []byte {
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint32) []byte {
size := 12
b := 0
buf := make([]byte, size)
@ -419,7 +415,7 @@ func RedirectSubwindows(c *xgb.Conn, Window xproto.Window, Update byte) Redirect
}
// RedirectSubwindowsChecked sends a checked request.
// If an error occurs, it can be retrieved using RedirectSubwindowsCookie.Check()
// If an error occurs, it can be retrieved using RedirectSubwindowsCookie.Check.
func RedirectSubwindowsChecked(c *xgb.Conn, Window xproto.Window, Update byte) RedirectSubwindowsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -437,8 +433,7 @@ func (cook RedirectSubwindowsCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for RedirectSubwindows
// redirectSubwindowsRequest writes a RedirectSubwindows request to a byte slice.
// redirectSubwindowsRequest writes a RedirectSubwindows request to a byte slice for transfer.
func redirectSubwindowsRequest(c *xgb.Conn, Window xproto.Window, Update byte) []byte {
size := 12
b := 0
@ -485,7 +480,7 @@ func RedirectWindow(c *xgb.Conn, Window xproto.Window, Update byte) RedirectWind
}
// RedirectWindowChecked sends a checked request.
// If an error occurs, it can be retrieved using RedirectWindowCookie.Check()
// If an error occurs, it can be retrieved using RedirectWindowCookie.Check.
func RedirectWindowChecked(c *xgb.Conn, Window xproto.Window, Update byte) RedirectWindowCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -503,8 +498,7 @@ func (cook RedirectWindowCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for RedirectWindow
// redirectWindowRequest writes a RedirectWindow request to a byte slice.
// redirectWindowRequest writes a RedirectWindow request to a byte slice for transfer.
func redirectWindowRequest(c *xgb.Conn, Window xproto.Window, Update byte) []byte {
size := 12
b := 0
@ -551,7 +545,7 @@ func ReleaseOverlayWindow(c *xgb.Conn, Window xproto.Window) ReleaseOverlayWindo
}
// ReleaseOverlayWindowChecked sends a checked request.
// If an error occurs, it can be retrieved using ReleaseOverlayWindowCookie.Check()
// If an error occurs, it can be retrieved using ReleaseOverlayWindowCookie.Check.
func ReleaseOverlayWindowChecked(c *xgb.Conn, Window xproto.Window) ReleaseOverlayWindowCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -569,8 +563,7 @@ func (cook ReleaseOverlayWindowCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for ReleaseOverlayWindow
// releaseOverlayWindowRequest writes a ReleaseOverlayWindow request to a byte slice.
// releaseOverlayWindowRequest writes a ReleaseOverlayWindow request to a byte slice for transfer.
func releaseOverlayWindowRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@ -612,7 +605,7 @@ func UnredirectSubwindows(c *xgb.Conn, Window xproto.Window, Update byte) Unredi
}
// UnredirectSubwindowsChecked sends a checked request.
// If an error occurs, it can be retrieved using UnredirectSubwindowsCookie.Check()
// If an error occurs, it can be retrieved using UnredirectSubwindowsCookie.Check.
func UnredirectSubwindowsChecked(c *xgb.Conn, Window xproto.Window, Update byte) UnredirectSubwindowsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -630,8 +623,7 @@ func (cook UnredirectSubwindowsCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for UnredirectSubwindows
// unredirectSubwindowsRequest writes a UnredirectSubwindows request to a byte slice.
// unredirectSubwindowsRequest writes a UnredirectSubwindows request to a byte slice for transfer.
func unredirectSubwindowsRequest(c *xgb.Conn, Window xproto.Window, Update byte) []byte {
size := 12
b := 0
@ -678,7 +670,7 @@ func UnredirectWindow(c *xgb.Conn, Window xproto.Window, Update byte) Unredirect
}
// UnredirectWindowChecked sends a checked request.
// If an error occurs, it can be retrieved using UnredirectWindowCookie.Check()
// If an error occurs, it can be retrieved using UnredirectWindowCookie.Check.
func UnredirectWindowChecked(c *xgb.Conn, Window xproto.Window, Update byte) UnredirectWindowCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -696,8 +688,7 @@ func (cook UnredirectWindowCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for UnredirectWindow
// unredirectWindowRequest writes a UnredirectWindow request to a byte slice.
// unredirectWindowRequest writes a UnredirectWindow request to a byte slice for transfer.
func unredirectWindowRequest(c *xgb.Conn, Window xproto.Window, Update byte) []byte {
size := 12
b := 0

View File

@ -250,7 +250,7 @@ func Add(c *xgb.Conn, Drawable xproto.Drawable, Region xfixes.Region) AddCookie
}
// AddChecked sends a checked request.
// If an error occurs, it can be retrieved using AddCookie.Check()
// If an error occurs, it can be retrieved using AddCookie.Check.
func AddChecked(c *xgb.Conn, Drawable xproto.Drawable, Region xfixes.Region) AddCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -268,8 +268,7 @@ func (cook AddCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for Add
// addRequest writes a Add request to a byte slice.
// addRequest writes a Add request to a byte slice for transfer.
func addRequest(c *xgb.Conn, Drawable xproto.Drawable, Region xfixes.Region) []byte {
size := 12
b := 0
@ -314,7 +313,7 @@ func Create(c *xgb.Conn, Damage Damage, Drawable xproto.Drawable, Level byte) Cr
}
// CreateChecked sends a checked request.
// If an error occurs, it can be retrieved using CreateCookie.Check()
// If an error occurs, it can be retrieved using CreateCookie.Check.
func CreateChecked(c *xgb.Conn, Damage Damage, Drawable xproto.Drawable, Level byte) CreateCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -332,8 +331,7 @@ func (cook CreateCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for Create
// createRequest writes a Create request to a byte slice.
// createRequest writes a Create request to a byte slice for transfer.
func createRequest(c *xgb.Conn, Damage Damage, Drawable xproto.Drawable, Level byte) []byte {
size := 16
b := 0
@ -383,7 +381,7 @@ func Destroy(c *xgb.Conn, Damage Damage) DestroyCookie {
}
// DestroyChecked sends a checked request.
// If an error occurs, it can be retrieved using DestroyCookie.Check()
// If an error occurs, it can be retrieved using DestroyCookie.Check.
func DestroyChecked(c *xgb.Conn, Damage Damage) DestroyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -401,8 +399,7 @@ func (cook DestroyCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for Destroy
// destroyRequest writes a Destroy request to a byte slice.
// destroyRequest writes a Destroy request to a byte slice for transfer.
func destroyRequest(c *xgb.Conn, Damage Damage) []byte {
size := 8
b := 0
@ -431,8 +428,8 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersion(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie {
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint32) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DAMAGE"]; !ok {
@ -445,7 +442,7 @@ func QueryVersion(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uin
// QueryVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie {
func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint32) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DAMAGE"]; !ok {
@ -502,9 +499,8 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
// Write request to wire for QueryVersion
// queryVersionRequest writes a QueryVersion request to a byte slice.
func queryVersionRequest(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uint32) []byte {
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint32) []byte {
size := 12
b := 0
buf := make([]byte, size)
@ -536,7 +532,7 @@ type SubtractCookie struct {
// Subtract sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func Subtract(c *xgb.Conn, Damage Damage, Repair xfixes.Region, Parts xfixes.Region) SubtractCookie {
func Subtract(c *xgb.Conn, Damage Damage, Repair, Parts xfixes.Region) SubtractCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DAMAGE"]; !ok {
@ -548,8 +544,8 @@ func Subtract(c *xgb.Conn, Damage Damage, Repair xfixes.Region, Parts xfixes.Reg
}
// SubtractChecked sends a checked request.
// If an error occurs, it can be retrieved using SubtractCookie.Check()
func SubtractChecked(c *xgb.Conn, Damage Damage, Repair xfixes.Region, Parts xfixes.Region) SubtractCookie {
// If an error occurs, it can be retrieved using SubtractCookie.Check.
func SubtractChecked(c *xgb.Conn, Damage Damage, Repair, Parts xfixes.Region) SubtractCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DAMAGE"]; !ok {
@ -566,9 +562,8 @@ func (cook SubtractCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for Subtract
// subtractRequest writes a Subtract request to a byte slice.
func subtractRequest(c *xgb.Conn, Damage Damage, Repair xfixes.Region, Parts xfixes.Region) []byte {
// subtractRequest writes a Subtract request to a byte slice for transfer.
func subtractRequest(c *xgb.Conn, Damage Damage, Repair, Parts xfixes.Region) []byte {
size := 16
b := 0
buf := make([]byte, size)

View File

@ -78,7 +78,7 @@ type CapableCookie struct {
}
// Capable sends a checked request.
// If an error occurs, it will be returned with the reply by calling CapableCookie.Reply()
// If an error occurs, it will be returned with the reply by calling CapableCookie.Reply.
func Capable(c *xgb.Conn) CapableCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -149,8 +149,7 @@ func capableReply(buf []byte) *CapableReply {
return v
}
// Write request to wire for Capable
// capableRequest writes a Capable request to a byte slice.
// capableRequest writes a Capable request to a byte slice for transfer.
func capableRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -189,7 +188,7 @@ func Disable(c *xgb.Conn) DisableCookie {
}
// DisableChecked sends a checked request.
// If an error occurs, it can be retrieved using DisableCookie.Check()
// If an error occurs, it can be retrieved using DisableCookie.Check.
func DisableChecked(c *xgb.Conn) DisableCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -207,8 +206,7 @@ func (cook DisableCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for Disable
// disableRequest writes a Disable request to a byte slice.
// disableRequest writes a Disable request to a byte slice for transfer.
func disableRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -247,7 +245,7 @@ func Enable(c *xgb.Conn) EnableCookie {
}
// EnableChecked sends a checked request.
// If an error occurs, it can be retrieved using EnableCookie.Check()
// If an error occurs, it can be retrieved using EnableCookie.Check.
func EnableChecked(c *xgb.Conn) EnableCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -265,8 +263,7 @@ func (cook EnableCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for Enable
// enableRequest writes a Enable request to a byte slice.
// enableRequest writes a Enable request to a byte slice for transfer.
func enableRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -305,7 +302,7 @@ func ForceLevel(c *xgb.Conn, PowerLevel uint16) ForceLevelCookie {
}
// ForceLevelChecked sends a checked request.
// If an error occurs, it can be retrieved using ForceLevelCookie.Check()
// If an error occurs, it can be retrieved using ForceLevelCookie.Check.
func ForceLevelChecked(c *xgb.Conn, PowerLevel uint16) ForceLevelCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -323,8 +320,7 @@ func (cook ForceLevelCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for ForceLevel
// forceLevelRequest writes a ForceLevel request to a byte slice.
// forceLevelRequest writes a ForceLevel request to a byte slice for transfer.
func forceLevelRequest(c *xgb.Conn, PowerLevel uint16) []byte {
size := 8
b := 0
@ -353,7 +349,7 @@ type GetTimeoutsCookie struct {
}
// GetTimeouts sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetTimeoutsCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetTimeoutsCookie.Reply.
func GetTimeouts(c *xgb.Conn) GetTimeoutsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -428,8 +424,7 @@ func getTimeoutsReply(buf []byte) *GetTimeoutsReply {
return v
}
// Write request to wire for GetTimeouts
// getTimeoutsRequest writes a GetTimeouts request to a byte slice.
// getTimeoutsRequest writes a GetTimeouts request to a byte slice for transfer.
func getTimeoutsRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -455,8 +450,8 @@ type GetVersionCookie struct {
}
// GetVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetVersionCookie.Reply()
func GetVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) GetVersionCookie {
// If an error occurs, it will be returned with the reply by calling GetVersionCookie.Reply.
func GetVersion(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) GetVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DPMS"]; !ok {
@ -469,7 +464,7 @@ func GetVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint1
// GetVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetVersionUnchecked(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) GetVersionCookie {
func GetVersionUnchecked(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) GetVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DPMS"]; !ok {
@ -523,9 +518,8 @@ func getVersionReply(buf []byte) *GetVersionReply {
return v
}
// Write request to wire for GetVersion
// getVersionRequest writes a GetVersion request to a byte slice.
func getVersionRequest(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) []byte {
// getVersionRequest writes a GetVersion request to a byte slice for transfer.
func getVersionRequest(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) []byte {
size := 8
b := 0
buf := make([]byte, size)
@ -556,7 +550,7 @@ type InfoCookie struct {
}
// Info sends a checked request.
// If an error occurs, it will be returned with the reply by calling InfoCookie.Reply()
// If an error occurs, it will be returned with the reply by calling InfoCookie.Reply.
func Info(c *xgb.Conn) InfoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -631,8 +625,7 @@ func infoReply(buf []byte) *InfoReply {
return v
}
// Write request to wire for Info
// infoRequest writes a Info request to a byte slice.
// infoRequest writes a Info request to a byte slice for transfer.
func infoRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -659,7 +652,7 @@ type SetTimeoutsCookie struct {
// SetTimeouts sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetTimeouts(c *xgb.Conn, StandbyTimeout uint16, SuspendTimeout uint16, OffTimeout uint16) SetTimeoutsCookie {
func SetTimeouts(c *xgb.Conn, StandbyTimeout, SuspendTimeout, OffTimeout uint16) SetTimeoutsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DPMS"]; !ok {
@ -671,8 +664,8 @@ func SetTimeouts(c *xgb.Conn, StandbyTimeout uint16, SuspendTimeout uint16, OffT
}
// SetTimeoutsChecked sends a checked request.
// If an error occurs, it can be retrieved using SetTimeoutsCookie.Check()
func SetTimeoutsChecked(c *xgb.Conn, StandbyTimeout uint16, SuspendTimeout uint16, OffTimeout uint16) SetTimeoutsCookie {
// If an error occurs, it can be retrieved using SetTimeoutsCookie.Check.
func SetTimeoutsChecked(c *xgb.Conn, StandbyTimeout, SuspendTimeout, OffTimeout uint16) SetTimeoutsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DPMS"]; !ok {
@ -689,9 +682,8 @@ func (cook SetTimeoutsCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetTimeouts
// setTimeoutsRequest writes a SetTimeouts request to a byte slice.
func setTimeoutsRequest(c *xgb.Conn, StandbyTimeout uint16, SuspendTimeout uint16, OffTimeout uint16) []byte {
// setTimeoutsRequest writes a SetTimeouts request to a byte slice for transfer.
func setTimeoutsRequest(c *xgb.Conn, StandbyTimeout, SuspendTimeout, OffTimeout uint16) []byte {
size := 12
b := 0
buf := make([]byte, size)

View File

@ -404,7 +404,7 @@ type AuthenticateCookie struct {
}
// Authenticate sends a checked request.
// If an error occurs, it will be returned with the reply by calling AuthenticateCookie.Reply()
// If an error occurs, it will be returned with the reply by calling AuthenticateCookie.Reply.
func Authenticate(c *xgb.Conn, Window xproto.Window, Magic uint32) AuthenticateCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -468,8 +468,7 @@ func authenticateReply(buf []byte) *AuthenticateReply {
return v
}
// Write request to wire for Authenticate
// authenticateRequest writes a Authenticate request to a byte slice.
// authenticateRequest writes a Authenticate request to a byte slice for transfer.
func authenticateRequest(c *xgb.Conn, Window xproto.Window, Magic uint32) []byte {
size := 12
b := 0
@ -501,7 +500,7 @@ type ConnectCookie struct {
}
// Connect sends a checked request.
// If an error occurs, it will be returned with the reply by calling ConnectCookie.Reply()
// If an error occurs, it will be returned with the reply by calling ConnectCookie.Reply.
func Connect(c *xgb.Conn, Window xproto.Window, DriverType uint32) ConnectCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -593,8 +592,7 @@ func connectReply(buf []byte) *ConnectReply {
return v
}
// Write request to wire for Connect
// connectRequest writes a Connect request to a byte slice.
// connectRequest writes a Connect request to a byte slice for transfer.
func connectRequest(c *xgb.Conn, Window xproto.Window, DriverType uint32) []byte {
size := 12
b := 0
@ -626,8 +624,8 @@ type CopyRegionCookie struct {
}
// CopyRegion sends a checked request.
// If an error occurs, it will be returned with the reply by calling CopyRegionCookie.Reply()
func CopyRegion(c *xgb.Conn, Drawable xproto.Drawable, Region uint32, Dest uint32, Src uint32) CopyRegionCookie {
// If an error occurs, it will be returned with the reply by calling CopyRegionCookie.Reply.
func CopyRegion(c *xgb.Conn, Drawable xproto.Drawable, Region, Dest, Src uint32) CopyRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DRI2"]; !ok {
@ -640,7 +638,7 @@ func CopyRegion(c *xgb.Conn, Drawable xproto.Drawable, Region uint32, Dest uint3
// CopyRegionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CopyRegionUnchecked(c *xgb.Conn, Drawable xproto.Drawable, Region uint32, Dest uint32, Src uint32) CopyRegionCookie {
func CopyRegionUnchecked(c *xgb.Conn, Drawable xproto.Drawable, Region, Dest, Src uint32) CopyRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DRI2"]; !ok {
@ -686,9 +684,8 @@ func copyRegionReply(buf []byte) *CopyRegionReply {
return v
}
// Write request to wire for CopyRegion
// copyRegionRequest writes a CopyRegion request to a byte slice.
func copyRegionRequest(c *xgb.Conn, Drawable xproto.Drawable, Region uint32, Dest uint32, Src uint32) []byte {
// copyRegionRequest writes a CopyRegion request to a byte slice for transfer.
func copyRegionRequest(c *xgb.Conn, Drawable xproto.Drawable, Region, Dest, Src uint32) []byte {
size := 20
b := 0
buf := make([]byte, size)
@ -738,7 +735,7 @@ func CreateDrawable(c *xgb.Conn, Drawable xproto.Drawable) CreateDrawableCookie
}
// CreateDrawableChecked sends a checked request.
// If an error occurs, it can be retrieved using CreateDrawableCookie.Check()
// If an error occurs, it can be retrieved using CreateDrawableCookie.Check.
func CreateDrawableChecked(c *xgb.Conn, Drawable xproto.Drawable) CreateDrawableCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -756,8 +753,7 @@ func (cook CreateDrawableCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CreateDrawable
// createDrawableRequest writes a CreateDrawable request to a byte slice.
// createDrawableRequest writes a CreateDrawable request to a byte slice for transfer.
func createDrawableRequest(c *xgb.Conn, Drawable xproto.Drawable) []byte {
size := 8
b := 0
@ -799,7 +795,7 @@ func DestroyDrawable(c *xgb.Conn, Drawable xproto.Drawable) DestroyDrawableCooki
}
// DestroyDrawableChecked sends a checked request.
// If an error occurs, it can be retrieved using DestroyDrawableCookie.Check()
// If an error occurs, it can be retrieved using DestroyDrawableCookie.Check.
func DestroyDrawableChecked(c *xgb.Conn, Drawable xproto.Drawable) DestroyDrawableCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -817,8 +813,7 @@ func (cook DestroyDrawableCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for DestroyDrawable
// destroyDrawableRequest writes a DestroyDrawable request to a byte slice.
// destroyDrawableRequest writes a DestroyDrawable request to a byte slice for transfer.
func destroyDrawableRequest(c *xgb.Conn, Drawable xproto.Drawable) []byte {
size := 8
b := 0
@ -847,7 +842,7 @@ type GetBuffersCookie struct {
}
// GetBuffers sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetBuffersCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetBuffersCookie.Reply.
func GetBuffers(c *xgb.Conn, Drawable xproto.Drawable, Count uint32, Attachments []uint32) GetBuffersCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -926,8 +921,7 @@ func getBuffersReply(buf []byte) *GetBuffersReply {
return v
}
// Write request to wire for GetBuffers
// getBuffersRequest writes a GetBuffers request to a byte slice.
// getBuffersRequest writes a GetBuffers request to a byte slice for transfer.
func getBuffersRequest(c *xgb.Conn, Drawable xproto.Drawable, Count uint32, Attachments []uint32) []byte {
size := xgb.Pad((12 + xgb.Pad((len(Attachments) * 4))))
b := 0
@ -964,7 +958,7 @@ type GetBuffersWithFormatCookie struct {
}
// GetBuffersWithFormat sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetBuffersWithFormatCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetBuffersWithFormatCookie.Reply.
func GetBuffersWithFormat(c *xgb.Conn, Drawable xproto.Drawable, Count uint32, Attachments []AttachFormat) GetBuffersWithFormatCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1043,8 +1037,7 @@ func getBuffersWithFormatReply(buf []byte) *GetBuffersWithFormatReply {
return v
}
// Write request to wire for GetBuffersWithFormat
// getBuffersWithFormatRequest writes a GetBuffersWithFormat request to a byte slice.
// getBuffersWithFormatRequest writes a GetBuffersWithFormat request to a byte slice for transfer.
func getBuffersWithFormatRequest(c *xgb.Conn, Drawable xproto.Drawable, Count uint32, Attachments []AttachFormat) []byte {
size := xgb.Pad((12 + xgb.Pad((len(Attachments) * 8))))
b := 0
@ -1078,7 +1071,7 @@ type GetMSCCookie struct {
}
// GetMSC sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetMSCCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetMSCCookie.Reply.
func GetMSC(c *xgb.Conn, Drawable xproto.Drawable) GetMSCCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1162,8 +1155,7 @@ func getMSCReply(buf []byte) *GetMSCReply {
return v
}
// Write request to wire for GetMSC
// getMSCRequest writes a GetMSC request to a byte slice.
// getMSCRequest writes a GetMSC request to a byte slice for transfer.
func getMSCRequest(c *xgb.Conn, Drawable xproto.Drawable) []byte {
size := 8
b := 0
@ -1192,7 +1184,7 @@ type GetParamCookie struct {
}
// GetParam sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetParamCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetParamCookie.Reply.
func GetParam(c *xgb.Conn, Drawable xproto.Drawable, Param uint32) GetParamCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1265,8 +1257,7 @@ func getParamReply(buf []byte) *GetParamReply {
return v
}
// Write request to wire for GetParam
// getParamRequest writes a GetParam request to a byte slice.
// getParamRequest writes a GetParam request to a byte slice for transfer.
func getParamRequest(c *xgb.Conn, Drawable xproto.Drawable, Param uint32) []byte {
size := 12
b := 0
@ -1298,8 +1289,8 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersion(c *xgb.Conn, MajorVersion uint32, MinorVersion uint32) QueryVersionCookie {
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn, MajorVersion, MinorVersion uint32) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DRI2"]; !ok {
@ -1312,7 +1303,7 @@ func QueryVersion(c *xgb.Conn, MajorVersion uint32, MinorVersion uint32) QueryVe
// QueryVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryVersionUnchecked(c *xgb.Conn, MajorVersion uint32, MinorVersion uint32) QueryVersionCookie {
func QueryVersionUnchecked(c *xgb.Conn, MajorVersion, MinorVersion uint32) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DRI2"]; !ok {
@ -1366,9 +1357,8 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
// Write request to wire for QueryVersion
// queryVersionRequest writes a QueryVersion request to a byte slice.
func queryVersionRequest(c *xgb.Conn, MajorVersion uint32, MinorVersion uint32) []byte {
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn, MajorVersion, MinorVersion uint32) []byte {
size := 12
b := 0
buf := make([]byte, size)
@ -1399,8 +1389,8 @@ type SwapBuffersCookie struct {
}
// SwapBuffers sends a checked request.
// If an error occurs, it will be returned with the reply by calling SwapBuffersCookie.Reply()
func SwapBuffers(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi uint32, TargetMscLo uint32, DivisorHi uint32, DivisorLo uint32, RemainderHi uint32, RemainderLo uint32) SwapBuffersCookie {
// If an error occurs, it will be returned with the reply by calling SwapBuffersCookie.Reply.
func SwapBuffers(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi, TargetMscLo, DivisorHi, DivisorLo, RemainderHi, RemainderLo uint32) SwapBuffersCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DRI2"]; !ok {
@ -1413,7 +1403,7 @@ func SwapBuffers(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi uint32, Targ
// SwapBuffersUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SwapBuffersUnchecked(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi uint32, TargetMscLo uint32, DivisorHi uint32, DivisorLo uint32, RemainderHi uint32, RemainderLo uint32) SwapBuffersCookie {
func SwapBuffersUnchecked(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi, TargetMscLo, DivisorHi, DivisorLo, RemainderHi, RemainderLo uint32) SwapBuffersCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DRI2"]; !ok {
@ -1467,9 +1457,8 @@ func swapBuffersReply(buf []byte) *SwapBuffersReply {
return v
}
// Write request to wire for SwapBuffers
// swapBuffersRequest writes a SwapBuffers request to a byte slice.
func swapBuffersRequest(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi uint32, TargetMscLo uint32, DivisorHi uint32, DivisorLo uint32, RemainderHi uint32, RemainderLo uint32) []byte {
// swapBuffersRequest writes a SwapBuffers request to a byte slice for transfer.
func swapBuffersRequest(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi, TargetMscLo, DivisorHi, DivisorLo, RemainderHi, RemainderLo uint32) []byte {
size := 32
b := 0
buf := make([]byte, size)
@ -1528,7 +1517,7 @@ func SwapInterval(c *xgb.Conn, Drawable xproto.Drawable, Interval uint32) SwapIn
}
// SwapIntervalChecked sends a checked request.
// If an error occurs, it can be retrieved using SwapIntervalCookie.Check()
// If an error occurs, it can be retrieved using SwapIntervalCookie.Check.
func SwapIntervalChecked(c *xgb.Conn, Drawable xproto.Drawable, Interval uint32) SwapIntervalCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1546,8 +1535,7 @@ func (cook SwapIntervalCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SwapInterval
// swapIntervalRequest writes a SwapInterval request to a byte slice.
// swapIntervalRequest writes a SwapInterval request to a byte slice for transfer.
func swapIntervalRequest(c *xgb.Conn, Drawable xproto.Drawable, Interval uint32) []byte {
size := 12
b := 0
@ -1579,8 +1567,8 @@ type WaitMSCCookie struct {
}
// WaitMSC sends a checked request.
// If an error occurs, it will be returned with the reply by calling WaitMSCCookie.Reply()
func WaitMSC(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi uint32, TargetMscLo uint32, DivisorHi uint32, DivisorLo uint32, RemainderHi uint32, RemainderLo uint32) WaitMSCCookie {
// If an error occurs, it will be returned with the reply by calling WaitMSCCookie.Reply.
func WaitMSC(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi, TargetMscLo, DivisorHi, DivisorLo, RemainderHi, RemainderLo uint32) WaitMSCCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DRI2"]; !ok {
@ -1593,7 +1581,7 @@ func WaitMSC(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi uint32, TargetMs
// WaitMSCUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func WaitMSCUnchecked(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi uint32, TargetMscLo uint32, DivisorHi uint32, DivisorLo uint32, RemainderHi uint32, RemainderLo uint32) WaitMSCCookie {
func WaitMSCUnchecked(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi, TargetMscLo, DivisorHi, DivisorLo, RemainderHi, RemainderLo uint32) WaitMSCCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DRI2"]; !ok {
@ -1663,9 +1651,8 @@ func waitMSCReply(buf []byte) *WaitMSCReply {
return v
}
// Write request to wire for WaitMSC
// waitMSCRequest writes a WaitMSC request to a byte slice.
func waitMSCRequest(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi uint32, TargetMscLo uint32, DivisorHi uint32, DivisorLo uint32, RemainderHi uint32, RemainderLo uint32) []byte {
// waitMSCRequest writes a WaitMSC request to a byte slice for transfer.
func waitMSCRequest(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi, TargetMscLo, DivisorHi, DivisorLo, RemainderHi, RemainderLo uint32) []byte {
size := 32
b := 0
buf := make([]byte, size)
@ -1711,8 +1698,8 @@ type WaitSBCCookie struct {
}
// WaitSBC sends a checked request.
// If an error occurs, it will be returned with the reply by calling WaitSBCCookie.Reply()
func WaitSBC(c *xgb.Conn, Drawable xproto.Drawable, TargetSbcHi uint32, TargetSbcLo uint32) WaitSBCCookie {
// If an error occurs, it will be returned with the reply by calling WaitSBCCookie.Reply.
func WaitSBC(c *xgb.Conn, Drawable xproto.Drawable, TargetSbcHi, TargetSbcLo uint32) WaitSBCCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DRI2"]; !ok {
@ -1725,7 +1712,7 @@ func WaitSBC(c *xgb.Conn, Drawable xproto.Drawable, TargetSbcHi uint32, TargetSb
// WaitSBCUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func WaitSBCUnchecked(c *xgb.Conn, Drawable xproto.Drawable, TargetSbcHi uint32, TargetSbcLo uint32) WaitSBCCookie {
func WaitSBCUnchecked(c *xgb.Conn, Drawable xproto.Drawable, TargetSbcHi, TargetSbcLo uint32) WaitSBCCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DRI2"]; !ok {
@ -1795,9 +1782,8 @@ func waitSBCReply(buf []byte) *WaitSBCReply {
return v
}
// Write request to wire for WaitSBC
// waitSBCRequest writes a WaitSBC request to a byte slice.
func waitSBCRequest(c *xgb.Conn, Drawable xproto.Drawable, TargetSbcHi uint32, TargetSbcLo uint32) []byte {
// waitSBCRequest writes a WaitSBC request to a byte slice for transfer.
func waitSBCRequest(c *xgb.Conn, Drawable xproto.Drawable, TargetSbcHi, TargetSbcLo uint32) []byte {
size := 16
b := 0
buf := make([]byte, size)

View File

@ -71,8 +71,8 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) QueryVersionCookie {
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["Generic Event Extension"]; !ok {
@ -85,7 +85,7 @@ func QueryVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uin
// QueryVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) QueryVersionCookie {
func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["Generic Event Extension"]; !ok {
@ -142,9 +142,8 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
// Write request to wire for QueryVersion
// queryVersionRequest writes a QueryVersion request to a byte slice.
func queryVersionRequest(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) []byte {
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) []byte {
size := 8
b := 0
buf := make([]byte, size)

File diff suppressed because it is too large Load Diff

View File

@ -1842,7 +1842,7 @@ func AddOutputMode(c *xgb.Conn, Output Output, Mode Mode) AddOutputModeCookie {
}
// AddOutputModeChecked sends a checked request.
// If an error occurs, it can be retrieved using AddOutputModeCookie.Check()
// If an error occurs, it can be retrieved using AddOutputModeCookie.Check.
func AddOutputModeChecked(c *xgb.Conn, Output Output, Mode Mode) AddOutputModeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1860,8 +1860,7 @@ func (cook AddOutputModeCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for AddOutputMode
// addOutputModeRequest writes a AddOutputMode request to a byte slice.
// addOutputModeRequest writes a AddOutputMode request to a byte slice for transfer.
func addOutputModeRequest(c *xgb.Conn, Output Output, Mode Mode) []byte {
size := 12
b := 0
@ -1894,7 +1893,7 @@ type ChangeOutputPropertyCookie struct {
// ChangeOutputProperty sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ChangeOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumUnits uint32, Data []byte) ChangeOutputPropertyCookie {
func ChangeOutputProperty(c *xgb.Conn, Output Output, Property, Type xproto.Atom, Format, Mode byte, NumUnits uint32, Data []byte) ChangeOutputPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -1906,8 +1905,8 @@ func ChangeOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, Type
}
// ChangeOutputPropertyChecked sends a checked request.
// If an error occurs, it can be retrieved using ChangeOutputPropertyCookie.Check()
func ChangeOutputPropertyChecked(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumUnits uint32, Data []byte) ChangeOutputPropertyCookie {
// If an error occurs, it can be retrieved using ChangeOutputPropertyCookie.Check.
func ChangeOutputPropertyChecked(c *xgb.Conn, Output Output, Property, Type xproto.Atom, Format, Mode byte, NumUnits uint32, Data []byte) ChangeOutputPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -1924,9 +1923,8 @@ func (cook ChangeOutputPropertyCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for ChangeOutputProperty
// changeOutputPropertyRequest writes a ChangeOutputProperty request to a byte slice.
func changeOutputPropertyRequest(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumUnits uint32, Data []byte) []byte {
// changeOutputPropertyRequest writes a ChangeOutputProperty request to a byte slice for transfer.
func changeOutputPropertyRequest(c *xgb.Conn, Output Output, Property, Type xproto.Atom, Format, Mode byte, NumUnits uint32, Data []byte) []byte {
size := xgb.Pad((24 + xgb.Pad((((int(NumUnits) * int(Format)) / 8) * 1))))
b := 0
buf := make([]byte, size)
@ -1975,7 +1973,7 @@ type ChangeProviderPropertyCookie struct {
// ChangeProviderProperty sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ChangeProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumItems uint32, Data []byte) ChangeProviderPropertyCookie {
func ChangeProviderProperty(c *xgb.Conn, Provider Provider, Property, Type xproto.Atom, Format, Mode byte, NumItems uint32, Data []byte) ChangeProviderPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -1987,8 +1985,8 @@ func ChangeProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom
}
// ChangeProviderPropertyChecked sends a checked request.
// If an error occurs, it can be retrieved using ChangeProviderPropertyCookie.Check()
func ChangeProviderPropertyChecked(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumItems uint32, Data []byte) ChangeProviderPropertyCookie {
// If an error occurs, it can be retrieved using ChangeProviderPropertyCookie.Check.
func ChangeProviderPropertyChecked(c *xgb.Conn, Provider Provider, Property, Type xproto.Atom, Format, Mode byte, NumItems uint32, Data []byte) ChangeProviderPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -2005,9 +2003,8 @@ func (cook ChangeProviderPropertyCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for ChangeProviderProperty
// changeProviderPropertyRequest writes a ChangeProviderProperty request to a byte slice.
func changeProviderPropertyRequest(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumItems uint32, Data []byte) []byte {
// changeProviderPropertyRequest writes a ChangeProviderProperty request to a byte slice for transfer.
func changeProviderPropertyRequest(c *xgb.Conn, Provider Provider, Property, Type xproto.Atom, Format, Mode byte, NumItems uint32, Data []byte) []byte {
size := xgb.Pad((24 + xgb.Pad(((int(NumItems) * (int(Format) / 8)) * 1))))
b := 0
buf := make([]byte, size)
@ -2056,7 +2053,7 @@ type ConfigureOutputPropertyCookie struct {
// ConfigureOutputProperty sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ConfigureOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, Pending bool, Range bool, Values []int32) ConfigureOutputPropertyCookie {
func ConfigureOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, Pending, Range bool, Values []int32) ConfigureOutputPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -2068,8 +2065,8 @@ func ConfigureOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, P
}
// ConfigureOutputPropertyChecked sends a checked request.
// If an error occurs, it can be retrieved using ConfigureOutputPropertyCookie.Check()
func ConfigureOutputPropertyChecked(c *xgb.Conn, Output Output, Property xproto.Atom, Pending bool, Range bool, Values []int32) ConfigureOutputPropertyCookie {
// If an error occurs, it can be retrieved using ConfigureOutputPropertyCookie.Check.
func ConfigureOutputPropertyChecked(c *xgb.Conn, Output Output, Property xproto.Atom, Pending, Range bool, Values []int32) ConfigureOutputPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -2086,9 +2083,8 @@ func (cook ConfigureOutputPropertyCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for ConfigureOutputProperty
// configureOutputPropertyRequest writes a ConfigureOutputProperty request to a byte slice.
func configureOutputPropertyRequest(c *xgb.Conn, Output Output, Property xproto.Atom, Pending bool, Range bool, Values []int32) []byte {
// configureOutputPropertyRequest writes a ConfigureOutputProperty request to a byte slice for transfer.
func configureOutputPropertyRequest(c *xgb.Conn, Output Output, Property xproto.Atom, Pending, Range bool, Values []int32) []byte {
size := xgb.Pad((16 + xgb.Pad((len(Values) * 4))))
b := 0
buf := make([]byte, size)
@ -2141,7 +2137,7 @@ type ConfigureProviderPropertyCookie struct {
// ConfigureProviderProperty sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ConfigureProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom, Pending bool, Range bool, Values []int32) ConfigureProviderPropertyCookie {
func ConfigureProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom, Pending, Range bool, Values []int32) ConfigureProviderPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -2153,8 +2149,8 @@ func ConfigureProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.A
}
// ConfigureProviderPropertyChecked sends a checked request.
// If an error occurs, it can be retrieved using ConfigureProviderPropertyCookie.Check()
func ConfigureProviderPropertyChecked(c *xgb.Conn, Provider Provider, Property xproto.Atom, Pending bool, Range bool, Values []int32) ConfigureProviderPropertyCookie {
// If an error occurs, it can be retrieved using ConfigureProviderPropertyCookie.Check.
func ConfigureProviderPropertyChecked(c *xgb.Conn, Provider Provider, Property xproto.Atom, Pending, Range bool, Values []int32) ConfigureProviderPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -2171,9 +2167,8 @@ func (cook ConfigureProviderPropertyCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for ConfigureProviderProperty
// configureProviderPropertyRequest writes a ConfigureProviderProperty request to a byte slice.
func configureProviderPropertyRequest(c *xgb.Conn, Provider Provider, Property xproto.Atom, Pending bool, Range bool, Values []int32) []byte {
// configureProviderPropertyRequest writes a ConfigureProviderProperty request to a byte slice for transfer.
func configureProviderPropertyRequest(c *xgb.Conn, Provider Provider, Property xproto.Atom, Pending, Range bool, Values []int32) []byte {
size := xgb.Pad((16 + xgb.Pad((len(Values) * 4))))
b := 0
buf := make([]byte, size)
@ -2225,7 +2220,7 @@ type CreateModeCookie struct {
}
// CreateMode sends a checked request.
// If an error occurs, it will be returned with the reply by calling CreateModeCookie.Reply()
// If an error occurs, it will be returned with the reply by calling CreateModeCookie.Reply.
func CreateMode(c *xgb.Conn, Window xproto.Window, ModeInfo ModeInfo, Name string) CreateModeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2292,8 +2287,7 @@ func createModeReply(buf []byte) *CreateModeReply {
return v
}
// Write request to wire for CreateMode
// createModeRequest writes a CreateMode request to a byte slice.
// createModeRequest writes a CreateMode request to a byte slice for transfer.
func createModeRequest(c *xgb.Conn, Window xproto.Window, ModeInfo ModeInfo, Name string) []byte {
size := xgb.Pad((40 + xgb.Pad((len(Name) * 1))))
b := 0
@ -2344,7 +2338,7 @@ func DeleteMonitor(c *xgb.Conn, Window xproto.Window, Name xproto.Atom) DeleteMo
}
// DeleteMonitorChecked sends a checked request.
// If an error occurs, it can be retrieved using DeleteMonitorCookie.Check()
// If an error occurs, it can be retrieved using DeleteMonitorCookie.Check.
func DeleteMonitorChecked(c *xgb.Conn, Window xproto.Window, Name xproto.Atom) DeleteMonitorCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2362,8 +2356,7 @@ func (cook DeleteMonitorCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for DeleteMonitor
// deleteMonitorRequest writes a DeleteMonitor request to a byte slice.
// deleteMonitorRequest writes a DeleteMonitor request to a byte slice for transfer.
func deleteMonitorRequest(c *xgb.Conn, Window xproto.Window, Name xproto.Atom) []byte {
size := 12
b := 0
@ -2408,7 +2401,7 @@ func DeleteOutputMode(c *xgb.Conn, Output Output, Mode Mode) DeleteOutputModeCoo
}
// DeleteOutputModeChecked sends a checked request.
// If an error occurs, it can be retrieved using DeleteOutputModeCookie.Check()
// If an error occurs, it can be retrieved using DeleteOutputModeCookie.Check.
func DeleteOutputModeChecked(c *xgb.Conn, Output Output, Mode Mode) DeleteOutputModeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2426,8 +2419,7 @@ func (cook DeleteOutputModeCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for DeleteOutputMode
// deleteOutputModeRequest writes a DeleteOutputMode request to a byte slice.
// deleteOutputModeRequest writes a DeleteOutputMode request to a byte slice for transfer.
func deleteOutputModeRequest(c *xgb.Conn, Output Output, Mode Mode) []byte {
size := 12
b := 0
@ -2472,7 +2464,7 @@ func DeleteOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom) Dele
}
// DeleteOutputPropertyChecked sends a checked request.
// If an error occurs, it can be retrieved using DeleteOutputPropertyCookie.Check()
// If an error occurs, it can be retrieved using DeleteOutputPropertyCookie.Check.
func DeleteOutputPropertyChecked(c *xgb.Conn, Output Output, Property xproto.Atom) DeleteOutputPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2490,8 +2482,7 @@ func (cook DeleteOutputPropertyCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for DeleteOutputProperty
// deleteOutputPropertyRequest writes a DeleteOutputProperty request to a byte slice.
// deleteOutputPropertyRequest writes a DeleteOutputProperty request to a byte slice for transfer.
func deleteOutputPropertyRequest(c *xgb.Conn, Output Output, Property xproto.Atom) []byte {
size := 12
b := 0
@ -2536,7 +2527,7 @@ func DeleteProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom
}
// DeleteProviderPropertyChecked sends a checked request.
// If an error occurs, it can be retrieved using DeleteProviderPropertyCookie.Check()
// If an error occurs, it can be retrieved using DeleteProviderPropertyCookie.Check.
func DeleteProviderPropertyChecked(c *xgb.Conn, Provider Provider, Property xproto.Atom) DeleteProviderPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2554,8 +2545,7 @@ func (cook DeleteProviderPropertyCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for DeleteProviderProperty
// deleteProviderPropertyRequest writes a DeleteProviderProperty request to a byte slice.
// deleteProviderPropertyRequest writes a DeleteProviderProperty request to a byte slice for transfer.
func deleteProviderPropertyRequest(c *xgb.Conn, Provider Provider, Property xproto.Atom) []byte {
size := 12
b := 0
@ -2600,7 +2590,7 @@ func DestroyMode(c *xgb.Conn, Mode Mode) DestroyModeCookie {
}
// DestroyModeChecked sends a checked request.
// If an error occurs, it can be retrieved using DestroyModeCookie.Check()
// If an error occurs, it can be retrieved using DestroyModeCookie.Check.
func DestroyModeChecked(c *xgb.Conn, Mode Mode) DestroyModeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2618,8 +2608,7 @@ func (cook DestroyModeCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for DestroyMode
// destroyModeRequest writes a DestroyMode request to a byte slice.
// destroyModeRequest writes a DestroyMode request to a byte slice for transfer.
func destroyModeRequest(c *xgb.Conn, Mode Mode) []byte {
size := 8
b := 0
@ -2648,7 +2637,7 @@ type GetCrtcGammaCookie struct {
}
// GetCrtcGamma sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetCrtcGammaCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetCrtcGammaCookie.Reply.
func GetCrtcGamma(c *xgb.Conn, Crtc Crtc) GetCrtcGammaCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2736,8 +2725,7 @@ func getCrtcGammaReply(buf []byte) *GetCrtcGammaReply {
return v
}
// Write request to wire for GetCrtcGamma
// getCrtcGammaRequest writes a GetCrtcGamma request to a byte slice.
// getCrtcGammaRequest writes a GetCrtcGamma request to a byte slice for transfer.
func getCrtcGammaRequest(c *xgb.Conn, Crtc Crtc) []byte {
size := 8
b := 0
@ -2766,7 +2754,7 @@ type GetCrtcGammaSizeCookie struct {
}
// GetCrtcGammaSize sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetCrtcGammaSizeCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetCrtcGammaSizeCookie.Reply.
func GetCrtcGammaSize(c *xgb.Conn, Crtc Crtc) GetCrtcGammaSizeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2833,8 +2821,7 @@ func getCrtcGammaSizeReply(buf []byte) *GetCrtcGammaSizeReply {
return v
}
// Write request to wire for GetCrtcGammaSize
// getCrtcGammaSizeRequest writes a GetCrtcGammaSize request to a byte slice.
// getCrtcGammaSizeRequest writes a GetCrtcGammaSize request to a byte slice for transfer.
func getCrtcGammaSizeRequest(c *xgb.Conn, Crtc Crtc) []byte {
size := 8
b := 0
@ -2863,7 +2850,7 @@ type GetCrtcInfoCookie struct {
}
// GetCrtcInfo sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetCrtcInfoCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetCrtcInfoCookie.Reply.
func GetCrtcInfo(c *xgb.Conn, Crtc Crtc, ConfigTimestamp xproto.Timestamp) GetCrtcInfoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2978,8 +2965,7 @@ func getCrtcInfoReply(buf []byte) *GetCrtcInfoReply {
return v
}
// Write request to wire for GetCrtcInfo
// getCrtcInfoRequest writes a GetCrtcInfo request to a byte slice.
// getCrtcInfoRequest writes a GetCrtcInfo request to a byte slice for transfer.
func getCrtcInfoRequest(c *xgb.Conn, Crtc Crtc, ConfigTimestamp xproto.Timestamp) []byte {
size := 12
b := 0
@ -3011,7 +2997,7 @@ type GetCrtcTransformCookie struct {
}
// GetCrtcTransform sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetCrtcTransformCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetCrtcTransformCookie.Reply.
func GetCrtcTransform(c *xgb.Conn, Crtc Crtc) GetCrtcTransformCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -3145,8 +3131,7 @@ func getCrtcTransformReply(buf []byte) *GetCrtcTransformReply {
return v
}
// Write request to wire for GetCrtcTransform
// getCrtcTransformRequest writes a GetCrtcTransform request to a byte slice.
// getCrtcTransformRequest writes a GetCrtcTransform request to a byte slice for transfer.
func getCrtcTransformRequest(c *xgb.Conn, Crtc Crtc) []byte {
size := 8
b := 0
@ -3175,7 +3160,7 @@ type GetMonitorsCookie struct {
}
// GetMonitors sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetMonitorsCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetMonitorsCookie.Reply.
func GetMonitors(c *xgb.Conn, Window xproto.Window, GetActive bool) GetMonitorsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -3254,8 +3239,7 @@ func getMonitorsReply(buf []byte) *GetMonitorsReply {
return v
}
// Write request to wire for GetMonitors
// getMonitorsRequest writes a GetMonitors request to a byte slice.
// getMonitorsRequest writes a GetMonitors request to a byte slice for transfer.
func getMonitorsRequest(c *xgb.Conn, Window xproto.Window, GetActive bool) []byte {
size := 12
b := 0
@ -3291,7 +3275,7 @@ type GetOutputInfoCookie struct {
}
// GetOutputInfo sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetOutputInfoCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetOutputInfoCookie.Reply.
func GetOutputInfo(c *xgb.Conn, Output Output, ConfigTimestamp xproto.Timestamp) GetOutputInfoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -3422,8 +3406,7 @@ func getOutputInfoReply(buf []byte) *GetOutputInfoReply {
return v
}
// Write request to wire for GetOutputInfo
// getOutputInfoRequest writes a GetOutputInfo request to a byte slice.
// getOutputInfoRequest writes a GetOutputInfo request to a byte slice for transfer.
func getOutputInfoRequest(c *xgb.Conn, Output Output, ConfigTimestamp xproto.Timestamp) []byte {
size := 12
b := 0
@ -3455,7 +3438,7 @@ type GetOutputPrimaryCookie struct {
}
// GetOutputPrimary sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetOutputPrimaryCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetOutputPrimaryCookie.Reply.
func GetOutputPrimary(c *xgb.Conn, Window xproto.Window) GetOutputPrimaryCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -3519,8 +3502,7 @@ func getOutputPrimaryReply(buf []byte) *GetOutputPrimaryReply {
return v
}
// Write request to wire for GetOutputPrimary
// getOutputPrimaryRequest writes a GetOutputPrimary request to a byte slice.
// getOutputPrimaryRequest writes a GetOutputPrimary request to a byte slice for transfer.
func getOutputPrimaryRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@ -3549,8 +3531,8 @@ type GetOutputPropertyCookie struct {
}
// GetOutputProperty sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetOutputPropertyCookie.Reply()
func GetOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) GetOutputPropertyCookie {
// If an error occurs, it will be returned with the reply by calling GetOutputPropertyCookie.Reply.
func GetOutputProperty(c *xgb.Conn, Output Output, Property, Type xproto.Atom, LongOffset, LongLength uint32, Delete, Pending bool) GetOutputPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -3563,7 +3545,7 @@ func GetOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, Type xp
// GetOutputPropertyUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetOutputPropertyUnchecked(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) GetOutputPropertyCookie {
func GetOutputPropertyUnchecked(c *xgb.Conn, Output Output, Property, Type xproto.Atom, LongOffset, LongLength uint32, Delete, Pending bool) GetOutputPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -3630,9 +3612,8 @@ func getOutputPropertyReply(buf []byte) *GetOutputPropertyReply {
return v
}
// Write request to wire for GetOutputProperty
// getOutputPropertyRequest writes a GetOutputProperty request to a byte slice.
func getOutputPropertyRequest(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) []byte {
// getOutputPropertyRequest writes a GetOutputProperty request to a byte slice for transfer.
func getOutputPropertyRequest(c *xgb.Conn, Output Output, Property, Type xproto.Atom, LongOffset, LongLength uint32, Delete, Pending bool) []byte {
size := 28
b := 0
buf := make([]byte, size)
@ -3688,7 +3669,7 @@ type GetPanningCookie struct {
}
// GetPanning sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetPanningCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetPanningCookie.Reply.
func GetPanning(c *xgb.Conn, Crtc Crtc) GetPanningCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -3801,8 +3782,7 @@ func getPanningReply(buf []byte) *GetPanningReply {
return v
}
// Write request to wire for GetPanning
// getPanningRequest writes a GetPanning request to a byte slice.
// getPanningRequest writes a GetPanning request to a byte slice for transfer.
func getPanningRequest(c *xgb.Conn, Crtc Crtc) []byte {
size := 8
b := 0
@ -3831,7 +3811,7 @@ type GetProviderInfoCookie struct {
}
// GetProviderInfo sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetProviderInfoCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetProviderInfoCookie.Reply.
func GetProviderInfo(c *xgb.Conn, Provider Provider, ConfigTimestamp xproto.Timestamp) GetProviderInfoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -3955,8 +3935,7 @@ func getProviderInfoReply(buf []byte) *GetProviderInfoReply {
return v
}
// Write request to wire for GetProviderInfo
// getProviderInfoRequest writes a GetProviderInfo request to a byte slice.
// getProviderInfoRequest writes a GetProviderInfo request to a byte slice for transfer.
func getProviderInfoRequest(c *xgb.Conn, Provider Provider, ConfigTimestamp xproto.Timestamp) []byte {
size := 12
b := 0
@ -3988,8 +3967,8 @@ type GetProviderPropertyCookie struct {
}
// GetProviderProperty sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetProviderPropertyCookie.Reply()
func GetProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) GetProviderPropertyCookie {
// If an error occurs, it will be returned with the reply by calling GetProviderPropertyCookie.Reply.
func GetProviderProperty(c *xgb.Conn, Provider Provider, Property, Type xproto.Atom, LongOffset, LongLength uint32, Delete, Pending bool) GetProviderPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -4002,7 +3981,7 @@ func GetProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom, T
// GetProviderPropertyUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetProviderPropertyUnchecked(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) GetProviderPropertyCookie {
func GetProviderPropertyUnchecked(c *xgb.Conn, Provider Provider, Property, Type xproto.Atom, LongOffset, LongLength uint32, Delete, Pending bool) GetProviderPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -4069,9 +4048,8 @@ func getProviderPropertyReply(buf []byte) *GetProviderPropertyReply {
return v
}
// Write request to wire for GetProviderProperty
// getProviderPropertyRequest writes a GetProviderProperty request to a byte slice.
func getProviderPropertyRequest(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) []byte {
// getProviderPropertyRequest writes a GetProviderProperty request to a byte slice for transfer.
func getProviderPropertyRequest(c *xgb.Conn, Provider Provider, Property, Type xproto.Atom, LongOffset, LongLength uint32, Delete, Pending bool) []byte {
size := 28
b := 0
buf := make([]byte, size)
@ -4127,7 +4105,7 @@ type GetProvidersCookie struct {
}
// GetProviders sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetProvidersCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetProvidersCookie.Reply.
func GetProviders(c *xgb.Conn, Window xproto.Window) GetProvidersCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -4205,8 +4183,7 @@ func getProvidersReply(buf []byte) *GetProvidersReply {
return v
}
// Write request to wire for GetProviders
// getProvidersRequest writes a GetProviders request to a byte slice.
// getProvidersRequest writes a GetProviders request to a byte slice for transfer.
func getProvidersRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@ -4235,7 +4212,7 @@ type GetScreenInfoCookie struct {
}
// GetScreenInfo sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetScreenInfoCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetScreenInfoCookie.Reply.
func GetScreenInfo(c *xgb.Conn, Window xproto.Window) GetScreenInfoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -4339,8 +4316,7 @@ func getScreenInfoReply(buf []byte) *GetScreenInfoReply {
return v
}
// Write request to wire for GetScreenInfo
// getScreenInfoRequest writes a GetScreenInfo request to a byte slice.
// getScreenInfoRequest writes a GetScreenInfo request to a byte slice for transfer.
func getScreenInfoRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@ -4369,7 +4345,7 @@ type GetScreenResourcesCookie struct {
}
// GetScreenResources sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetScreenResourcesCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetScreenResourcesCookie.Reply.
func GetScreenResources(c *xgb.Conn, Window xproto.Window) GetScreenResourcesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -4479,8 +4455,7 @@ func getScreenResourcesReply(buf []byte) *GetScreenResourcesReply {
return v
}
// Write request to wire for GetScreenResources
// getScreenResourcesRequest writes a GetScreenResources request to a byte slice.
// getScreenResourcesRequest writes a GetScreenResources request to a byte slice for transfer.
func getScreenResourcesRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@ -4509,7 +4484,7 @@ type GetScreenResourcesCurrentCookie struct {
}
// GetScreenResourcesCurrent sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetScreenResourcesCurrentCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetScreenResourcesCurrentCookie.Reply.
func GetScreenResourcesCurrent(c *xgb.Conn, Window xproto.Window) GetScreenResourcesCurrentCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -4619,8 +4594,7 @@ func getScreenResourcesCurrentReply(buf []byte) *GetScreenResourcesCurrentReply
return v
}
// Write request to wire for GetScreenResourcesCurrent
// getScreenResourcesCurrentRequest writes a GetScreenResourcesCurrent request to a byte slice.
// getScreenResourcesCurrentRequest writes a GetScreenResourcesCurrent request to a byte slice for transfer.
func getScreenResourcesCurrentRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@ -4649,7 +4623,7 @@ type GetScreenSizeRangeCookie struct {
}
// GetScreenSizeRange sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetScreenSizeRangeCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetScreenSizeRangeCookie.Reply.
func GetScreenSizeRange(c *xgb.Conn, Window xproto.Window) GetScreenSizeRangeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -4728,8 +4702,7 @@ func getScreenSizeRangeReply(buf []byte) *GetScreenSizeRangeReply {
return v
}
// Write request to wire for GetScreenSizeRange
// getScreenSizeRangeRequest writes a GetScreenSizeRange request to a byte slice.
// getScreenSizeRangeRequest writes a GetScreenSizeRange request to a byte slice for transfer.
func getScreenSizeRangeRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@ -4758,7 +4731,7 @@ type ListOutputPropertiesCookie struct {
}
// ListOutputProperties sends a checked request.
// If an error occurs, it will be returned with the reply by calling ListOutputPropertiesCookie.Reply()
// If an error occurs, it will be returned with the reply by calling ListOutputPropertiesCookie.Reply.
func ListOutputProperties(c *xgb.Conn, Output Output) ListOutputPropertiesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -4832,8 +4805,7 @@ func listOutputPropertiesReply(buf []byte) *ListOutputPropertiesReply {
return v
}
// Write request to wire for ListOutputProperties
// listOutputPropertiesRequest writes a ListOutputProperties request to a byte slice.
// listOutputPropertiesRequest writes a ListOutputProperties request to a byte slice for transfer.
func listOutputPropertiesRequest(c *xgb.Conn, Output Output) []byte {
size := 8
b := 0
@ -4862,7 +4834,7 @@ type ListProviderPropertiesCookie struct {
}
// ListProviderProperties sends a checked request.
// If an error occurs, it will be returned with the reply by calling ListProviderPropertiesCookie.Reply()
// If an error occurs, it will be returned with the reply by calling ListProviderPropertiesCookie.Reply.
func ListProviderProperties(c *xgb.Conn, Provider Provider) ListProviderPropertiesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -4936,8 +4908,7 @@ func listProviderPropertiesReply(buf []byte) *ListProviderPropertiesReply {
return v
}
// Write request to wire for ListProviderProperties
// listProviderPropertiesRequest writes a ListProviderProperties request to a byte slice.
// listProviderPropertiesRequest writes a ListProviderProperties request to a byte slice for transfer.
func listProviderPropertiesRequest(c *xgb.Conn, Provider Provider) []byte {
size := 8
b := 0
@ -4966,7 +4937,7 @@ type QueryOutputPropertyCookie struct {
}
// QueryOutputProperty sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryOutputPropertyCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryOutputPropertyCookie.Reply.
func QueryOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom) QueryOutputPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -5060,8 +5031,7 @@ func queryOutputPropertyReply(buf []byte) *QueryOutputPropertyReply {
return v
}
// Write request to wire for QueryOutputProperty
// queryOutputPropertyRequest writes a QueryOutputProperty request to a byte slice.
// queryOutputPropertyRequest writes a QueryOutputProperty request to a byte slice for transfer.
func queryOutputPropertyRequest(c *xgb.Conn, Output Output, Property xproto.Atom) []byte {
size := 12
b := 0
@ -5093,7 +5063,7 @@ type QueryProviderPropertyCookie struct {
}
// QueryProviderProperty sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryProviderPropertyCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryProviderPropertyCookie.Reply.
func QueryProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom) QueryProviderPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -5187,8 +5157,7 @@ func queryProviderPropertyReply(buf []byte) *QueryProviderPropertyReply {
return v
}
// Write request to wire for QueryProviderProperty
// queryProviderPropertyRequest writes a QueryProviderProperty request to a byte slice.
// queryProviderPropertyRequest writes a QueryProviderProperty request to a byte slice for transfer.
func queryProviderPropertyRequest(c *xgb.Conn, Provider Provider, Property xproto.Atom) []byte {
size := 12
b := 0
@ -5220,8 +5189,8 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersion(c *xgb.Conn, MajorVersion uint32, MinorVersion uint32) QueryVersionCookie {
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn, MajorVersion, MinorVersion uint32) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -5234,7 +5203,7 @@ func QueryVersion(c *xgb.Conn, MajorVersion uint32, MinorVersion uint32) QueryVe
// QueryVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryVersionUnchecked(c *xgb.Conn, MajorVersion uint32, MinorVersion uint32) QueryVersionCookie {
func QueryVersionUnchecked(c *xgb.Conn, MajorVersion, MinorVersion uint32) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -5291,9 +5260,8 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
// Write request to wire for QueryVersion
// queryVersionRequest writes a QueryVersion request to a byte slice.
func queryVersionRequest(c *xgb.Conn, MajorVersion uint32, MinorVersion uint32) []byte {
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn, MajorVersion, MinorVersion uint32) []byte {
size := 12
b := 0
buf := make([]byte, size)
@ -5337,7 +5305,7 @@ func SelectInput(c *xgb.Conn, Window xproto.Window, Enable uint16) SelectInputCo
}
// SelectInputChecked sends a checked request.
// If an error occurs, it can be retrieved using SelectInputCookie.Check()
// If an error occurs, it can be retrieved using SelectInputCookie.Check.
func SelectInputChecked(c *xgb.Conn, Window xproto.Window, Enable uint16) SelectInputCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -5355,8 +5323,7 @@ func (cook SelectInputCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SelectInput
// selectInputRequest writes a SelectInput request to a byte slice.
// selectInputRequest writes a SelectInput request to a byte slice for transfer.
func selectInputRequest(c *xgb.Conn, Window xproto.Window, Enable uint16) []byte {
size := 12
b := 0
@ -5390,8 +5357,8 @@ type SetCrtcConfigCookie struct {
}
// SetCrtcConfig sends a checked request.
// If an error occurs, it will be returned with the reply by calling SetCrtcConfigCookie.Reply()
func SetCrtcConfig(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, X int16, Y int16, Mode Mode, Rotation uint16, Outputs []Output) SetCrtcConfigCookie {
// If an error occurs, it will be returned with the reply by calling SetCrtcConfigCookie.Reply.
func SetCrtcConfig(c *xgb.Conn, Crtc Crtc, Timestamp, ConfigTimestamp xproto.Timestamp, X, Y int16, Mode Mode, Rotation uint16, Outputs []Output) SetCrtcConfigCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -5404,7 +5371,7 @@ func SetCrtcConfig(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, ConfigTim
// SetCrtcConfigUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetCrtcConfigUnchecked(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, X int16, Y int16, Mode Mode, Rotation uint16, Outputs []Output) SetCrtcConfigCookie {
func SetCrtcConfigUnchecked(c *xgb.Conn, Crtc Crtc, Timestamp, ConfigTimestamp xproto.Timestamp, X, Y int16, Mode Mode, Rotation uint16, Outputs []Output) SetCrtcConfigCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -5458,9 +5425,8 @@ func setCrtcConfigReply(buf []byte) *SetCrtcConfigReply {
return v
}
// Write request to wire for SetCrtcConfig
// setCrtcConfigRequest writes a SetCrtcConfig request to a byte slice.
func setCrtcConfigRequest(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, X int16, Y int16, Mode Mode, Rotation uint16, Outputs []Output) []byte {
// setCrtcConfigRequest writes a SetCrtcConfig request to a byte slice for transfer.
func setCrtcConfigRequest(c *xgb.Conn, Crtc Crtc, Timestamp, ConfigTimestamp xproto.Timestamp, X, Y int16, Mode Mode, Rotation uint16, Outputs []Output) []byte {
size := xgb.Pad((28 + xgb.Pad((len(Outputs) * 4))))
b := 0
buf := make([]byte, size)
@ -5514,7 +5480,7 @@ type SetCrtcGammaCookie struct {
// SetCrtcGamma sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetCrtcGamma(c *xgb.Conn, Crtc Crtc, Size uint16, Red []uint16, Green []uint16, Blue []uint16) SetCrtcGammaCookie {
func SetCrtcGamma(c *xgb.Conn, Crtc Crtc, Size uint16, Red, Green, Blue []uint16) SetCrtcGammaCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -5526,8 +5492,8 @@ func SetCrtcGamma(c *xgb.Conn, Crtc Crtc, Size uint16, Red []uint16, Green []uin
}
// SetCrtcGammaChecked sends a checked request.
// If an error occurs, it can be retrieved using SetCrtcGammaCookie.Check()
func SetCrtcGammaChecked(c *xgb.Conn, Crtc Crtc, Size uint16, Red []uint16, Green []uint16, Blue []uint16) SetCrtcGammaCookie {
// If an error occurs, it can be retrieved using SetCrtcGammaCookie.Check.
func SetCrtcGammaChecked(c *xgb.Conn, Crtc Crtc, Size uint16, Red, Green, Blue []uint16) SetCrtcGammaCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -5544,9 +5510,8 @@ func (cook SetCrtcGammaCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetCrtcGamma
// setCrtcGammaRequest writes a SetCrtcGamma request to a byte slice.
func setCrtcGammaRequest(c *xgb.Conn, Crtc Crtc, Size uint16, Red []uint16, Green []uint16, Blue []uint16) []byte {
// setCrtcGammaRequest writes a SetCrtcGamma request to a byte slice for transfer.
func setCrtcGammaRequest(c *xgb.Conn, Crtc Crtc, Size uint16, Red, Green, Blue []uint16) []byte {
size := xgb.Pad((((12 + xgb.Pad((int(Size) * 2))) + xgb.Pad((int(Size) * 2))) + xgb.Pad((int(Size) * 2))))
b := 0
buf := make([]byte, size)
@ -5607,7 +5572,7 @@ func SetCrtcTransform(c *xgb.Conn, Crtc Crtc, Transform render.Transform, Filter
}
// SetCrtcTransformChecked sends a checked request.
// If an error occurs, it can be retrieved using SetCrtcTransformCookie.Check()
// If an error occurs, it can be retrieved using SetCrtcTransformCookie.Check.
func SetCrtcTransformChecked(c *xgb.Conn, Crtc Crtc, Transform render.Transform, FilterLen uint16, FilterName string, FilterParams []render.Fixed) SetCrtcTransformCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -5625,8 +5590,7 @@ func (cook SetCrtcTransformCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetCrtcTransform
// setCrtcTransformRequest writes a SetCrtcTransform request to a byte slice.
// setCrtcTransformRequest writes a SetCrtcTransform request to a byte slice for transfer.
func setCrtcTransformRequest(c *xgb.Conn, Crtc Crtc, Transform render.Transform, FilterLen uint16, FilterName string, FilterParams []render.Fixed) []byte {
size := xgb.Pad((((48 + xgb.Pad((int(FilterLen) * 1))) + 4) + xgb.Pad((len(FilterParams) * 4))))
b := 0
@ -5691,7 +5655,7 @@ func SetMonitor(c *xgb.Conn, Window xproto.Window, Monitorinfo MonitorInfo) SetM
}
// SetMonitorChecked sends a checked request.
// If an error occurs, it can be retrieved using SetMonitorCookie.Check()
// If an error occurs, it can be retrieved using SetMonitorCookie.Check.
func SetMonitorChecked(c *xgb.Conn, Window xproto.Window, Monitorinfo MonitorInfo) SetMonitorCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -5709,8 +5673,7 @@ func (cook SetMonitorCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetMonitor
// setMonitorRequest writes a SetMonitor request to a byte slice.
// setMonitorRequest writes a SetMonitor request to a byte slice for transfer.
func setMonitorRequest(c *xgb.Conn, Window xproto.Window, Monitorinfo MonitorInfo) []byte {
size := xgb.Pad((8 + (24 + xgb.Pad((int(Monitorinfo.NOutput) * 4)))))
b := 0
@ -5758,7 +5721,7 @@ func SetOutputPrimary(c *xgb.Conn, Window xproto.Window, Output Output) SetOutpu
}
// SetOutputPrimaryChecked sends a checked request.
// If an error occurs, it can be retrieved using SetOutputPrimaryCookie.Check()
// If an error occurs, it can be retrieved using SetOutputPrimaryCookie.Check.
func SetOutputPrimaryChecked(c *xgb.Conn, Window xproto.Window, Output Output) SetOutputPrimaryCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -5776,8 +5739,7 @@ func (cook SetOutputPrimaryCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetOutputPrimary
// setOutputPrimaryRequest writes a SetOutputPrimary request to a byte slice.
// setOutputPrimaryRequest writes a SetOutputPrimary request to a byte slice for transfer.
func setOutputPrimaryRequest(c *xgb.Conn, Window xproto.Window, Output Output) []byte {
size := 12
b := 0
@ -5809,8 +5771,8 @@ type SetPanningCookie struct {
}
// SetPanning sends a checked request.
// If an error occurs, it will be returned with the reply by calling SetPanningCookie.Reply()
func SetPanning(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, Left uint16, Top uint16, Width uint16, Height uint16, TrackLeft uint16, TrackTop uint16, TrackWidth uint16, TrackHeight uint16, BorderLeft int16, BorderTop int16, BorderRight int16, BorderBottom int16) SetPanningCookie {
// If an error occurs, it will be returned with the reply by calling SetPanningCookie.Reply.
func SetPanning(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, Left, Top, Width, Height, TrackLeft, TrackTop, TrackWidth, TrackHeight uint16, BorderLeft, BorderTop, BorderRight, BorderBottom int16) SetPanningCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -5823,7 +5785,7 @@ func SetPanning(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, Left uint16,
// SetPanningUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetPanningUnchecked(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, Left uint16, Top uint16, Width uint16, Height uint16, TrackLeft uint16, TrackTop uint16, TrackWidth uint16, TrackHeight uint16, BorderLeft int16, BorderTop int16, BorderRight int16, BorderBottom int16) SetPanningCookie {
func SetPanningUnchecked(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, Left, Top, Width, Height, TrackLeft, TrackTop, TrackWidth, TrackHeight uint16, BorderLeft, BorderTop, BorderRight, BorderBottom int16) SetPanningCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -5874,9 +5836,8 @@ func setPanningReply(buf []byte) *SetPanningReply {
return v
}
// Write request to wire for SetPanning
// setPanningRequest writes a SetPanning request to a byte slice.
func setPanningRequest(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, Left uint16, Top uint16, Width uint16, Height uint16, TrackLeft uint16, TrackTop uint16, TrackWidth uint16, TrackHeight uint16, BorderLeft int16, BorderTop int16, BorderRight int16, BorderBottom int16) []byte {
// setPanningRequest writes a SetPanning request to a byte slice for transfer.
func setPanningRequest(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, Left, Top, Width, Height, TrackLeft, TrackTop, TrackWidth, TrackHeight uint16, BorderLeft, BorderTop, BorderRight, BorderBottom int16) []byte {
size := 36
b := 0
buf := make([]byte, size)
@ -5944,7 +5905,7 @@ type SetProviderOffloadSinkCookie struct {
// SetProviderOffloadSink sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetProviderOffloadSink(c *xgb.Conn, Provider Provider, SinkProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOffloadSinkCookie {
func SetProviderOffloadSink(c *xgb.Conn, Provider, SinkProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOffloadSinkCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -5956,8 +5917,8 @@ func SetProviderOffloadSink(c *xgb.Conn, Provider Provider, SinkProvider Provide
}
// SetProviderOffloadSinkChecked sends a checked request.
// If an error occurs, it can be retrieved using SetProviderOffloadSinkCookie.Check()
func SetProviderOffloadSinkChecked(c *xgb.Conn, Provider Provider, SinkProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOffloadSinkCookie {
// If an error occurs, it can be retrieved using SetProviderOffloadSinkCookie.Check.
func SetProviderOffloadSinkChecked(c *xgb.Conn, Provider, SinkProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOffloadSinkCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -5974,9 +5935,8 @@ func (cook SetProviderOffloadSinkCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetProviderOffloadSink
// setProviderOffloadSinkRequest writes a SetProviderOffloadSink request to a byte slice.
func setProviderOffloadSinkRequest(c *xgb.Conn, Provider Provider, SinkProvider Provider, ConfigTimestamp xproto.Timestamp) []byte {
// setProviderOffloadSinkRequest writes a SetProviderOffloadSink request to a byte slice for transfer.
func setProviderOffloadSinkRequest(c *xgb.Conn, Provider, SinkProvider Provider, ConfigTimestamp xproto.Timestamp) []byte {
size := 16
b := 0
buf := make([]byte, size)
@ -6011,7 +5971,7 @@ type SetProviderOutputSourceCookie struct {
// SetProviderOutputSource sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetProviderOutputSource(c *xgb.Conn, Provider Provider, SourceProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOutputSourceCookie {
func SetProviderOutputSource(c *xgb.Conn, Provider, SourceProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOutputSourceCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -6023,8 +5983,8 @@ func SetProviderOutputSource(c *xgb.Conn, Provider Provider, SourceProvider Prov
}
// SetProviderOutputSourceChecked sends a checked request.
// If an error occurs, it can be retrieved using SetProviderOutputSourceCookie.Check()
func SetProviderOutputSourceChecked(c *xgb.Conn, Provider Provider, SourceProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOutputSourceCookie {
// If an error occurs, it can be retrieved using SetProviderOutputSourceCookie.Check.
func SetProviderOutputSourceChecked(c *xgb.Conn, Provider, SourceProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOutputSourceCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -6041,9 +6001,8 @@ func (cook SetProviderOutputSourceCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetProviderOutputSource
// setProviderOutputSourceRequest writes a SetProviderOutputSource request to a byte slice.
func setProviderOutputSourceRequest(c *xgb.Conn, Provider Provider, SourceProvider Provider, ConfigTimestamp xproto.Timestamp) []byte {
// setProviderOutputSourceRequest writes a SetProviderOutputSource request to a byte slice for transfer.
func setProviderOutputSourceRequest(c *xgb.Conn, Provider, SourceProvider Provider, ConfigTimestamp xproto.Timestamp) []byte {
size := 16
b := 0
buf := make([]byte, size)
@ -6077,8 +6036,8 @@ type SetScreenConfigCookie struct {
}
// SetScreenConfig sends a checked request.
// If an error occurs, it will be returned with the reply by calling SetScreenConfigCookie.Reply()
func SetScreenConfig(c *xgb.Conn, Window xproto.Window, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, SizeID uint16, Rotation uint16, Rate uint16) SetScreenConfigCookie {
// If an error occurs, it will be returned with the reply by calling SetScreenConfigCookie.Reply.
func SetScreenConfig(c *xgb.Conn, Window xproto.Window, Timestamp, ConfigTimestamp xproto.Timestamp, SizeID, Rotation, Rate uint16) SetScreenConfigCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -6091,7 +6050,7 @@ func SetScreenConfig(c *xgb.Conn, Window xproto.Window, Timestamp xproto.Timesta
// SetScreenConfigUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetScreenConfigUnchecked(c *xgb.Conn, Window xproto.Window, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, SizeID uint16, Rotation uint16, Rate uint16) SetScreenConfigCookie {
func SetScreenConfigUnchecked(c *xgb.Conn, Window xproto.Window, Timestamp, ConfigTimestamp xproto.Timestamp, SizeID, Rotation, Rate uint16) SetScreenConfigCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -6157,9 +6116,8 @@ func setScreenConfigReply(buf []byte) *SetScreenConfigReply {
return v
}
// Write request to wire for SetScreenConfig
// setScreenConfigRequest writes a SetScreenConfig request to a byte slice.
func setScreenConfigRequest(c *xgb.Conn, Window xproto.Window, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, SizeID uint16, Rotation uint16, Rate uint16) []byte {
// setScreenConfigRequest writes a SetScreenConfig request to a byte slice for transfer.
func setScreenConfigRequest(c *xgb.Conn, Window xproto.Window, Timestamp, ConfigTimestamp xproto.Timestamp, SizeID, Rotation, Rate uint16) []byte {
size := 24
b := 0
buf := make([]byte, size)
@ -6205,7 +6163,7 @@ type SetScreenSizeCookie struct {
// SetScreenSize sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetScreenSize(c *xgb.Conn, Window xproto.Window, Width uint16, Height uint16, MmWidth uint32, MmHeight uint32) SetScreenSizeCookie {
func SetScreenSize(c *xgb.Conn, Window xproto.Window, Width, Height uint16, MmWidth, MmHeight uint32) SetScreenSizeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -6217,8 +6175,8 @@ func SetScreenSize(c *xgb.Conn, Window xproto.Window, Width uint16, Height uint1
}
// SetScreenSizeChecked sends a checked request.
// If an error occurs, it can be retrieved using SetScreenSizeCookie.Check()
func SetScreenSizeChecked(c *xgb.Conn, Window xproto.Window, Width uint16, Height uint16, MmWidth uint32, MmHeight uint32) SetScreenSizeCookie {
// If an error occurs, it can be retrieved using SetScreenSizeCookie.Check.
func SetScreenSizeChecked(c *xgb.Conn, Window xproto.Window, Width, Height uint16, MmWidth, MmHeight uint32) SetScreenSizeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@ -6235,9 +6193,8 @@ func (cook SetScreenSizeCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetScreenSize
// setScreenSizeRequest writes a SetScreenSize request to a byte slice.
func setScreenSizeRequest(c *xgb.Conn, Window xproto.Window, Width uint16, Height uint16, MmWidth uint32, MmHeight uint32) []byte {
// setScreenSizeRequest writes a SetScreenSize request to a byte slice for transfer.
func setScreenSizeRequest(c *xgb.Conn, Window xproto.Window, Width, Height uint16, MmWidth, MmHeight uint32) []byte {
size := 20
b := 0
buf := make([]byte, size)

View File

@ -526,7 +526,7 @@ type CreateContextCookie struct {
// CreateContext sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateContext(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) CreateContextCookie {
func CreateContext(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) CreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RECORD"]; !ok {
@ -538,8 +538,8 @@ func CreateContext(c *xgb.Conn, Context Context, ElementHeader ElementHeader, Nu
}
// CreateContextChecked sends a checked request.
// If an error occurs, it can be retrieved using CreateContextCookie.Check()
func CreateContextChecked(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) CreateContextCookie {
// If an error occurs, it can be retrieved using CreateContextCookie.Check.
func CreateContextChecked(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) CreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RECORD"]; !ok {
@ -556,9 +556,8 @@ func (cook CreateContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CreateContext
// createContextRequest writes a CreateContext request to a byte slice.
func createContextRequest(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) []byte {
// createContextRequest writes a CreateContext request to a byte slice for transfer.
func createContextRequest(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) []byte {
size := xgb.Pad(((20 + xgb.Pad((int(NumClientSpecs) * 4))) + xgb.Pad((int(NumRanges) * 24))))
b := 0
buf := make([]byte, size)
@ -617,7 +616,7 @@ func DisableContext(c *xgb.Conn, Context Context) DisableContextCookie {
}
// DisableContextChecked sends a checked request.
// If an error occurs, it can be retrieved using DisableContextCookie.Check()
// If an error occurs, it can be retrieved using DisableContextCookie.Check.
func DisableContextChecked(c *xgb.Conn, Context Context) DisableContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -635,8 +634,7 @@ func (cook DisableContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for DisableContext
// disableContextRequest writes a DisableContext request to a byte slice.
// disableContextRequest writes a DisableContext request to a byte slice for transfer.
func disableContextRequest(c *xgb.Conn, Context Context) []byte {
size := 8
b := 0
@ -665,7 +663,7 @@ type EnableContextCookie struct {
}
// EnableContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling EnableContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling EnableContextCookie.Reply.
func EnableContext(c *xgb.Conn, Context Context) EnableContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -761,8 +759,7 @@ func enableContextReply(buf []byte) *EnableContextReply {
return v
}
// Write request to wire for EnableContext
// enableContextRequest writes a EnableContext request to a byte slice.
// enableContextRequest writes a EnableContext request to a byte slice for transfer.
func enableContextRequest(c *xgb.Conn, Context Context) []byte {
size := 8
b := 0
@ -804,7 +801,7 @@ func FreeContext(c *xgb.Conn, Context Context) FreeContextCookie {
}
// FreeContextChecked sends a checked request.
// If an error occurs, it can be retrieved using FreeContextCookie.Check()
// If an error occurs, it can be retrieved using FreeContextCookie.Check.
func FreeContextChecked(c *xgb.Conn, Context Context) FreeContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -822,8 +819,7 @@ func (cook FreeContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for FreeContext
// freeContextRequest writes a FreeContext request to a byte slice.
// freeContextRequest writes a FreeContext request to a byte slice for transfer.
func freeContextRequest(c *xgb.Conn, Context Context) []byte {
size := 8
b := 0
@ -852,7 +848,7 @@ type GetContextCookie struct {
}
// GetContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetContextCookie.Reply.
func GetContext(c *xgb.Conn, Context Context) GetContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -935,8 +931,7 @@ func getContextReply(buf []byte) *GetContextReply {
return v
}
// Write request to wire for GetContext
// getContextRequest writes a GetContext request to a byte slice.
// getContextRequest writes a GetContext request to a byte slice for transfer.
func getContextRequest(c *xgb.Conn, Context Context) []byte {
size := 8
b := 0
@ -965,8 +960,8 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersion(c *xgb.Conn, MajorVersion uint16, MinorVersion uint16) QueryVersionCookie {
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn, MajorVersion, MinorVersion uint16) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RECORD"]; !ok {
@ -979,7 +974,7 @@ func QueryVersion(c *xgb.Conn, MajorVersion uint16, MinorVersion uint16) QueryVe
// QueryVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryVersionUnchecked(c *xgb.Conn, MajorVersion uint16, MinorVersion uint16) QueryVersionCookie {
func QueryVersionUnchecked(c *xgb.Conn, MajorVersion, MinorVersion uint16) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RECORD"]; !ok {
@ -1033,9 +1028,8 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
// Write request to wire for QueryVersion
// queryVersionRequest writes a QueryVersion request to a byte slice.
func queryVersionRequest(c *xgb.Conn, MajorVersion uint16, MinorVersion uint16) []byte {
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn, MajorVersion, MinorVersion uint16) []byte {
size := 8
b := 0
buf := make([]byte, size)
@ -1067,7 +1061,7 @@ type RegisterClientsCookie struct {
// RegisterClients sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func RegisterClients(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) RegisterClientsCookie {
func RegisterClients(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) RegisterClientsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RECORD"]; !ok {
@ -1079,8 +1073,8 @@ func RegisterClients(c *xgb.Conn, Context Context, ElementHeader ElementHeader,
}
// RegisterClientsChecked sends a checked request.
// If an error occurs, it can be retrieved using RegisterClientsCookie.Check()
func RegisterClientsChecked(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) RegisterClientsCookie {
// If an error occurs, it can be retrieved using RegisterClientsCookie.Check.
func RegisterClientsChecked(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) RegisterClientsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RECORD"]; !ok {
@ -1097,9 +1091,8 @@ func (cook RegisterClientsCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for RegisterClients
// registerClientsRequest writes a RegisterClients request to a byte slice.
func registerClientsRequest(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) []byte {
// registerClientsRequest writes a RegisterClients request to a byte slice for transfer.
func registerClientsRequest(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) []byte {
size := xgb.Pad(((20 + xgb.Pad((int(NumClientSpecs) * 4))) + xgb.Pad((int(NumRanges) * 24))))
b := 0
buf := make([]byte, size)
@ -1158,7 +1151,7 @@ func UnregisterClients(c *xgb.Conn, Context Context, NumClientSpecs uint32, Clie
}
// UnregisterClientsChecked sends a checked request.
// If an error occurs, it can be retrieved using UnregisterClientsCookie.Check()
// If an error occurs, it can be retrieved using UnregisterClientsCookie.Check.
func UnregisterClientsChecked(c *xgb.Conn, Context Context, NumClientSpecs uint32, ClientSpecs []ClientSpec) UnregisterClientsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1176,8 +1169,7 @@ func (cook UnregisterClientsCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for UnregisterClients
// unregisterClientsRequest writes a UnregisterClients request to a byte slice.
// unregisterClientsRequest writes a UnregisterClients request to a byte slice for transfer.
func unregisterClientsRequest(c *xgb.Conn, Context Context, NumClientSpecs uint32, ClientSpecs []ClientSpec) []byte {
size := xgb.Pad((12 + xgb.Pad((int(NumClientSpecs) * 4))))
b := 0

View File

@ -1597,7 +1597,7 @@ func AddGlyphs(c *xgb.Conn, Glyphset Glyphset, GlyphsLen uint32, Glyphids []uint
}
// AddGlyphsChecked sends a checked request.
// If an error occurs, it can be retrieved using AddGlyphsCookie.Check()
// If an error occurs, it can be retrieved using AddGlyphsCookie.Check.
func AddGlyphsChecked(c *xgb.Conn, Glyphset Glyphset, GlyphsLen uint32, Glyphids []uint32, Glyphs []Glyphinfo, Data []byte) AddGlyphsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1615,8 +1615,7 @@ func (cook AddGlyphsCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for AddGlyphs
// addGlyphsRequest writes a AddGlyphs request to a byte slice.
// addGlyphsRequest writes a AddGlyphs request to a byte slice for transfer.
func addGlyphsRequest(c *xgb.Conn, Glyphset Glyphset, GlyphsLen uint32, Glyphids []uint32, Glyphs []Glyphinfo, Data []byte) []byte {
size := xgb.Pad((((12 + xgb.Pad((int(GlyphsLen) * 4))) + xgb.Pad((int(GlyphsLen) * 12))) + xgb.Pad((len(Data) * 1))))
b := 0
@ -1659,7 +1658,7 @@ type AddTrapsCookie struct {
// AddTraps sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func AddTraps(c *xgb.Conn, Picture Picture, XOff int16, YOff int16, Traps []Trap) AddTrapsCookie {
func AddTraps(c *xgb.Conn, Picture Picture, XOff, YOff int16, Traps []Trap) AddTrapsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -1671,8 +1670,8 @@ func AddTraps(c *xgb.Conn, Picture Picture, XOff int16, YOff int16, Traps []Trap
}
// AddTrapsChecked sends a checked request.
// If an error occurs, it can be retrieved using AddTrapsCookie.Check()
func AddTrapsChecked(c *xgb.Conn, Picture Picture, XOff int16, YOff int16, Traps []Trap) AddTrapsCookie {
// If an error occurs, it can be retrieved using AddTrapsCookie.Check.
func AddTrapsChecked(c *xgb.Conn, Picture Picture, XOff, YOff int16, Traps []Trap) AddTrapsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -1689,9 +1688,8 @@ func (cook AddTrapsCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for AddTraps
// addTrapsRequest writes a AddTraps request to a byte slice.
func addTrapsRequest(c *xgb.Conn, Picture Picture, XOff int16, YOff int16, Traps []Trap) []byte {
// addTrapsRequest writes a AddTraps request to a byte slice for transfer.
func addTrapsRequest(c *xgb.Conn, Picture Picture, XOff, YOff int16, Traps []Trap) []byte {
size := xgb.Pad((12 + xgb.Pad((len(Traps) * 24))))
b := 0
buf := make([]byte, size)
@ -1740,7 +1738,7 @@ func ChangePicture(c *xgb.Conn, Picture Picture, ValueMask uint32, ValueList []u
}
// ChangePictureChecked sends a checked request.
// If an error occurs, it can be retrieved using ChangePictureCookie.Check()
// If an error occurs, it can be retrieved using ChangePictureCookie.Check.
func ChangePictureChecked(c *xgb.Conn, Picture Picture, ValueMask uint32, ValueList []uint32) ChangePictureCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1758,8 +1756,7 @@ func (cook ChangePictureCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for ChangePicture
// changePictureRequest writes a ChangePicture request to a byte slice.
// changePictureRequest writes a ChangePicture request to a byte slice for transfer.
func changePictureRequest(c *xgb.Conn, Picture Picture, ValueMask uint32, ValueList []uint32) []byte {
size := xgb.Pad((12 + xgb.Pad((4 * xgb.PopCount(int(ValueMask))))))
b := 0
@ -1798,7 +1795,7 @@ type CompositeCookie struct {
// Composite sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func Composite(c *xgb.Conn, Op byte, Src Picture, Mask Picture, Dst Picture, SrcX int16, SrcY int16, MaskX int16, MaskY int16, DstX int16, DstY int16, Width uint16, Height uint16) CompositeCookie {
func Composite(c *xgb.Conn, Op byte, Src, Mask, Dst Picture, SrcX, SrcY, MaskX, MaskY, DstX, DstY int16, Width, Height uint16) CompositeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -1810,8 +1807,8 @@ func Composite(c *xgb.Conn, Op byte, Src Picture, Mask Picture, Dst Picture, Src
}
// CompositeChecked sends a checked request.
// If an error occurs, it can be retrieved using CompositeCookie.Check()
func CompositeChecked(c *xgb.Conn, Op byte, Src Picture, Mask Picture, Dst Picture, SrcX int16, SrcY int16, MaskX int16, MaskY int16, DstX int16, DstY int16, Width uint16, Height uint16) CompositeCookie {
// If an error occurs, it can be retrieved using CompositeCookie.Check.
func CompositeChecked(c *xgb.Conn, Op byte, Src, Mask, Dst Picture, SrcX, SrcY, MaskX, MaskY, DstX, DstY int16, Width, Height uint16) CompositeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -1828,9 +1825,8 @@ func (cook CompositeCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for Composite
// compositeRequest writes a Composite request to a byte slice.
func compositeRequest(c *xgb.Conn, Op byte, Src Picture, Mask Picture, Dst Picture, SrcX int16, SrcY int16, MaskX int16, MaskY int16, DstX int16, DstY int16, Width uint16, Height uint16) []byte {
// compositeRequest writes a Composite request to a byte slice for transfer.
func compositeRequest(c *xgb.Conn, Op byte, Src, Mask, Dst Picture, SrcX, SrcY, MaskX, MaskY, DstX, DstY int16, Width, Height uint16) []byte {
size := 36
b := 0
buf := make([]byte, size)
@ -1894,7 +1890,7 @@ type CompositeGlyphs16Cookie struct {
// CompositeGlyphs16 sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CompositeGlyphs16(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) CompositeGlyphs16Cookie {
func CompositeGlyphs16(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX, SrcY int16, Glyphcmds []byte) CompositeGlyphs16Cookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -1906,8 +1902,8 @@ func CompositeGlyphs16(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskForma
}
// CompositeGlyphs16Checked sends a checked request.
// If an error occurs, it can be retrieved using CompositeGlyphs16Cookie.Check()
func CompositeGlyphs16Checked(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) CompositeGlyphs16Cookie {
// If an error occurs, it can be retrieved using CompositeGlyphs16Cookie.Check.
func CompositeGlyphs16Checked(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX, SrcY int16, Glyphcmds []byte) CompositeGlyphs16Cookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -1924,9 +1920,8 @@ func (cook CompositeGlyphs16Cookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CompositeGlyphs16
// compositeGlyphs16Request writes a CompositeGlyphs16 request to a byte slice.
func compositeGlyphs16Request(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) []byte {
// compositeGlyphs16Request writes a CompositeGlyphs16 request to a byte slice for transfer.
func compositeGlyphs16Request(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX, SrcY int16, Glyphcmds []byte) []byte {
size := xgb.Pad((28 + xgb.Pad((len(Glyphcmds) * 1))))
b := 0
buf := make([]byte, size)
@ -1978,7 +1973,7 @@ type CompositeGlyphs32Cookie struct {
// CompositeGlyphs32 sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CompositeGlyphs32(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) CompositeGlyphs32Cookie {
func CompositeGlyphs32(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX, SrcY int16, Glyphcmds []byte) CompositeGlyphs32Cookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -1990,8 +1985,8 @@ func CompositeGlyphs32(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskForma
}
// CompositeGlyphs32Checked sends a checked request.
// If an error occurs, it can be retrieved using CompositeGlyphs32Cookie.Check()
func CompositeGlyphs32Checked(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) CompositeGlyphs32Cookie {
// If an error occurs, it can be retrieved using CompositeGlyphs32Cookie.Check.
func CompositeGlyphs32Checked(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX, SrcY int16, Glyphcmds []byte) CompositeGlyphs32Cookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -2008,9 +2003,8 @@ func (cook CompositeGlyphs32Cookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CompositeGlyphs32
// compositeGlyphs32Request writes a CompositeGlyphs32 request to a byte slice.
func compositeGlyphs32Request(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) []byte {
// compositeGlyphs32Request writes a CompositeGlyphs32 request to a byte slice for transfer.
func compositeGlyphs32Request(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX, SrcY int16, Glyphcmds []byte) []byte {
size := xgb.Pad((28 + xgb.Pad((len(Glyphcmds) * 1))))
b := 0
buf := make([]byte, size)
@ -2062,7 +2056,7 @@ type CompositeGlyphs8Cookie struct {
// CompositeGlyphs8 sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CompositeGlyphs8(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) CompositeGlyphs8Cookie {
func CompositeGlyphs8(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX, SrcY int16, Glyphcmds []byte) CompositeGlyphs8Cookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -2074,8 +2068,8 @@ func CompositeGlyphs8(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat
}
// CompositeGlyphs8Checked sends a checked request.
// If an error occurs, it can be retrieved using CompositeGlyphs8Cookie.Check()
func CompositeGlyphs8Checked(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) CompositeGlyphs8Cookie {
// If an error occurs, it can be retrieved using CompositeGlyphs8Cookie.Check.
func CompositeGlyphs8Checked(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX, SrcY int16, Glyphcmds []byte) CompositeGlyphs8Cookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -2092,9 +2086,8 @@ func (cook CompositeGlyphs8Cookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CompositeGlyphs8
// compositeGlyphs8Request writes a CompositeGlyphs8 request to a byte slice.
func compositeGlyphs8Request(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) []byte {
// compositeGlyphs8Request writes a CompositeGlyphs8 request to a byte slice for transfer.
func compositeGlyphs8Request(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX, SrcY int16, Glyphcmds []byte) []byte {
size := xgb.Pad((28 + xgb.Pad((len(Glyphcmds) * 1))))
b := 0
buf := make([]byte, size)
@ -2158,7 +2151,7 @@ func CreateAnimCursor(c *xgb.Conn, Cid xproto.Cursor, Cursors []Animcursorelt) C
}
// CreateAnimCursorChecked sends a checked request.
// If an error occurs, it can be retrieved using CreateAnimCursorCookie.Check()
// If an error occurs, it can be retrieved using CreateAnimCursorCookie.Check.
func CreateAnimCursorChecked(c *xgb.Conn, Cid xproto.Cursor, Cursors []Animcursorelt) CreateAnimCursorCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2176,8 +2169,7 @@ func (cook CreateAnimCursorCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CreateAnimCursor
// createAnimCursorRequest writes a CreateAnimCursor request to a byte slice.
// createAnimCursorRequest writes a CreateAnimCursor request to a byte slice for transfer.
func createAnimCursorRequest(c *xgb.Conn, Cid xproto.Cursor, Cursors []Animcursorelt) []byte {
size := xgb.Pad((8 + xgb.Pad((len(Cursors) * 8))))
b := 0
@ -2221,7 +2213,7 @@ func CreateConicalGradient(c *xgb.Conn, Picture Picture, Center Pointfix, Angle
}
// CreateConicalGradientChecked sends a checked request.
// If an error occurs, it can be retrieved using CreateConicalGradientCookie.Check()
// If an error occurs, it can be retrieved using CreateConicalGradientCookie.Check.
func CreateConicalGradientChecked(c *xgb.Conn, Picture Picture, Center Pointfix, Angle Fixed, NumStops uint32, Stops []Fixed, Colors []Color) CreateConicalGradientCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2239,8 +2231,7 @@ func (cook CreateConicalGradientCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CreateConicalGradient
// createConicalGradientRequest writes a CreateConicalGradient request to a byte slice.
// createConicalGradientRequest writes a CreateConicalGradient request to a byte slice for transfer.
func createConicalGradientRequest(c *xgb.Conn, Picture Picture, Center Pointfix, Angle Fixed, NumStops uint32, Stops []Fixed, Colors []Color) []byte {
size := xgb.Pad(((24 + xgb.Pad((int(NumStops) * 4))) + xgb.Pad((int(NumStops) * 8))))
b := 0
@ -2289,7 +2280,7 @@ type CreateCursorCookie struct {
// CreateCursor sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateCursor(c *xgb.Conn, Cid xproto.Cursor, Source Picture, X uint16, Y uint16) CreateCursorCookie {
func CreateCursor(c *xgb.Conn, Cid xproto.Cursor, Source Picture, X, Y uint16) CreateCursorCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -2301,8 +2292,8 @@ func CreateCursor(c *xgb.Conn, Cid xproto.Cursor, Source Picture, X uint16, Y ui
}
// CreateCursorChecked sends a checked request.
// If an error occurs, it can be retrieved using CreateCursorCookie.Check()
func CreateCursorChecked(c *xgb.Conn, Cid xproto.Cursor, Source Picture, X uint16, Y uint16) CreateCursorCookie {
// If an error occurs, it can be retrieved using CreateCursorCookie.Check.
func CreateCursorChecked(c *xgb.Conn, Cid xproto.Cursor, Source Picture, X, Y uint16) CreateCursorCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -2319,9 +2310,8 @@ func (cook CreateCursorCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CreateCursor
// createCursorRequest writes a CreateCursor request to a byte slice.
func createCursorRequest(c *xgb.Conn, Cid xproto.Cursor, Source Picture, X uint16, Y uint16) []byte {
// createCursorRequest writes a CreateCursor request to a byte slice for transfer.
func createCursorRequest(c *xgb.Conn, Cid xproto.Cursor, Source Picture, X, Y uint16) []byte {
size := 16
b := 0
buf := make([]byte, size)
@ -2371,7 +2361,7 @@ func CreateGlyphSet(c *xgb.Conn, Gsid Glyphset, Format Pictformat) CreateGlyphSe
}
// CreateGlyphSetChecked sends a checked request.
// If an error occurs, it can be retrieved using CreateGlyphSetCookie.Check()
// If an error occurs, it can be retrieved using CreateGlyphSetCookie.Check.
func CreateGlyphSetChecked(c *xgb.Conn, Gsid Glyphset, Format Pictformat) CreateGlyphSetCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2389,8 +2379,7 @@ func (cook CreateGlyphSetCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CreateGlyphSet
// createGlyphSetRequest writes a CreateGlyphSet request to a byte slice.
// createGlyphSetRequest writes a CreateGlyphSet request to a byte slice for transfer.
func createGlyphSetRequest(c *xgb.Conn, Gsid Glyphset, Format Pictformat) []byte {
size := 12
b := 0
@ -2423,7 +2412,7 @@ type CreateLinearGradientCookie struct {
// CreateLinearGradient sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateLinearGradient(c *xgb.Conn, Picture Picture, P1 Pointfix, P2 Pointfix, NumStops uint32, Stops []Fixed, Colors []Color) CreateLinearGradientCookie {
func CreateLinearGradient(c *xgb.Conn, Picture Picture, P1, P2 Pointfix, NumStops uint32, Stops []Fixed, Colors []Color) CreateLinearGradientCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -2435,8 +2424,8 @@ func CreateLinearGradient(c *xgb.Conn, Picture Picture, P1 Pointfix, P2 Pointfix
}
// CreateLinearGradientChecked sends a checked request.
// If an error occurs, it can be retrieved using CreateLinearGradientCookie.Check()
func CreateLinearGradientChecked(c *xgb.Conn, Picture Picture, P1 Pointfix, P2 Pointfix, NumStops uint32, Stops []Fixed, Colors []Color) CreateLinearGradientCookie {
// If an error occurs, it can be retrieved using CreateLinearGradientCookie.Check.
func CreateLinearGradientChecked(c *xgb.Conn, Picture Picture, P1, P2 Pointfix, NumStops uint32, Stops []Fixed, Colors []Color) CreateLinearGradientCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -2453,9 +2442,8 @@ func (cook CreateLinearGradientCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CreateLinearGradient
// createLinearGradientRequest writes a CreateLinearGradient request to a byte slice.
func createLinearGradientRequest(c *xgb.Conn, Picture Picture, P1 Pointfix, P2 Pointfix, NumStops uint32, Stops []Fixed, Colors []Color) []byte {
// createLinearGradientRequest writes a CreateLinearGradient request to a byte slice for transfer.
func createLinearGradientRequest(c *xgb.Conn, Picture Picture, P1, P2 Pointfix, NumStops uint32, Stops []Fixed, Colors []Color) []byte {
size := xgb.Pad(((28 + xgb.Pad((int(NumStops) * 4))) + xgb.Pad((int(NumStops) * 8))))
b := 0
buf := make([]byte, size)
@ -2518,7 +2506,7 @@ func CreatePicture(c *xgb.Conn, Pid Picture, Drawable xproto.Drawable, Format Pi
}
// CreatePictureChecked sends a checked request.
// If an error occurs, it can be retrieved using CreatePictureCookie.Check()
// If an error occurs, it can be retrieved using CreatePictureCookie.Check.
func CreatePictureChecked(c *xgb.Conn, Pid Picture, Drawable xproto.Drawable, Format Pictformat, ValueMask uint32, ValueList []uint32) CreatePictureCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2536,8 +2524,7 @@ func (cook CreatePictureCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CreatePicture
// createPictureRequest writes a CreatePicture request to a byte slice.
// createPictureRequest writes a CreatePicture request to a byte slice for transfer.
func createPictureRequest(c *xgb.Conn, Pid Picture, Drawable xproto.Drawable, Format Pictformat, ValueMask uint32, ValueList []uint32) []byte {
size := xgb.Pad((20 + xgb.Pad((4 * xgb.PopCount(int(ValueMask))))))
b := 0
@ -2582,7 +2569,7 @@ type CreateRadialGradientCookie struct {
// CreateRadialGradient sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateRadialGradient(c *xgb.Conn, Picture Picture, Inner Pointfix, Outer Pointfix, InnerRadius Fixed, OuterRadius Fixed, NumStops uint32, Stops []Fixed, Colors []Color) CreateRadialGradientCookie {
func CreateRadialGradient(c *xgb.Conn, Picture Picture, Inner, Outer Pointfix, InnerRadius, OuterRadius Fixed, NumStops uint32, Stops []Fixed, Colors []Color) CreateRadialGradientCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -2594,8 +2581,8 @@ func CreateRadialGradient(c *xgb.Conn, Picture Picture, Inner Pointfix, Outer Po
}
// CreateRadialGradientChecked sends a checked request.
// If an error occurs, it can be retrieved using CreateRadialGradientCookie.Check()
func CreateRadialGradientChecked(c *xgb.Conn, Picture Picture, Inner Pointfix, Outer Pointfix, InnerRadius Fixed, OuterRadius Fixed, NumStops uint32, Stops []Fixed, Colors []Color) CreateRadialGradientCookie {
// If an error occurs, it can be retrieved using CreateRadialGradientCookie.Check.
func CreateRadialGradientChecked(c *xgb.Conn, Picture Picture, Inner, Outer Pointfix, InnerRadius, OuterRadius Fixed, NumStops uint32, Stops []Fixed, Colors []Color) CreateRadialGradientCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -2612,9 +2599,8 @@ func (cook CreateRadialGradientCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CreateRadialGradient
// createRadialGradientRequest writes a CreateRadialGradient request to a byte slice.
func createRadialGradientRequest(c *xgb.Conn, Picture Picture, Inner Pointfix, Outer Pointfix, InnerRadius Fixed, OuterRadius Fixed, NumStops uint32, Stops []Fixed, Colors []Color) []byte {
// createRadialGradientRequest writes a CreateRadialGradient request to a byte slice for transfer.
func createRadialGradientRequest(c *xgb.Conn, Picture Picture, Inner, Outer Pointfix, InnerRadius, OuterRadius Fixed, NumStops uint32, Stops []Fixed, Colors []Color) []byte {
size := xgb.Pad(((36 + xgb.Pad((int(NumStops) * 4))) + xgb.Pad((int(NumStops) * 8))))
b := 0
buf := make([]byte, size)
@ -2683,7 +2669,7 @@ func CreateSolidFill(c *xgb.Conn, Picture Picture, Color Color) CreateSolidFillC
}
// CreateSolidFillChecked sends a checked request.
// If an error occurs, it can be retrieved using CreateSolidFillCookie.Check()
// If an error occurs, it can be retrieved using CreateSolidFillCookie.Check.
func CreateSolidFillChecked(c *xgb.Conn, Picture Picture, Color Color) CreateSolidFillCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2701,8 +2687,7 @@ func (cook CreateSolidFillCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CreateSolidFill
// createSolidFillRequest writes a CreateSolidFill request to a byte slice.
// createSolidFillRequest writes a CreateSolidFill request to a byte slice for transfer.
func createSolidFillRequest(c *xgb.Conn, Picture Picture, Color Color) []byte {
size := 16
b := 0
@ -2750,7 +2735,7 @@ func FillRectangles(c *xgb.Conn, Op byte, Dst Picture, Color Color, Rects []xpro
}
// FillRectanglesChecked sends a checked request.
// If an error occurs, it can be retrieved using FillRectanglesCookie.Check()
// If an error occurs, it can be retrieved using FillRectanglesCookie.Check.
func FillRectanglesChecked(c *xgb.Conn, Op byte, Dst Picture, Color Color, Rects []xproto.Rectangle) FillRectanglesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2768,8 +2753,7 @@ func (cook FillRectanglesCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for FillRectangles
// fillRectanglesRequest writes a FillRectangles request to a byte slice.
// fillRectanglesRequest writes a FillRectangles request to a byte slice for transfer.
func fillRectanglesRequest(c *xgb.Conn, Op byte, Dst Picture, Color Color, Rects []xproto.Rectangle) []byte {
size := xgb.Pad((20 + xgb.Pad((len(Rects) * 8))))
b := 0
@ -2824,7 +2808,7 @@ func FreeGlyphSet(c *xgb.Conn, Glyphset Glyphset) FreeGlyphSetCookie {
}
// FreeGlyphSetChecked sends a checked request.
// If an error occurs, it can be retrieved using FreeGlyphSetCookie.Check()
// If an error occurs, it can be retrieved using FreeGlyphSetCookie.Check.
func FreeGlyphSetChecked(c *xgb.Conn, Glyphset Glyphset) FreeGlyphSetCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2842,8 +2826,7 @@ func (cook FreeGlyphSetCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for FreeGlyphSet
// freeGlyphSetRequest writes a FreeGlyphSet request to a byte slice.
// freeGlyphSetRequest writes a FreeGlyphSet request to a byte slice for transfer.
func freeGlyphSetRequest(c *xgb.Conn, Glyphset Glyphset) []byte {
size := 8
b := 0
@ -2885,7 +2868,7 @@ func FreeGlyphs(c *xgb.Conn, Glyphset Glyphset, Glyphs []Glyph) FreeGlyphsCookie
}
// FreeGlyphsChecked sends a checked request.
// If an error occurs, it can be retrieved using FreeGlyphsCookie.Check()
// If an error occurs, it can be retrieved using FreeGlyphsCookie.Check.
func FreeGlyphsChecked(c *xgb.Conn, Glyphset Glyphset, Glyphs []Glyph) FreeGlyphsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2903,8 +2886,7 @@ func (cook FreeGlyphsCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for FreeGlyphs
// freeGlyphsRequest writes a FreeGlyphs request to a byte slice.
// freeGlyphsRequest writes a FreeGlyphs request to a byte slice for transfer.
func freeGlyphsRequest(c *xgb.Conn, Glyphset Glyphset, Glyphs []Glyph) []byte {
size := xgb.Pad((8 + xgb.Pad((len(Glyphs) * 4))))
b := 0
@ -2951,7 +2933,7 @@ func FreePicture(c *xgb.Conn, Picture Picture) FreePictureCookie {
}
// FreePictureChecked sends a checked request.
// If an error occurs, it can be retrieved using FreePictureCookie.Check()
// If an error occurs, it can be retrieved using FreePictureCookie.Check.
func FreePictureChecked(c *xgb.Conn, Picture Picture) FreePictureCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2969,8 +2951,7 @@ func (cook FreePictureCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for FreePicture
// freePictureRequest writes a FreePicture request to a byte slice.
// freePictureRequest writes a FreePicture request to a byte slice for transfer.
func freePictureRequest(c *xgb.Conn, Picture Picture) []byte {
size := 8
b := 0
@ -2999,7 +2980,7 @@ type QueryFiltersCookie struct {
}
// QueryFilters sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryFiltersCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryFiltersCookie.Reply.
func QueryFilters(c *xgb.Conn, Drawable xproto.Drawable) QueryFiltersCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -3081,8 +3062,7 @@ func queryFiltersReply(buf []byte) *QueryFiltersReply {
return v
}
// Write request to wire for QueryFilters
// queryFiltersRequest writes a QueryFilters request to a byte slice.
// queryFiltersRequest writes a QueryFilters request to a byte slice for transfer.
func queryFiltersRequest(c *xgb.Conn, Drawable xproto.Drawable) []byte {
size := 8
b := 0
@ -3111,7 +3091,7 @@ type QueryPictFormatsCookie struct {
}
// QueryPictFormats sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryPictFormatsCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryPictFormatsCookie.Reply.
func QueryPictFormats(c *xgb.Conn) QueryPictFormatsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -3209,8 +3189,7 @@ func queryPictFormatsReply(buf []byte) *QueryPictFormatsReply {
return v
}
// Write request to wire for QueryPictFormats
// queryPictFormatsRequest writes a QueryPictFormats request to a byte slice.
// queryPictFormatsRequest writes a QueryPictFormats request to a byte slice for transfer.
func queryPictFormatsRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -3236,7 +3215,7 @@ type QueryPictIndexValuesCookie struct {
}
// QueryPictIndexValues sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryPictIndexValuesCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryPictIndexValuesCookie.Reply.
func QueryPictIndexValues(c *xgb.Conn, Format Pictformat) QueryPictIndexValuesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -3307,8 +3286,7 @@ func queryPictIndexValuesReply(buf []byte) *QueryPictIndexValuesReply {
return v
}
// Write request to wire for QueryPictIndexValues
// queryPictIndexValuesRequest writes a QueryPictIndexValues request to a byte slice.
// queryPictIndexValuesRequest writes a QueryPictIndexValues request to a byte slice for transfer.
func queryPictIndexValuesRequest(c *xgb.Conn, Format Pictformat) []byte {
size := 8
b := 0
@ -3337,8 +3315,8 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersion(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie {
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint32) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -3351,7 +3329,7 @@ func QueryVersion(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uin
// QueryVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie {
func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint32) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -3408,9 +3386,8 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
// Write request to wire for QueryVersion
// queryVersionRequest writes a QueryVersion request to a byte slice.
func queryVersionRequest(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uint32) []byte {
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint32) []byte {
size := 12
b := 0
buf := make([]byte, size)
@ -3442,7 +3419,7 @@ type ReferenceGlyphSetCookie struct {
// ReferenceGlyphSet sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ReferenceGlyphSet(c *xgb.Conn, Gsid Glyphset, Existing Glyphset) ReferenceGlyphSetCookie {
func ReferenceGlyphSet(c *xgb.Conn, Gsid, Existing Glyphset) ReferenceGlyphSetCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -3454,8 +3431,8 @@ func ReferenceGlyphSet(c *xgb.Conn, Gsid Glyphset, Existing Glyphset) ReferenceG
}
// ReferenceGlyphSetChecked sends a checked request.
// If an error occurs, it can be retrieved using ReferenceGlyphSetCookie.Check()
func ReferenceGlyphSetChecked(c *xgb.Conn, Gsid Glyphset, Existing Glyphset) ReferenceGlyphSetCookie {
// If an error occurs, it can be retrieved using ReferenceGlyphSetCookie.Check.
func ReferenceGlyphSetChecked(c *xgb.Conn, Gsid, Existing Glyphset) ReferenceGlyphSetCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -3472,9 +3449,8 @@ func (cook ReferenceGlyphSetCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for ReferenceGlyphSet
// referenceGlyphSetRequest writes a ReferenceGlyphSet request to a byte slice.
func referenceGlyphSetRequest(c *xgb.Conn, Gsid Glyphset, Existing Glyphset) []byte {
// referenceGlyphSetRequest writes a ReferenceGlyphSet request to a byte slice for transfer.
func referenceGlyphSetRequest(c *xgb.Conn, Gsid, Existing Glyphset) []byte {
size := 12
b := 0
buf := make([]byte, size)
@ -3506,7 +3482,7 @@ type SetPictureClipRectanglesCookie struct {
// SetPictureClipRectangles sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetPictureClipRectangles(c *xgb.Conn, Picture Picture, ClipXOrigin int16, ClipYOrigin int16, Rectangles []xproto.Rectangle) SetPictureClipRectanglesCookie {
func SetPictureClipRectangles(c *xgb.Conn, Picture Picture, ClipXOrigin, ClipYOrigin int16, Rectangles []xproto.Rectangle) SetPictureClipRectanglesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -3518,8 +3494,8 @@ func SetPictureClipRectangles(c *xgb.Conn, Picture Picture, ClipXOrigin int16, C
}
// SetPictureClipRectanglesChecked sends a checked request.
// If an error occurs, it can be retrieved using SetPictureClipRectanglesCookie.Check()
func SetPictureClipRectanglesChecked(c *xgb.Conn, Picture Picture, ClipXOrigin int16, ClipYOrigin int16, Rectangles []xproto.Rectangle) SetPictureClipRectanglesCookie {
// If an error occurs, it can be retrieved using SetPictureClipRectanglesCookie.Check.
func SetPictureClipRectanglesChecked(c *xgb.Conn, Picture Picture, ClipXOrigin, ClipYOrigin int16, Rectangles []xproto.Rectangle) SetPictureClipRectanglesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -3536,9 +3512,8 @@ func (cook SetPictureClipRectanglesCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetPictureClipRectangles
// setPictureClipRectanglesRequest writes a SetPictureClipRectangles request to a byte slice.
func setPictureClipRectanglesRequest(c *xgb.Conn, Picture Picture, ClipXOrigin int16, ClipYOrigin int16, Rectangles []xproto.Rectangle) []byte {
// setPictureClipRectanglesRequest writes a SetPictureClipRectangles request to a byte slice for transfer.
func setPictureClipRectanglesRequest(c *xgb.Conn, Picture Picture, ClipXOrigin, ClipYOrigin int16, Rectangles []xproto.Rectangle) []byte {
size := xgb.Pad((12 + xgb.Pad((len(Rectangles) * 8))))
b := 0
buf := make([]byte, size)
@ -3587,7 +3562,7 @@ func SetPictureFilter(c *xgb.Conn, Picture Picture, FilterLen uint16, Filter str
}
// SetPictureFilterChecked sends a checked request.
// If an error occurs, it can be retrieved using SetPictureFilterCookie.Check()
// If an error occurs, it can be retrieved using SetPictureFilterCookie.Check.
func SetPictureFilterChecked(c *xgb.Conn, Picture Picture, FilterLen uint16, Filter string, Values []Fixed) SetPictureFilterCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -3605,8 +3580,7 @@ func (cook SetPictureFilterCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetPictureFilter
// setPictureFilterRequest writes a SetPictureFilter request to a byte slice.
// setPictureFilterRequest writes a SetPictureFilter request to a byte slice for transfer.
func setPictureFilterRequest(c *xgb.Conn, Picture Picture, FilterLen uint16, Filter string, Values []Fixed) []byte {
size := xgb.Pad((((12 + xgb.Pad((int(FilterLen) * 1))) + 4) + xgb.Pad((len(Values) * 4))))
b := 0
@ -3665,7 +3639,7 @@ func SetPictureTransform(c *xgb.Conn, Picture Picture, Transform Transform) SetP
}
// SetPictureTransformChecked sends a checked request.
// If an error occurs, it can be retrieved using SetPictureTransformCookie.Check()
// If an error occurs, it can be retrieved using SetPictureTransformCookie.Check.
func SetPictureTransformChecked(c *xgb.Conn, Picture Picture, Transform Transform) SetPictureTransformCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -3683,8 +3657,7 @@ func (cook SetPictureTransformCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetPictureTransform
// setPictureTransformRequest writes a SetPictureTransform request to a byte slice.
// setPictureTransformRequest writes a SetPictureTransform request to a byte slice for transfer.
func setPictureTransformRequest(c *xgb.Conn, Picture Picture, Transform Transform) []byte {
size := 44
b := 0
@ -3720,7 +3693,7 @@ type TrapezoidsCookie struct {
// Trapezoids sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func Trapezoids(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Traps []Trapezoid) TrapezoidsCookie {
func Trapezoids(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, SrcX, SrcY int16, Traps []Trapezoid) TrapezoidsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -3732,8 +3705,8 @@ func Trapezoids(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictf
}
// TrapezoidsChecked sends a checked request.
// If an error occurs, it can be retrieved using TrapezoidsCookie.Check()
func TrapezoidsChecked(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Traps []Trapezoid) TrapezoidsCookie {
// If an error occurs, it can be retrieved using TrapezoidsCookie.Check.
func TrapezoidsChecked(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, SrcX, SrcY int16, Traps []Trapezoid) TrapezoidsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -3750,9 +3723,8 @@ func (cook TrapezoidsCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for Trapezoids
// trapezoidsRequest writes a Trapezoids request to a byte slice.
func trapezoidsRequest(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Traps []Trapezoid) []byte {
// trapezoidsRequest writes a Trapezoids request to a byte slice for transfer.
func trapezoidsRequest(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, SrcX, SrcY int16, Traps []Trapezoid) []byte {
size := xgb.Pad((24 + xgb.Pad((len(Traps) * 40))))
b := 0
buf := make([]byte, size)
@ -3800,7 +3772,7 @@ type TriFanCookie struct {
// TriFan sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func TriFan(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Points []Pointfix) TriFanCookie {
func TriFan(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, SrcX, SrcY int16, Points []Pointfix) TriFanCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -3812,8 +3784,8 @@ func TriFan(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictforma
}
// TriFanChecked sends a checked request.
// If an error occurs, it can be retrieved using TriFanCookie.Check()
func TriFanChecked(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Points []Pointfix) TriFanCookie {
// If an error occurs, it can be retrieved using TriFanCookie.Check.
func TriFanChecked(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, SrcX, SrcY int16, Points []Pointfix) TriFanCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -3830,9 +3802,8 @@ func (cook TriFanCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for TriFan
// triFanRequest writes a TriFan request to a byte slice.
func triFanRequest(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Points []Pointfix) []byte {
// triFanRequest writes a TriFan request to a byte slice for transfer.
func triFanRequest(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, SrcX, SrcY int16, Points []Pointfix) []byte {
size := xgb.Pad((24 + xgb.Pad((len(Points) * 8))))
b := 0
buf := make([]byte, size)
@ -3880,7 +3851,7 @@ type TriStripCookie struct {
// TriStrip sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func TriStrip(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Points []Pointfix) TriStripCookie {
func TriStrip(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, SrcX, SrcY int16, Points []Pointfix) TriStripCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -3892,8 +3863,8 @@ func TriStrip(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictfor
}
// TriStripChecked sends a checked request.
// If an error occurs, it can be retrieved using TriStripCookie.Check()
func TriStripChecked(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Points []Pointfix) TriStripCookie {
// If an error occurs, it can be retrieved using TriStripCookie.Check.
func TriStripChecked(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, SrcX, SrcY int16, Points []Pointfix) TriStripCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -3910,9 +3881,8 @@ func (cook TriStripCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for TriStrip
// triStripRequest writes a TriStrip request to a byte slice.
func triStripRequest(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Points []Pointfix) []byte {
// triStripRequest writes a TriStrip request to a byte slice for transfer.
func triStripRequest(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, SrcX, SrcY int16, Points []Pointfix) []byte {
size := xgb.Pad((24 + xgb.Pad((len(Points) * 8))))
b := 0
buf := make([]byte, size)
@ -3960,7 +3930,7 @@ type TrianglesCookie struct {
// Triangles sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func Triangles(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Triangles []Triangle) TrianglesCookie {
func Triangles(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, SrcX, SrcY int16, Triangles []Triangle) TrianglesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -3972,8 +3942,8 @@ func Triangles(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictfo
}
// TrianglesChecked sends a checked request.
// If an error occurs, it can be retrieved using TrianglesCookie.Check()
func TrianglesChecked(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Triangles []Triangle) TrianglesCookie {
// If an error occurs, it can be retrieved using TrianglesCookie.Check.
func TrianglesChecked(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, SrcX, SrcY int16, Triangles []Triangle) TrianglesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RENDER"]; !ok {
@ -3990,9 +3960,8 @@ func (cook TrianglesCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for Triangles
// trianglesRequest writes a Triangles request to a byte slice.
func trianglesRequest(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Triangles []Triangle) []byte {
// trianglesRequest writes a Triangles request to a byte slice for transfer.
func trianglesRequest(c *xgb.Conn, Op byte, Src, Dst Picture, MaskFormat Pictformat, SrcX, SrcY int16, Triangles []Triangle) []byte {
size := xgb.Pad((24 + xgb.Pad((len(Triangles) * 24))))
b := 0
buf := make([]byte, size)

View File

@ -513,7 +513,7 @@ type QueryClientIdsCookie struct {
}
// QueryClientIds sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryClientIdsCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryClientIdsCookie.Reply.
func QueryClientIds(c *xgb.Conn, NumSpecs uint32, Specs []ClientIdSpec) QueryClientIdsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -584,8 +584,7 @@ func queryClientIdsReply(buf []byte) *QueryClientIdsReply {
return v
}
// Write request to wire for QueryClientIds
// queryClientIdsRequest writes a QueryClientIds request to a byte slice.
// queryClientIdsRequest writes a QueryClientIds request to a byte slice for transfer.
func queryClientIdsRequest(c *xgb.Conn, NumSpecs uint32, Specs []ClientIdSpec) []byte {
size := xgb.Pad((8 + xgb.Pad((int(NumSpecs) * 8))))
b := 0
@ -616,7 +615,7 @@ type QueryClientPixmapBytesCookie struct {
}
// QueryClientPixmapBytes sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryClientPixmapBytesCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryClientPixmapBytesCookie.Reply.
func QueryClientPixmapBytes(c *xgb.Conn, Xid uint32) QueryClientPixmapBytesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -684,8 +683,7 @@ func queryClientPixmapBytesReply(buf []byte) *QueryClientPixmapBytesReply {
return v
}
// Write request to wire for QueryClientPixmapBytes
// queryClientPixmapBytesRequest writes a QueryClientPixmapBytes request to a byte slice.
// queryClientPixmapBytesRequest writes a QueryClientPixmapBytes request to a byte slice for transfer.
func queryClientPixmapBytesRequest(c *xgb.Conn, Xid uint32) []byte {
size := 8
b := 0
@ -714,7 +712,7 @@ type QueryClientResourcesCookie struct {
}
// QueryClientResources sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryClientResourcesCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryClientResourcesCookie.Reply.
func QueryClientResources(c *xgb.Conn, Xid uint32) QueryClientResourcesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -785,8 +783,7 @@ func queryClientResourcesReply(buf []byte) *QueryClientResourcesReply {
return v
}
// Write request to wire for QueryClientResources
// queryClientResourcesRequest writes a QueryClientResources request to a byte slice.
// queryClientResourcesRequest writes a QueryClientResources request to a byte slice for transfer.
func queryClientResourcesRequest(c *xgb.Conn, Xid uint32) []byte {
size := 8
b := 0
@ -815,7 +812,7 @@ type QueryClientsCookie struct {
}
// QueryClients sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryClientsCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryClientsCookie.Reply.
func QueryClients(c *xgb.Conn) QueryClientsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -886,8 +883,7 @@ func queryClientsReply(buf []byte) *QueryClientsReply {
return v
}
// Write request to wire for QueryClients
// queryClientsRequest writes a QueryClients request to a byte slice.
// queryClientsRequest writes a QueryClients request to a byte slice for transfer.
func queryClientsRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -913,8 +909,8 @@ type QueryResourceBytesCookie struct {
}
// QueryResourceBytes sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryResourceBytesCookie.Reply()
func QueryResourceBytes(c *xgb.Conn, Client uint32, NumSpecs uint32, Specs []ResourceIdSpec) QueryResourceBytesCookie {
// If an error occurs, it will be returned with the reply by calling QueryResourceBytesCookie.Reply.
func QueryResourceBytes(c *xgb.Conn, Client, NumSpecs uint32, Specs []ResourceIdSpec) QueryResourceBytesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["X-Resource"]; !ok {
@ -927,7 +923,7 @@ func QueryResourceBytes(c *xgb.Conn, Client uint32, NumSpecs uint32, Specs []Res
// QueryResourceBytesUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryResourceBytesUnchecked(c *xgb.Conn, Client uint32, NumSpecs uint32, Specs []ResourceIdSpec) QueryResourceBytesCookie {
func QueryResourceBytesUnchecked(c *xgb.Conn, Client, NumSpecs uint32, Specs []ResourceIdSpec) QueryResourceBytesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["X-Resource"]; !ok {
@ -984,9 +980,8 @@ func queryResourceBytesReply(buf []byte) *QueryResourceBytesReply {
return v
}
// Write request to wire for QueryResourceBytes
// queryResourceBytesRequest writes a QueryResourceBytes request to a byte slice.
func queryResourceBytesRequest(c *xgb.Conn, Client uint32, NumSpecs uint32, Specs []ResourceIdSpec) []byte {
// queryResourceBytesRequest writes a QueryResourceBytes request to a byte slice for transfer.
func queryResourceBytesRequest(c *xgb.Conn, Client, NumSpecs uint32, Specs []ResourceIdSpec) []byte {
size := xgb.Pad((12 + xgb.Pad((int(NumSpecs) * 8))))
b := 0
buf := make([]byte, size)
@ -1019,8 +1014,8 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersion(c *xgb.Conn, ClientMajor byte, ClientMinor byte) QueryVersionCookie {
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn, ClientMajor, ClientMinor byte) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["X-Resource"]; !ok {
@ -1033,7 +1028,7 @@ func QueryVersion(c *xgb.Conn, ClientMajor byte, ClientMinor byte) QueryVersionC
// QueryVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryVersionUnchecked(c *xgb.Conn, ClientMajor byte, ClientMinor byte) QueryVersionCookie {
func QueryVersionUnchecked(c *xgb.Conn, ClientMajor, ClientMinor byte) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["X-Resource"]; !ok {
@ -1087,9 +1082,8 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
// Write request to wire for QueryVersion
// queryVersionRequest writes a QueryVersion request to a byte slice.
func queryVersionRequest(c *xgb.Conn, ClientMajor byte, ClientMinor byte) []byte {
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn, ClientMajor, ClientMinor byte) []byte {
size := 8
b := 0
buf := make([]byte, size)

View File

@ -200,7 +200,7 @@ type QueryInfoCookie struct {
}
// QueryInfo sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryInfoCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryInfoCookie.Reply.
func QueryInfo(c *xgb.Conn, Drawable xproto.Drawable) QueryInfoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -284,8 +284,7 @@ func queryInfoReply(buf []byte) *QueryInfoReply {
return v
}
// Write request to wire for QueryInfo
// queryInfoRequest writes a QueryInfo request to a byte slice.
// queryInfoRequest writes a QueryInfo request to a byte slice for transfer.
func queryInfoRequest(c *xgb.Conn, Drawable xproto.Drawable) []byte {
size := 8
b := 0
@ -314,8 +313,8 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersion(c *xgb.Conn, ClientMajorVersion byte, ClientMinorVersion byte) QueryVersionCookie {
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion byte) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
@ -328,7 +327,7 @@ func QueryVersion(c *xgb.Conn, ClientMajorVersion byte, ClientMinorVersion byte)
// QueryVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion byte, ClientMinorVersion byte) QueryVersionCookie {
func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion byte) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
@ -385,9 +384,8 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
// Write request to wire for QueryVersion
// queryVersionRequest writes a QueryVersion request to a byte slice.
func queryVersionRequest(c *xgb.Conn, ClientMajorVersion byte, ClientMinorVersion byte) []byte {
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion byte) []byte {
size := 8
b := 0
buf := make([]byte, size)
@ -433,7 +431,7 @@ func SelectInput(c *xgb.Conn, Drawable xproto.Drawable, EventMask uint32) Select
}
// SelectInputChecked sends a checked request.
// If an error occurs, it can be retrieved using SelectInputCookie.Check()
// If an error occurs, it can be retrieved using SelectInputCookie.Check.
func SelectInputChecked(c *xgb.Conn, Drawable xproto.Drawable, EventMask uint32) SelectInputCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -451,8 +449,7 @@ func (cook SelectInputCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SelectInput
// selectInputRequest writes a SelectInput request to a byte slice.
// selectInputRequest writes a SelectInput request to a byte slice for transfer.
func selectInputRequest(c *xgb.Conn, Drawable xproto.Drawable, EventMask uint32) []byte {
size := 12
b := 0
@ -485,7 +482,7 @@ type SetAttributesCookie struct {
// SetAttributes sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetAttributes(c *xgb.Conn, Drawable xproto.Drawable, X int16, Y int16, Width uint16, Height uint16, BorderWidth uint16, Class byte, Depth byte, Visual xproto.Visualid, ValueMask uint32, ValueList []uint32) SetAttributesCookie {
func SetAttributes(c *xgb.Conn, Drawable xproto.Drawable, X, Y int16, Width, Height, BorderWidth uint16, Class, Depth byte, Visual xproto.Visualid, ValueMask uint32, ValueList []uint32) SetAttributesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
@ -497,8 +494,8 @@ func SetAttributes(c *xgb.Conn, Drawable xproto.Drawable, X int16, Y int16, Widt
}
// SetAttributesChecked sends a checked request.
// If an error occurs, it can be retrieved using SetAttributesCookie.Check()
func SetAttributesChecked(c *xgb.Conn, Drawable xproto.Drawable, X int16, Y int16, Width uint16, Height uint16, BorderWidth uint16, Class byte, Depth byte, Visual xproto.Visualid, ValueMask uint32, ValueList []uint32) SetAttributesCookie {
// If an error occurs, it can be retrieved using SetAttributesCookie.Check.
func SetAttributesChecked(c *xgb.Conn, Drawable xproto.Drawable, X, Y int16, Width, Height, BorderWidth uint16, Class, Depth byte, Visual xproto.Visualid, ValueMask uint32, ValueList []uint32) SetAttributesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
@ -515,9 +512,8 @@ func (cook SetAttributesCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetAttributes
// setAttributesRequest writes a SetAttributes request to a byte slice.
func setAttributesRequest(c *xgb.Conn, Drawable xproto.Drawable, X int16, Y int16, Width uint16, Height uint16, BorderWidth uint16, Class byte, Depth byte, Visual xproto.Visualid, ValueMask uint32, ValueList []uint32) []byte {
// setAttributesRequest writes a SetAttributes request to a byte slice for transfer.
func setAttributesRequest(c *xgb.Conn, Drawable xproto.Drawable, X, Y int16, Width, Height, BorderWidth uint16, Class, Depth byte, Visual xproto.Visualid, ValueMask uint32, ValueList []uint32) []byte {
size := xgb.Pad((28 + xgb.Pad((4 * xgb.PopCount(int(ValueMask))))))
b := 0
buf := make([]byte, size)
@ -591,7 +587,7 @@ func Suspend(c *xgb.Conn, Suspend bool) SuspendCookie {
}
// SuspendChecked sends a checked request.
// If an error occurs, it can be retrieved using SuspendCookie.Check()
// If an error occurs, it can be retrieved using SuspendCookie.Check.
func SuspendChecked(c *xgb.Conn, Suspend bool) SuspendCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -609,8 +605,7 @@ func (cook SuspendCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for Suspend
// suspendRequest writes a Suspend request to a byte slice.
// suspendRequest writes a Suspend request to a byte slice for transfer.
func suspendRequest(c *xgb.Conn, Suspend bool) []byte {
size := 8
b := 0
@ -658,7 +653,7 @@ func UnsetAttributes(c *xgb.Conn, Drawable xproto.Drawable) UnsetAttributesCooki
}
// UnsetAttributesChecked sends a checked request.
// If an error occurs, it can be retrieved using UnsetAttributesCookie.Check()
// If an error occurs, it can be retrieved using UnsetAttributesCookie.Check.
func UnsetAttributesChecked(c *xgb.Conn, Drawable xproto.Drawable) UnsetAttributesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -676,8 +671,7 @@ func (cook UnsetAttributesCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for UnsetAttributes
// unsetAttributesRequest writes a UnsetAttributes request to a byte slice.
// unsetAttributesRequest writes a UnsetAttributes request to a byte slice for transfer.
func unsetAttributesRequest(c *xgb.Conn, Drawable xproto.Drawable) []byte {
size := 8
b := 0

View File

@ -217,7 +217,7 @@ type CombineCookie struct {
// Combine sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func Combine(c *xgb.Conn, Operation Op, DestinationKind Kind, SourceKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16, SourceWindow xproto.Window) CombineCookie {
func Combine(c *xgb.Conn, Operation Op, DestinationKind, SourceKind Kind, DestinationWindow xproto.Window, XOffset, YOffset int16, SourceWindow xproto.Window) CombineCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["SHAPE"]; !ok {
@ -229,8 +229,8 @@ func Combine(c *xgb.Conn, Operation Op, DestinationKind Kind, SourceKind Kind, D
}
// CombineChecked sends a checked request.
// If an error occurs, it can be retrieved using CombineCookie.Check()
func CombineChecked(c *xgb.Conn, Operation Op, DestinationKind Kind, SourceKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16, SourceWindow xproto.Window) CombineCookie {
// If an error occurs, it can be retrieved using CombineCookie.Check.
func CombineChecked(c *xgb.Conn, Operation Op, DestinationKind, SourceKind Kind, DestinationWindow xproto.Window, XOffset, YOffset int16, SourceWindow xproto.Window) CombineCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["SHAPE"]; !ok {
@ -247,9 +247,8 @@ func (cook CombineCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for Combine
// combineRequest writes a Combine request to a byte slice.
func combineRequest(c *xgb.Conn, Operation Op, DestinationKind Kind, SourceKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16, SourceWindow xproto.Window) []byte {
// combineRequest writes a Combine request to a byte slice for transfer.
func combineRequest(c *xgb.Conn, Operation Op, DestinationKind, SourceKind Kind, DestinationWindow xproto.Window, XOffset, YOffset int16, SourceWindow xproto.Window) []byte {
size := 20
b := 0
buf := make([]byte, size)
@ -297,7 +296,7 @@ type GetRectanglesCookie struct {
}
// GetRectangles sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetRectanglesCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetRectanglesCookie.Reply.
func GetRectangles(c *xgb.Conn, Window xproto.Window, SourceKind Kind) GetRectanglesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -369,8 +368,7 @@ func getRectanglesReply(buf []byte) *GetRectanglesReply {
return v
}
// Write request to wire for GetRectangles
// getRectanglesRequest writes a GetRectangles request to a byte slice.
// getRectanglesRequest writes a GetRectangles request to a byte slice for transfer.
func getRectanglesRequest(c *xgb.Conn, Window xproto.Window, SourceKind Kind) []byte {
size := 12
b := 0
@ -404,7 +402,7 @@ type InputSelectedCookie struct {
}
// InputSelected sends a checked request.
// If an error occurs, it will be returned with the reply by calling InputSelectedCookie.Reply()
// If an error occurs, it will be returned with the reply by calling InputSelectedCookie.Reply.
func InputSelected(c *xgb.Conn, DestinationWindow xproto.Window) InputSelectedCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -469,8 +467,7 @@ func inputSelectedReply(buf []byte) *InputSelectedReply {
return v
}
// Write request to wire for InputSelected
// inputSelectedRequest writes a InputSelected request to a byte slice.
// inputSelectedRequest writes a InputSelected request to a byte slice for transfer.
func inputSelectedRequest(c *xgb.Conn, DestinationWindow xproto.Window) []byte {
size := 8
b := 0
@ -500,7 +497,7 @@ type MaskCookie struct {
// Mask sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func Mask(c *xgb.Conn, Operation Op, DestinationKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16, SourceBitmap xproto.Pixmap) MaskCookie {
func Mask(c *xgb.Conn, Operation Op, DestinationKind Kind, DestinationWindow xproto.Window, XOffset, YOffset int16, SourceBitmap xproto.Pixmap) MaskCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["SHAPE"]; !ok {
@ -512,8 +509,8 @@ func Mask(c *xgb.Conn, Operation Op, DestinationKind Kind, DestinationWindow xpr
}
// MaskChecked sends a checked request.
// If an error occurs, it can be retrieved using MaskCookie.Check()
func MaskChecked(c *xgb.Conn, Operation Op, DestinationKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16, SourceBitmap xproto.Pixmap) MaskCookie {
// If an error occurs, it can be retrieved using MaskCookie.Check.
func MaskChecked(c *xgb.Conn, Operation Op, DestinationKind Kind, DestinationWindow xproto.Window, XOffset, YOffset int16, SourceBitmap xproto.Pixmap) MaskCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["SHAPE"]; !ok {
@ -530,9 +527,8 @@ func (cook MaskCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for Mask
// maskRequest writes a Mask request to a byte slice.
func maskRequest(c *xgb.Conn, Operation Op, DestinationKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16, SourceBitmap xproto.Pixmap) []byte {
// maskRequest writes a Mask request to a byte slice for transfer.
func maskRequest(c *xgb.Conn, Operation Op, DestinationKind Kind, DestinationWindow xproto.Window, XOffset, YOffset int16, SourceBitmap xproto.Pixmap) []byte {
size := 20
b := 0
buf := make([]byte, size)
@ -578,7 +574,7 @@ type OffsetCookie struct {
// Offset sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func Offset(c *xgb.Conn, DestinationKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16) OffsetCookie {
func Offset(c *xgb.Conn, DestinationKind Kind, DestinationWindow xproto.Window, XOffset, YOffset int16) OffsetCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["SHAPE"]; !ok {
@ -590,8 +586,8 @@ func Offset(c *xgb.Conn, DestinationKind Kind, DestinationWindow xproto.Window,
}
// OffsetChecked sends a checked request.
// If an error occurs, it can be retrieved using OffsetCookie.Check()
func OffsetChecked(c *xgb.Conn, DestinationKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16) OffsetCookie {
// If an error occurs, it can be retrieved using OffsetCookie.Check.
func OffsetChecked(c *xgb.Conn, DestinationKind Kind, DestinationWindow xproto.Window, XOffset, YOffset int16) OffsetCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["SHAPE"]; !ok {
@ -608,9 +604,8 @@ func (cook OffsetCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for Offset
// offsetRequest writes a Offset request to a byte slice.
func offsetRequest(c *xgb.Conn, DestinationKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16) []byte {
// offsetRequest writes a Offset request to a byte slice for transfer.
func offsetRequest(c *xgb.Conn, DestinationKind Kind, DestinationWindow xproto.Window, XOffset, YOffset int16) []byte {
size := 16
b := 0
buf := make([]byte, size)
@ -649,7 +644,7 @@ type QueryExtentsCookie struct {
}
// QueryExtents sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryExtentsCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryExtentsCookie.Reply.
func QueryExtents(c *xgb.Conn, DestinationWindow xproto.Window) QueryExtentsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -760,8 +755,7 @@ func queryExtentsReply(buf []byte) *QueryExtentsReply {
return v
}
// Write request to wire for QueryExtents
// queryExtentsRequest writes a QueryExtents request to a byte slice.
// queryExtentsRequest writes a QueryExtents request to a byte slice for transfer.
func queryExtentsRequest(c *xgb.Conn, DestinationWindow xproto.Window) []byte {
size := 8
b := 0
@ -790,7 +784,7 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -858,8 +852,7 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
// Write request to wire for QueryVersion
// queryVersionRequest writes a QueryVersion request to a byte slice.
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -886,7 +879,7 @@ type RectanglesCookie struct {
// Rectangles sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func Rectangles(c *xgb.Conn, Operation Op, DestinationKind Kind, Ordering byte, DestinationWindow xproto.Window, XOffset int16, YOffset int16, Rectangles []xproto.Rectangle) RectanglesCookie {
func Rectangles(c *xgb.Conn, Operation Op, DestinationKind Kind, Ordering byte, DestinationWindow xproto.Window, XOffset, YOffset int16, Rectangles []xproto.Rectangle) RectanglesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["SHAPE"]; !ok {
@ -898,8 +891,8 @@ func Rectangles(c *xgb.Conn, Operation Op, DestinationKind Kind, Ordering byte,
}
// RectanglesChecked sends a checked request.
// If an error occurs, it can be retrieved using RectanglesCookie.Check()
func RectanglesChecked(c *xgb.Conn, Operation Op, DestinationKind Kind, Ordering byte, DestinationWindow xproto.Window, XOffset int16, YOffset int16, Rectangles []xproto.Rectangle) RectanglesCookie {
// If an error occurs, it can be retrieved using RectanglesCookie.Check.
func RectanglesChecked(c *xgb.Conn, Operation Op, DestinationKind Kind, Ordering byte, DestinationWindow xproto.Window, XOffset, YOffset int16, Rectangles []xproto.Rectangle) RectanglesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["SHAPE"]; !ok {
@ -916,9 +909,8 @@ func (cook RectanglesCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for Rectangles
// rectanglesRequest writes a Rectangles request to a byte slice.
func rectanglesRequest(c *xgb.Conn, Operation Op, DestinationKind Kind, Ordering byte, DestinationWindow xproto.Window, XOffset int16, YOffset int16, Rectangles []xproto.Rectangle) []byte {
// rectanglesRequest writes a Rectangles request to a byte slice for transfer.
func rectanglesRequest(c *xgb.Conn, Operation Op, DestinationKind Kind, Ordering byte, DestinationWindow xproto.Window, XOffset, YOffset int16, Rectangles []xproto.Rectangle) []byte {
size := xgb.Pad((16 + xgb.Pad((len(Rectangles) * 8))))
b := 0
buf := make([]byte, size)
@ -978,7 +970,7 @@ func SelectInput(c *xgb.Conn, DestinationWindow xproto.Window, Enable bool) Sele
}
// SelectInputChecked sends a checked request.
// If an error occurs, it can be retrieved using SelectInputCookie.Check()
// If an error occurs, it can be retrieved using SelectInputCookie.Check.
func SelectInputChecked(c *xgb.Conn, DestinationWindow xproto.Window, Enable bool) SelectInputCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -996,8 +988,7 @@ func (cook SelectInputCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SelectInput
// selectInputRequest writes a SelectInput request to a byte slice.
// selectInputRequest writes a SelectInput request to a byte slice for transfer.
func selectInputRequest(c *xgb.Conn, DestinationWindow xproto.Window, Enable bool) []byte {
size := 12
b := 0

View File

@ -232,7 +232,7 @@ func Attach(c *xgb.Conn, Shmseg Seg, Shmid uint32, ReadOnly bool) AttachCookie {
}
// AttachChecked sends a checked request.
// If an error occurs, it can be retrieved using AttachCookie.Check()
// If an error occurs, it can be retrieved using AttachCookie.Check.
func AttachChecked(c *xgb.Conn, Shmseg Seg, Shmid uint32, ReadOnly bool) AttachCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -250,8 +250,7 @@ func (cook AttachCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for Attach
// attachRequest writes a Attach request to a byte slice.
// attachRequest writes a Attach request to a byte slice for transfer.
func attachRequest(c *xgb.Conn, Shmseg Seg, Shmid uint32, ReadOnly bool) []byte {
size := 16
b := 0
@ -305,7 +304,7 @@ func AttachFd(c *xgb.Conn, Shmseg Seg, ReadOnly bool) AttachFdCookie {
}
// AttachFdChecked sends a checked request.
// If an error occurs, it can be retrieved using AttachFdCookie.Check()
// If an error occurs, it can be retrieved using AttachFdCookie.Check.
func AttachFdChecked(c *xgb.Conn, Shmseg Seg, ReadOnly bool) AttachFdCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -323,8 +322,7 @@ func (cook AttachFdCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for AttachFd
// attachFdRequest writes a AttachFd request to a byte slice.
// attachFdRequest writes a AttachFd request to a byte slice for transfer.
func attachFdRequest(c *xgb.Conn, Shmseg Seg, ReadOnly bool) []byte {
size := 12
b := 0
@ -363,7 +361,7 @@ type CreatePixmapCookie struct {
// CreatePixmap sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreatePixmap(c *xgb.Conn, Pid xproto.Pixmap, Drawable xproto.Drawable, Width uint16, Height uint16, Depth byte, Shmseg Seg, Offset uint32) CreatePixmapCookie {
func CreatePixmap(c *xgb.Conn, Pid xproto.Pixmap, Drawable xproto.Drawable, Width, Height uint16, Depth byte, Shmseg Seg, Offset uint32) CreatePixmapCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["MIT-SHM"]; !ok {
@ -375,8 +373,8 @@ func CreatePixmap(c *xgb.Conn, Pid xproto.Pixmap, Drawable xproto.Drawable, Widt
}
// CreatePixmapChecked sends a checked request.
// If an error occurs, it can be retrieved using CreatePixmapCookie.Check()
func CreatePixmapChecked(c *xgb.Conn, Pid xproto.Pixmap, Drawable xproto.Drawable, Width uint16, Height uint16, Depth byte, Shmseg Seg, Offset uint32) CreatePixmapCookie {
// If an error occurs, it can be retrieved using CreatePixmapCookie.Check.
func CreatePixmapChecked(c *xgb.Conn, Pid xproto.Pixmap, Drawable xproto.Drawable, Width, Height uint16, Depth byte, Shmseg Seg, Offset uint32) CreatePixmapCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["MIT-SHM"]; !ok {
@ -393,9 +391,8 @@ func (cook CreatePixmapCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CreatePixmap
// createPixmapRequest writes a CreatePixmap request to a byte slice.
func createPixmapRequest(c *xgb.Conn, Pid xproto.Pixmap, Drawable xproto.Drawable, Width uint16, Height uint16, Depth byte, Shmseg Seg, Offset uint32) []byte {
// createPixmapRequest writes a CreatePixmap request to a byte slice for transfer.
func createPixmapRequest(c *xgb.Conn, Pid xproto.Pixmap, Drawable xproto.Drawable, Width, Height uint16, Depth byte, Shmseg Seg, Offset uint32) []byte {
size := 28
b := 0
buf := make([]byte, size)
@ -443,7 +440,7 @@ type CreateSegmentCookie struct {
}
// CreateSegment sends a checked request.
// If an error occurs, it will be returned with the reply by calling CreateSegmentCookie.Reply()
// If an error occurs, it will be returned with the reply by calling CreateSegmentCookie.Reply.
func CreateSegment(c *xgb.Conn, Shmseg Seg, Size uint32, ReadOnly bool) CreateSegmentCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -507,8 +504,7 @@ func createSegmentReply(buf []byte) *CreateSegmentReply {
return v
}
// Write request to wire for CreateSegment
// createSegmentRequest writes a CreateSegment request to a byte slice.
// createSegmentRequest writes a CreateSegment request to a byte slice for transfer.
func createSegmentRequest(c *xgb.Conn, Shmseg Seg, Size uint32, ReadOnly bool) []byte {
size := 16
b := 0
@ -562,7 +558,7 @@ func Detach(c *xgb.Conn, Shmseg Seg) DetachCookie {
}
// DetachChecked sends a checked request.
// If an error occurs, it can be retrieved using DetachCookie.Check()
// If an error occurs, it can be retrieved using DetachCookie.Check.
func DetachChecked(c *xgb.Conn, Shmseg Seg) DetachCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -580,8 +576,7 @@ func (cook DetachCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for Detach
// detachRequest writes a Detach request to a byte slice.
// detachRequest writes a Detach request to a byte slice for transfer.
func detachRequest(c *xgb.Conn, Shmseg Seg) []byte {
size := 8
b := 0
@ -610,8 +605,8 @@ type GetImageCookie struct {
}
// GetImage sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetImageCookie.Reply()
func GetImage(c *xgb.Conn, Drawable xproto.Drawable, X int16, Y int16, Width uint16, Height uint16, PlaneMask uint32, Format byte, Shmseg Seg, Offset uint32) GetImageCookie {
// If an error occurs, it will be returned with the reply by calling GetImageCookie.Reply.
func GetImage(c *xgb.Conn, Drawable xproto.Drawable, X, Y int16, Width, Height uint16, PlaneMask uint32, Format byte, Shmseg Seg, Offset uint32) GetImageCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["MIT-SHM"]; !ok {
@ -624,7 +619,7 @@ func GetImage(c *xgb.Conn, Drawable xproto.Drawable, X int16, Y int16, Width uin
// GetImageUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetImageUnchecked(c *xgb.Conn, Drawable xproto.Drawable, X int16, Y int16, Width uint16, Height uint16, PlaneMask uint32, Format byte, Shmseg Seg, Offset uint32) GetImageCookie {
func GetImageUnchecked(c *xgb.Conn, Drawable xproto.Drawable, X, Y int16, Width, Height uint16, PlaneMask uint32, Format byte, Shmseg Seg, Offset uint32) GetImageCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["MIT-SHM"]; !ok {
@ -679,9 +674,8 @@ func getImageReply(buf []byte) *GetImageReply {
return v
}
// Write request to wire for GetImage
// getImageRequest writes a GetImage request to a byte slice.
func getImageRequest(c *xgb.Conn, Drawable xproto.Drawable, X int16, Y int16, Width uint16, Height uint16, PlaneMask uint32, Format byte, Shmseg Seg, Offset uint32) []byte {
// getImageRequest writes a GetImage request to a byte slice for transfer.
func getImageRequest(c *xgb.Conn, Drawable xproto.Drawable, X, Y int16, Width, Height uint16, PlaneMask uint32, Format byte, Shmseg Seg, Offset uint32) []byte {
size := 32
b := 0
buf := make([]byte, size)
@ -736,7 +730,7 @@ type PutImageCookie struct {
// PutImage sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PutImage(c *xgb.Conn, Drawable xproto.Drawable, Gc xproto.Gcontext, TotalWidth uint16, TotalHeight uint16, SrcX uint16, SrcY uint16, SrcWidth uint16, SrcHeight uint16, DstX int16, DstY int16, Depth byte, Format byte, SendEvent byte, Shmseg Seg, Offset uint32) PutImageCookie {
func PutImage(c *xgb.Conn, Drawable xproto.Drawable, Gc xproto.Gcontext, TotalWidth, TotalHeight, SrcX, SrcY, SrcWidth, SrcHeight uint16, DstX, DstY int16, Depth, Format, SendEvent byte, Shmseg Seg, Offset uint32) PutImageCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["MIT-SHM"]; !ok {
@ -748,8 +742,8 @@ func PutImage(c *xgb.Conn, Drawable xproto.Drawable, Gc xproto.Gcontext, TotalWi
}
// PutImageChecked sends a checked request.
// If an error occurs, it can be retrieved using PutImageCookie.Check()
func PutImageChecked(c *xgb.Conn, Drawable xproto.Drawable, Gc xproto.Gcontext, TotalWidth uint16, TotalHeight uint16, SrcX uint16, SrcY uint16, SrcWidth uint16, SrcHeight uint16, DstX int16, DstY int16, Depth byte, Format byte, SendEvent byte, Shmseg Seg, Offset uint32) PutImageCookie {
// If an error occurs, it can be retrieved using PutImageCookie.Check.
func PutImageChecked(c *xgb.Conn, Drawable xproto.Drawable, Gc xproto.Gcontext, TotalWidth, TotalHeight, SrcX, SrcY, SrcWidth, SrcHeight uint16, DstX, DstY int16, Depth, Format, SendEvent byte, Shmseg Seg, Offset uint32) PutImageCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["MIT-SHM"]; !ok {
@ -766,9 +760,8 @@ func (cook PutImageCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for PutImage
// putImageRequest writes a PutImage request to a byte slice.
func putImageRequest(c *xgb.Conn, Drawable xproto.Drawable, Gc xproto.Gcontext, TotalWidth uint16, TotalHeight uint16, SrcX uint16, SrcY uint16, SrcWidth uint16, SrcHeight uint16, DstX int16, DstY int16, Depth byte, Format byte, SendEvent byte, Shmseg Seg, Offset uint32) []byte {
// putImageRequest writes a PutImage request to a byte slice for transfer.
func putImageRequest(c *xgb.Conn, Drawable xproto.Drawable, Gc xproto.Gcontext, TotalWidth, TotalHeight, SrcX, SrcY, SrcWidth, SrcHeight uint16, DstX, DstY int16, Depth, Format, SendEvent byte, Shmseg Seg, Offset uint32) []byte {
size := 40
b := 0
buf := make([]byte, size)
@ -840,7 +833,7 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -928,8 +921,7 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
// Write request to wire for QueryVersion
// queryVersionRequest writes a QueryVersion request to a byte slice.
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn) []byte {
size := 4
b := 0

View File

@ -71,8 +71,8 @@ type GetVersionCookie struct {
}
// GetVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetVersionCookie.Reply()
func GetVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) GetVersionCookie {
// If an error occurs, it will be returned with the reply by calling GetVersionCookie.Reply.
func GetVersion(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) GetVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XC-MISC"]; !ok {
@ -85,7 +85,7 @@ func GetVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint1
// GetVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetVersionUnchecked(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) GetVersionCookie {
func GetVersionUnchecked(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) GetVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XC-MISC"]; !ok {
@ -139,9 +139,8 @@ func getVersionReply(buf []byte) *GetVersionReply {
return v
}
// Write request to wire for GetVersion
// getVersionRequest writes a GetVersion request to a byte slice.
func getVersionRequest(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) []byte {
// getVersionRequest writes a GetVersion request to a byte slice for transfer.
func getVersionRequest(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) []byte {
size := 8
b := 0
buf := make([]byte, size)
@ -172,7 +171,7 @@ type GetXIDListCookie struct {
}
// GetXIDList sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetXIDListCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetXIDListCookie.Reply.
func GetXIDList(c *xgb.Conn, Count uint32) GetXIDListCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -246,8 +245,7 @@ func getXIDListReply(buf []byte) *GetXIDListReply {
return v
}
// Write request to wire for GetXIDList
// getXIDListRequest writes a GetXIDList request to a byte slice.
// getXIDListRequest writes a GetXIDList request to a byte slice for transfer.
func getXIDListRequest(c *xgb.Conn, Count uint32) []byte {
size := 8
b := 0
@ -276,7 +274,7 @@ type GetXIDRangeCookie struct {
}
// GetXIDRange sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetXIDRangeCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetXIDRangeCookie.Reply.
func GetXIDRange(c *xgb.Conn) GetXIDRangeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -344,8 +342,7 @@ func getXIDRangeReply(buf []byte) *GetXIDRangeReply {
return v
}
// Write request to wire for GetXIDRange
// getXIDRangeRequest writes a GetXIDRange request to a byte slice.
// getXIDRangeRequest writes a GetXIDRange request to a byte slice for transfer.
func getXIDRangeRequest(c *xgb.Conn) []byte {
size := 4
b := 0

View File

@ -121,7 +121,7 @@ type EndCookie struct {
}
// End sends a checked request.
// If an error occurs, it will be returned with the reply by calling EndCookie.Reply()
// If an error occurs, it will be returned with the reply by calling EndCookie.Reply.
func End(c *xgb.Conn, Cmap uint32) EndCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -184,8 +184,7 @@ func endReply(buf []byte) *EndReply {
return v
}
// Write request to wire for End
// endRequest writes a End request to a byte slice.
// endRequest writes a End request to a byte slice for transfer.
func endRequest(c *xgb.Conn, Cmap uint32) []byte {
size := 8
b := 0
@ -214,8 +213,8 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) QueryVersionCookie {
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XEVIE"]; !ok {
@ -228,7 +227,7 @@ func QueryVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uin
// QueryVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) QueryVersionCookie {
func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XEVIE"]; !ok {
@ -285,9 +284,8 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
// Write request to wire for QueryVersion
// queryVersionRequest writes a QueryVersion request to a byte slice.
func queryVersionRequest(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) []byte {
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) []byte {
size := 8
b := 0
buf := make([]byte, size)
@ -318,7 +316,7 @@ type SelectInputCookie struct {
}
// SelectInput sends a checked request.
// If an error occurs, it will be returned with the reply by calling SelectInputCookie.Reply()
// If an error occurs, it will be returned with the reply by calling SelectInputCookie.Reply.
func SelectInput(c *xgb.Conn, EventMask uint32) SelectInputCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -381,8 +379,7 @@ func selectInputReply(buf []byte) *SelectInputReply {
return v
}
// Write request to wire for SelectInput
// selectInputRequest writes a SelectInput request to a byte slice.
// selectInputRequest writes a SelectInput request to a byte slice for transfer.
func selectInputRequest(c *xgb.Conn, EventMask uint32) []byte {
size := 8
b := 0
@ -411,7 +408,7 @@ type SendCookie struct {
}
// Send sends a checked request.
// If an error occurs, it will be returned with the reply by calling SendCookie.Reply()
// If an error occurs, it will be returned with the reply by calling SendCookie.Reply.
func Send(c *xgb.Conn, Event Event, DataType uint32) SendCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -474,8 +471,7 @@ func sendReply(buf []byte) *SendReply {
return v
}
// Write request to wire for Send
// sendRequest writes a Send request to a byte slice.
// sendRequest writes a Send request to a byte slice for transfer.
func sendRequest(c *xgb.Conn, Event Event, DataType uint32) []byte {
size := 104
b := 0
@ -512,7 +508,7 @@ type StartCookie struct {
}
// Start sends a checked request.
// If an error occurs, it will be returned with the reply by calling StartCookie.Reply()
// If an error occurs, it will be returned with the reply by calling StartCookie.Reply.
func Start(c *xgb.Conn, Screen uint32) StartCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -575,8 +571,7 @@ func startReply(buf []byte) *StartReply {
return v
}
// Write request to wire for Start
// startRequest writes a Start request to a byte slice.
// startRequest writes a Start request to a byte slice for transfer.
func startRequest(c *xgb.Conn, Screen uint32) []byte {
size := 8
b := 0

View File

@ -139,8 +139,8 @@ type AuthConnectionCookie struct {
}
// AuthConnection sends a checked request.
// If an error occurs, it will be returned with the reply by calling AuthConnectionCookie.Reply()
func AuthConnection(c *xgb.Conn, Screen uint32, Magic uint32) AuthConnectionCookie {
// If an error occurs, it will be returned with the reply by calling AuthConnectionCookie.Reply.
func AuthConnection(c *xgb.Conn, Screen, Magic uint32) AuthConnectionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@ -153,7 +153,7 @@ func AuthConnection(c *xgb.Conn, Screen uint32, Magic uint32) AuthConnectionCook
// AuthConnectionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func AuthConnectionUnchecked(c *xgb.Conn, Screen uint32, Magic uint32) AuthConnectionCookie {
func AuthConnectionUnchecked(c *xgb.Conn, Screen, Magic uint32) AuthConnectionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@ -203,9 +203,8 @@ func authConnectionReply(buf []byte) *AuthConnectionReply {
return v
}
// Write request to wire for AuthConnection
// authConnectionRequest writes a AuthConnection request to a byte slice.
func authConnectionRequest(c *xgb.Conn, Screen uint32, Magic uint32) []byte {
// authConnectionRequest writes a AuthConnection request to a byte slice for transfer.
func authConnectionRequest(c *xgb.Conn, Screen, Magic uint32) []byte {
size := 12
b := 0
buf := make([]byte, size)
@ -249,7 +248,7 @@ func CloseConnection(c *xgb.Conn, Screen uint32) CloseConnectionCookie {
}
// CloseConnectionChecked sends a checked request.
// If an error occurs, it can be retrieved using CloseConnectionCookie.Check()
// If an error occurs, it can be retrieved using CloseConnectionCookie.Check.
func CloseConnectionChecked(c *xgb.Conn, Screen uint32) CloseConnectionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -267,8 +266,7 @@ func (cook CloseConnectionCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CloseConnection
// closeConnectionRequest writes a CloseConnection request to a byte slice.
// closeConnectionRequest writes a CloseConnection request to a byte slice for transfer.
func closeConnectionRequest(c *xgb.Conn, Screen uint32) []byte {
size := 8
b := 0
@ -297,8 +295,8 @@ type CreateContextCookie struct {
}
// CreateContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling CreateContextCookie.Reply()
func CreateContext(c *xgb.Conn, Screen uint32, Visual uint32, Context uint32) CreateContextCookie {
// If an error occurs, it will be returned with the reply by calling CreateContextCookie.Reply.
func CreateContext(c *xgb.Conn, Screen, Visual, Context uint32) CreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@ -311,7 +309,7 @@ func CreateContext(c *xgb.Conn, Screen uint32, Visual uint32, Context uint32) Cr
// CreateContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateContextUnchecked(c *xgb.Conn, Screen uint32, Visual uint32, Context uint32) CreateContextCookie {
func CreateContextUnchecked(c *xgb.Conn, Screen, Visual, Context uint32) CreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@ -361,9 +359,8 @@ func createContextReply(buf []byte) *CreateContextReply {
return v
}
// Write request to wire for CreateContext
// createContextRequest writes a CreateContext request to a byte slice.
func createContextRequest(c *xgb.Conn, Screen uint32, Visual uint32, Context uint32) []byte {
// createContextRequest writes a CreateContext request to a byte slice for transfer.
func createContextRequest(c *xgb.Conn, Screen, Visual, Context uint32) []byte {
size := 16
b := 0
buf := make([]byte, size)
@ -397,8 +394,8 @@ type CreateDrawableCookie struct {
}
// CreateDrawable sends a checked request.
// If an error occurs, it will be returned with the reply by calling CreateDrawableCookie.Reply()
func CreateDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) CreateDrawableCookie {
// If an error occurs, it will be returned with the reply by calling CreateDrawableCookie.Reply.
func CreateDrawable(c *xgb.Conn, Screen, Drawable uint32) CreateDrawableCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@ -411,7 +408,7 @@ func CreateDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) CreateDrawableC
// CreateDrawableUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateDrawableUnchecked(c *xgb.Conn, Screen uint32, Drawable uint32) CreateDrawableCookie {
func CreateDrawableUnchecked(c *xgb.Conn, Screen, Drawable uint32) CreateDrawableCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@ -461,9 +458,8 @@ func createDrawableReply(buf []byte) *CreateDrawableReply {
return v
}
// Write request to wire for CreateDrawable
// createDrawableRequest writes a CreateDrawable request to a byte slice.
func createDrawableRequest(c *xgb.Conn, Screen uint32, Drawable uint32) []byte {
// createDrawableRequest writes a CreateDrawable request to a byte slice for transfer.
func createDrawableRequest(c *xgb.Conn, Screen, Drawable uint32) []byte {
size := 12
b := 0
buf := make([]byte, size)
@ -495,7 +491,7 @@ type DestroyContextCookie struct {
// DestroyContext sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DestroyContext(c *xgb.Conn, Screen uint32, Context uint32) DestroyContextCookie {
func DestroyContext(c *xgb.Conn, Screen, Context uint32) DestroyContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@ -507,8 +503,8 @@ func DestroyContext(c *xgb.Conn, Screen uint32, Context uint32) DestroyContextCo
}
// DestroyContextChecked sends a checked request.
// If an error occurs, it can be retrieved using DestroyContextCookie.Check()
func DestroyContextChecked(c *xgb.Conn, Screen uint32, Context uint32) DestroyContextCookie {
// If an error occurs, it can be retrieved using DestroyContextCookie.Check.
func DestroyContextChecked(c *xgb.Conn, Screen, Context uint32) DestroyContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@ -525,9 +521,8 @@ func (cook DestroyContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for DestroyContext
// destroyContextRequest writes a DestroyContext request to a byte slice.
func destroyContextRequest(c *xgb.Conn, Screen uint32, Context uint32) []byte {
// destroyContextRequest writes a DestroyContext request to a byte slice for transfer.
func destroyContextRequest(c *xgb.Conn, Screen, Context uint32) []byte {
size := 12
b := 0
buf := make([]byte, size)
@ -559,7 +554,7 @@ type DestroyDrawableCookie struct {
// DestroyDrawable sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DestroyDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) DestroyDrawableCookie {
func DestroyDrawable(c *xgb.Conn, Screen, Drawable uint32) DestroyDrawableCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@ -571,8 +566,8 @@ func DestroyDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) DestroyDrawabl
}
// DestroyDrawableChecked sends a checked request.
// If an error occurs, it can be retrieved using DestroyDrawableCookie.Check()
func DestroyDrawableChecked(c *xgb.Conn, Screen uint32, Drawable uint32) DestroyDrawableCookie {
// If an error occurs, it can be retrieved using DestroyDrawableCookie.Check.
func DestroyDrawableChecked(c *xgb.Conn, Screen, Drawable uint32) DestroyDrawableCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@ -589,9 +584,8 @@ func (cook DestroyDrawableCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for DestroyDrawable
// destroyDrawableRequest writes a DestroyDrawable request to a byte slice.
func destroyDrawableRequest(c *xgb.Conn, Screen uint32, Drawable uint32) []byte {
// destroyDrawableRequest writes a DestroyDrawable request to a byte slice for transfer.
func destroyDrawableRequest(c *xgb.Conn, Screen, Drawable uint32) []byte {
size := 12
b := 0
buf := make([]byte, size)
@ -622,7 +616,7 @@ type GetClientDriverNameCookie struct {
}
// GetClientDriverName sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetClientDriverNameCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetClientDriverNameCookie.Reply.
func GetClientDriverName(c *xgb.Conn, Screen uint32) GetClientDriverNameCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -709,8 +703,7 @@ func getClientDriverNameReply(buf []byte) *GetClientDriverNameReply {
return v
}
// Write request to wire for GetClientDriverName
// getClientDriverNameRequest writes a GetClientDriverName request to a byte slice.
// getClientDriverNameRequest writes a GetClientDriverName request to a byte slice for transfer.
func getClientDriverNameRequest(c *xgb.Conn, Screen uint32) []byte {
size := 8
b := 0
@ -739,7 +732,7 @@ type GetDeviceInfoCookie struct {
}
// GetDeviceInfo sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetDeviceInfoCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetDeviceInfoCookie.Reply.
func GetDeviceInfo(c *xgb.Conn, Screen uint32) GetDeviceInfoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -830,8 +823,7 @@ func getDeviceInfoReply(buf []byte) *GetDeviceInfoReply {
return v
}
// Write request to wire for GetDeviceInfo
// getDeviceInfoRequest writes a GetDeviceInfo request to a byte slice.
// getDeviceInfoRequest writes a GetDeviceInfo request to a byte slice for transfer.
func getDeviceInfoRequest(c *xgb.Conn, Screen uint32) []byte {
size := 8
b := 0
@ -860,8 +852,8 @@ type GetDrawableInfoCookie struct {
}
// GetDrawableInfo sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetDrawableInfoCookie.Reply()
func GetDrawableInfo(c *xgb.Conn, Screen uint32, Drawable uint32) GetDrawableInfoCookie {
// If an error occurs, it will be returned with the reply by calling GetDrawableInfoCookie.Reply.
func GetDrawableInfo(c *xgb.Conn, Screen, Drawable uint32) GetDrawableInfoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@ -874,7 +866,7 @@ func GetDrawableInfo(c *xgb.Conn, Screen uint32, Drawable uint32) GetDrawableInf
// GetDrawableInfoUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetDrawableInfoUnchecked(c *xgb.Conn, Screen uint32, Drawable uint32) GetDrawableInfoCookie {
func GetDrawableInfoUnchecked(c *xgb.Conn, Screen, Drawable uint32) GetDrawableInfoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@ -968,9 +960,8 @@ func getDrawableInfoReply(buf []byte) *GetDrawableInfoReply {
return v
}
// Write request to wire for GetDrawableInfo
// getDrawableInfoRequest writes a GetDrawableInfo request to a byte slice.
func getDrawableInfoRequest(c *xgb.Conn, Screen uint32, Drawable uint32) []byte {
// getDrawableInfoRequest writes a GetDrawableInfo request to a byte slice for transfer.
func getDrawableInfoRequest(c *xgb.Conn, Screen, Drawable uint32) []byte {
size := 12
b := 0
buf := make([]byte, size)
@ -1001,7 +992,7 @@ type OpenConnectionCookie struct {
}
// OpenConnection sends a checked request.
// If an error occurs, it will be returned with the reply by calling OpenConnectionCookie.Reply()
// If an error occurs, it will be returned with the reply by calling OpenConnectionCookie.Reply.
func OpenConnection(c *xgb.Conn, Screen uint32) OpenConnectionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1084,8 +1075,7 @@ func openConnectionReply(buf []byte) *OpenConnectionReply {
return v
}
// Write request to wire for OpenConnection
// openConnectionRequest writes a OpenConnection request to a byte slice.
// openConnectionRequest writes a OpenConnection request to a byte slice for transfer.
func openConnectionRequest(c *xgb.Conn, Screen uint32) []byte {
size := 8
b := 0
@ -1114,7 +1104,7 @@ type QueryDirectRenderingCapableCookie struct {
}
// QueryDirectRenderingCapable sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryDirectRenderingCapableCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryDirectRenderingCapableCookie.Reply.
func QueryDirectRenderingCapable(c *xgb.Conn, Screen uint32) QueryDirectRenderingCapableCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1182,8 +1172,7 @@ func queryDirectRenderingCapableReply(buf []byte) *QueryDirectRenderingCapableRe
return v
}
// Write request to wire for QueryDirectRenderingCapable
// queryDirectRenderingCapableRequest writes a QueryDirectRenderingCapable request to a byte slice.
// queryDirectRenderingCapableRequest writes a QueryDirectRenderingCapable request to a byte slice for transfer.
func queryDirectRenderingCapableRequest(c *xgb.Conn, Screen uint32) []byte {
size := 8
b := 0
@ -1212,7 +1201,7 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1284,8 +1273,7 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
// Write request to wire for QueryVersion
// queryVersionRequest writes a QueryVersion request to a byte slice.
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn) []byte {
size := 4
b := 0

View File

@ -557,7 +557,7 @@ type AddModeLineCookie struct {
// AddModeLine sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func AddModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, AfterDotclock Dotclock, AfterHdisplay uint16, AfterHsyncstart uint16, AfterHsyncend uint16, AfterHtotal uint16, AfterHskew uint16, AfterVdisplay uint16, AfterVsyncstart uint16, AfterVsyncend uint16, AfterVtotal uint16, AfterFlags uint32, Private []byte) AddModeLineCookie {
func AddModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal uint16, Flags, Privsize uint32, AfterDotclock Dotclock, AfterHdisplay, AfterHsyncstart, AfterHsyncend, AfterHtotal, AfterHskew, AfterVdisplay, AfterVsyncstart, AfterVsyncend, AfterVtotal uint16, AfterFlags uint32, Private []byte) AddModeLineCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -569,8 +569,8 @@ func AddModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16,
}
// AddModeLineChecked sends a checked request.
// If an error occurs, it can be retrieved using AddModeLineCookie.Check()
func AddModeLineChecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, AfterDotclock Dotclock, AfterHdisplay uint16, AfterHsyncstart uint16, AfterHsyncend uint16, AfterHtotal uint16, AfterHskew uint16, AfterVdisplay uint16, AfterVsyncstart uint16, AfterVsyncend uint16, AfterVtotal uint16, AfterFlags uint32, Private []byte) AddModeLineCookie {
// If an error occurs, it can be retrieved using AddModeLineCookie.Check.
func AddModeLineChecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal uint16, Flags, Privsize uint32, AfterDotclock Dotclock, AfterHdisplay, AfterHsyncstart, AfterHsyncend, AfterHtotal, AfterHskew, AfterVdisplay, AfterVsyncstart, AfterVsyncend, AfterVtotal uint16, AfterFlags uint32, Private []byte) AddModeLineCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -587,9 +587,8 @@ func (cook AddModeLineCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for AddModeLine
// addModeLineRequest writes a AddModeLine request to a byte slice.
func addModeLineRequest(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, AfterDotclock Dotclock, AfterHdisplay uint16, AfterHsyncstart uint16, AfterHsyncend uint16, AfterHtotal uint16, AfterHskew uint16, AfterVdisplay uint16, AfterVsyncstart uint16, AfterVsyncend uint16, AfterVtotal uint16, AfterFlags uint32, Private []byte) []byte {
// addModeLineRequest writes a AddModeLine request to a byte slice for transfer.
func addModeLineRequest(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal uint16, Flags, Privsize uint32, AfterDotclock Dotclock, AfterHdisplay, AfterHsyncstart, AfterHsyncend, AfterHtotal, AfterHskew, AfterVdisplay, AfterVsyncstart, AfterVsyncend, AfterVtotal uint16, AfterFlags uint32, Private []byte) []byte {
size := xgb.Pad((92 + xgb.Pad((int(Privsize) * 1))))
b := 0
buf := make([]byte, size)
@ -698,7 +697,7 @@ type DeleteModeLineCookie struct {
// DeleteModeLine sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DeleteModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) DeleteModeLineCookie {
func DeleteModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal uint16, Flags, Privsize uint32, Private []byte) DeleteModeLineCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -710,8 +709,8 @@ func DeleteModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint
}
// DeleteModeLineChecked sends a checked request.
// If an error occurs, it can be retrieved using DeleteModeLineCookie.Check()
func DeleteModeLineChecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) DeleteModeLineCookie {
// If an error occurs, it can be retrieved using DeleteModeLineCookie.Check.
func DeleteModeLineChecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal uint16, Flags, Privsize uint32, Private []byte) DeleteModeLineCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -728,9 +727,8 @@ func (cook DeleteModeLineCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for DeleteModeLine
// deleteModeLineRequest writes a DeleteModeLine request to a byte slice.
func deleteModeLineRequest(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) []byte {
// deleteModeLineRequest writes a DeleteModeLine request to a byte slice for transfer.
func deleteModeLineRequest(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal uint16, Flags, Privsize uint32, Private []byte) []byte {
size := xgb.Pad((52 + xgb.Pad((int(Privsize) * 1))))
b := 0
buf := make([]byte, size)
@ -801,7 +799,7 @@ type GetAllModeLinesCookie struct {
}
// GetAllModeLines sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetAllModeLinesCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetAllModeLinesCookie.Reply.
func GetAllModeLines(c *xgb.Conn, Screen uint16) GetAllModeLinesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -872,8 +870,7 @@ func getAllModeLinesReply(buf []byte) *GetAllModeLinesReply {
return v
}
// Write request to wire for GetAllModeLines
// getAllModeLinesRequest writes a GetAllModeLines request to a byte slice.
// getAllModeLinesRequest writes a GetAllModeLines request to a byte slice for transfer.
func getAllModeLinesRequest(c *xgb.Conn, Screen uint16) []byte {
size := 8
b := 0
@ -904,7 +901,7 @@ type GetDotClocksCookie struct {
}
// GetDotClocks sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetDotClocksCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetDotClocksCookie.Reply.
func GetDotClocks(c *xgb.Conn, Screen uint16) GetDotClocksCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -986,8 +983,7 @@ func getDotClocksReply(buf []byte) *GetDotClocksReply {
return v
}
// Write request to wire for GetDotClocks
// getDotClocksRequest writes a GetDotClocks request to a byte slice.
// getDotClocksRequest writes a GetDotClocks request to a byte slice for transfer.
func getDotClocksRequest(c *xgb.Conn, Screen uint16) []byte {
size := 8
b := 0
@ -1018,7 +1014,7 @@ type GetGammaCookie struct {
}
// GetGamma sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetGammaCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetGammaCookie.Reply.
func GetGamma(c *xgb.Conn, Screen uint16) GetGammaCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1093,8 +1089,7 @@ func getGammaReply(buf []byte) *GetGammaReply {
return v
}
// Write request to wire for GetGamma
// getGammaRequest writes a GetGamma request to a byte slice.
// getGammaRequest writes a GetGamma request to a byte slice for transfer.
func getGammaRequest(c *xgb.Conn, Screen uint16) []byte {
size := 32
b := 0
@ -1125,8 +1120,8 @@ type GetGammaRampCookie struct {
}
// GetGammaRamp sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetGammaRampCookie.Reply()
func GetGammaRamp(c *xgb.Conn, Screen uint16, Size uint16) GetGammaRampCookie {
// If an error occurs, it will be returned with the reply by calling GetGammaRampCookie.Reply.
func GetGammaRamp(c *xgb.Conn, Screen, Size uint16) GetGammaRampCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -1139,7 +1134,7 @@ func GetGammaRamp(c *xgb.Conn, Screen uint16, Size uint16) GetGammaRampCookie {
// GetGammaRampUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetGammaRampUnchecked(c *xgb.Conn, Screen uint16, Size uint16) GetGammaRampCookie {
func GetGammaRampUnchecked(c *xgb.Conn, Screen, Size uint16) GetGammaRampCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -1213,9 +1208,8 @@ func getGammaRampReply(buf []byte) *GetGammaRampReply {
return v
}
// Write request to wire for GetGammaRamp
// getGammaRampRequest writes a GetGammaRamp request to a byte slice.
func getGammaRampRequest(c *xgb.Conn, Screen uint16, Size uint16) []byte {
// getGammaRampRequest writes a GetGammaRamp request to a byte slice for transfer.
func getGammaRampRequest(c *xgb.Conn, Screen, Size uint16) []byte {
size := 8
b := 0
buf := make([]byte, size)
@ -1246,7 +1240,7 @@ type GetGammaRampSizeCookie struct {
}
// GetGammaRampSize sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetGammaRampSizeCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetGammaRampSizeCookie.Reply.
func GetGammaRampSize(c *xgb.Conn, Screen uint16) GetGammaRampSizeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1313,8 +1307,7 @@ func getGammaRampSizeReply(buf []byte) *GetGammaRampSizeReply {
return v
}
// Write request to wire for GetGammaRampSize
// getGammaRampSizeRequest writes a GetGammaRampSize request to a byte slice.
// getGammaRampSizeRequest writes a GetGammaRampSize request to a byte slice for transfer.
func getGammaRampSizeRequest(c *xgb.Conn, Screen uint16) []byte {
size := 8
b := 0
@ -1345,7 +1338,7 @@ type GetModeLineCookie struct {
}
// GetModeLine sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetModeLineCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetModeLineCookie.Reply.
func GetModeLine(c *xgb.Conn, Screen uint16) GetModeLineCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1464,8 +1457,7 @@ func getModeLineReply(buf []byte) *GetModeLineReply {
return v
}
// Write request to wire for GetModeLine
// getModeLineRequest writes a GetModeLine request to a byte slice.
// getModeLineRequest writes a GetModeLine request to a byte slice for transfer.
func getModeLineRequest(c *xgb.Conn, Screen uint16) []byte {
size := 8
b := 0
@ -1496,7 +1488,7 @@ type GetMonitorCookie struct {
}
// GetMonitor sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetMonitorCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetMonitorCookie.Reply.
func GetMonitor(c *xgb.Conn, Screen uint16) GetMonitorCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1610,8 +1602,7 @@ func getMonitorReply(buf []byte) *GetMonitorReply {
return v
}
// Write request to wire for GetMonitor
// getMonitorRequest writes a GetMonitor request to a byte slice.
// getMonitorRequest writes a GetMonitor request to a byte slice for transfer.
func getMonitorRequest(c *xgb.Conn, Screen uint16) []byte {
size := 8
b := 0
@ -1642,7 +1633,7 @@ type GetPermissionsCookie struct {
}
// GetPermissions sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetPermissionsCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetPermissionsCookie.Reply.
func GetPermissions(c *xgb.Conn, Screen uint16) GetPermissionsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1709,8 +1700,7 @@ func getPermissionsReply(buf []byte) *GetPermissionsReply {
return v
}
// Write request to wire for GetPermissions
// getPermissionsRequest writes a GetPermissions request to a byte slice.
// getPermissionsRequest writes a GetPermissions request to a byte slice for transfer.
func getPermissionsRequest(c *xgb.Conn, Screen uint16) []byte {
size := 8
b := 0
@ -1741,7 +1731,7 @@ type GetViewPortCookie struct {
}
// GetViewPort sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetViewPortCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetViewPortCookie.Reply.
func GetViewPort(c *xgb.Conn, Screen uint16) GetViewPortCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1812,8 +1802,7 @@ func getViewPortReply(buf []byte) *GetViewPortReply {
return v
}
// Write request to wire for GetViewPort
// getViewPortRequest writes a GetViewPort request to a byte slice.
// getViewPortRequest writes a GetViewPort request to a byte slice for transfer.
func getViewPortRequest(c *xgb.Conn, Screen uint16) []byte {
size := 8
b := 0
@ -1845,7 +1834,7 @@ type LockModeSwitchCookie struct {
// LockModeSwitch sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func LockModeSwitch(c *xgb.Conn, Screen uint16, Lock uint16) LockModeSwitchCookie {
func LockModeSwitch(c *xgb.Conn, Screen, Lock uint16) LockModeSwitchCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -1857,8 +1846,8 @@ func LockModeSwitch(c *xgb.Conn, Screen uint16, Lock uint16) LockModeSwitchCooki
}
// LockModeSwitchChecked sends a checked request.
// If an error occurs, it can be retrieved using LockModeSwitchCookie.Check()
func LockModeSwitchChecked(c *xgb.Conn, Screen uint16, Lock uint16) LockModeSwitchCookie {
// If an error occurs, it can be retrieved using LockModeSwitchCookie.Check.
func LockModeSwitchChecked(c *xgb.Conn, Screen, Lock uint16) LockModeSwitchCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -1875,9 +1864,8 @@ func (cook LockModeSwitchCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for LockModeSwitch
// lockModeSwitchRequest writes a LockModeSwitch request to a byte slice.
func lockModeSwitchRequest(c *xgb.Conn, Screen uint16, Lock uint16) []byte {
// lockModeSwitchRequest writes a LockModeSwitch request to a byte slice for transfer.
func lockModeSwitchRequest(c *xgb.Conn, Screen, Lock uint16) []byte {
size := 8
b := 0
buf := make([]byte, size)
@ -1909,7 +1897,7 @@ type ModModeLineCookie struct {
// ModModeLine sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ModModeLine(c *xgb.Conn, Screen uint32, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) ModModeLineCookie {
func ModModeLine(c *xgb.Conn, Screen uint32, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal uint16, Flags, Privsize uint32, Private []byte) ModModeLineCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -1921,8 +1909,8 @@ func ModModeLine(c *xgb.Conn, Screen uint32, Hdisplay uint16, Hsyncstart uint16,
}
// ModModeLineChecked sends a checked request.
// If an error occurs, it can be retrieved using ModModeLineCookie.Check()
func ModModeLineChecked(c *xgb.Conn, Screen uint32, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) ModModeLineCookie {
// If an error occurs, it can be retrieved using ModModeLineCookie.Check.
func ModModeLineChecked(c *xgb.Conn, Screen uint32, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal uint16, Flags, Privsize uint32, Private []byte) ModModeLineCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -1939,9 +1927,8 @@ func (cook ModModeLineCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for ModModeLine
// modModeLineRequest writes a ModModeLine request to a byte slice.
func modModeLineRequest(c *xgb.Conn, Screen uint32, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) []byte {
// modModeLineRequest writes a ModModeLine request to a byte slice for transfer.
func modModeLineRequest(c *xgb.Conn, Screen uint32, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal uint16, Flags, Privsize uint32, Private []byte) []byte {
size := xgb.Pad((48 + xgb.Pad((int(Privsize) * 1))))
b := 0
buf := make([]byte, size)
@ -2009,7 +1996,7 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2077,8 +2064,7 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
// Write request to wire for QueryVersion
// queryVersionRequest writes a QueryVersion request to a byte slice.
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -2105,7 +2091,7 @@ type SetClientVersionCookie struct {
// SetClientVersion sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetClientVersion(c *xgb.Conn, Major uint16, Minor uint16) SetClientVersionCookie {
func SetClientVersion(c *xgb.Conn, Major, Minor uint16) SetClientVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -2117,8 +2103,8 @@ func SetClientVersion(c *xgb.Conn, Major uint16, Minor uint16) SetClientVersionC
}
// SetClientVersionChecked sends a checked request.
// If an error occurs, it can be retrieved using SetClientVersionCookie.Check()
func SetClientVersionChecked(c *xgb.Conn, Major uint16, Minor uint16) SetClientVersionCookie {
// If an error occurs, it can be retrieved using SetClientVersionCookie.Check.
func SetClientVersionChecked(c *xgb.Conn, Major, Minor uint16) SetClientVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -2135,9 +2121,8 @@ func (cook SetClientVersionCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetClientVersion
// setClientVersionRequest writes a SetClientVersion request to a byte slice.
func setClientVersionRequest(c *xgb.Conn, Major uint16, Minor uint16) []byte {
// setClientVersionRequest writes a SetClientVersion request to a byte slice for transfer.
func setClientVersionRequest(c *xgb.Conn, Major, Minor uint16) []byte {
size := 8
b := 0
buf := make([]byte, size)
@ -2169,7 +2154,7 @@ type SetGammaCookie struct {
// SetGamma sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetGamma(c *xgb.Conn, Screen uint16, Red uint32, Green uint32, Blue uint32) SetGammaCookie {
func SetGamma(c *xgb.Conn, Screen uint16, Red, Green, Blue uint32) SetGammaCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -2181,8 +2166,8 @@ func SetGamma(c *xgb.Conn, Screen uint16, Red uint32, Green uint32, Blue uint32)
}
// SetGammaChecked sends a checked request.
// If an error occurs, it can be retrieved using SetGammaCookie.Check()
func SetGammaChecked(c *xgb.Conn, Screen uint16, Red uint32, Green uint32, Blue uint32) SetGammaCookie {
// If an error occurs, it can be retrieved using SetGammaCookie.Check.
func SetGammaChecked(c *xgb.Conn, Screen uint16, Red, Green, Blue uint32) SetGammaCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -2199,9 +2184,8 @@ func (cook SetGammaCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetGamma
// setGammaRequest writes a SetGamma request to a byte slice.
func setGammaRequest(c *xgb.Conn, Screen uint16, Red uint32, Green uint32, Blue uint32) []byte {
// setGammaRequest writes a SetGamma request to a byte slice for transfer.
func setGammaRequest(c *xgb.Conn, Screen uint16, Red, Green, Blue uint32) []byte {
size := 32
b := 0
buf := make([]byte, size)
@ -2243,7 +2227,7 @@ type SetGammaRampCookie struct {
// SetGammaRamp sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetGammaRamp(c *xgb.Conn, Screen uint16, Size uint16, Red []uint16, Green []uint16, Blue []uint16) SetGammaRampCookie {
func SetGammaRamp(c *xgb.Conn, Screen, Size uint16, Red, Green, Blue []uint16) SetGammaRampCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -2255,8 +2239,8 @@ func SetGammaRamp(c *xgb.Conn, Screen uint16, Size uint16, Red []uint16, Green [
}
// SetGammaRampChecked sends a checked request.
// If an error occurs, it can be retrieved using SetGammaRampCookie.Check()
func SetGammaRampChecked(c *xgb.Conn, Screen uint16, Size uint16, Red []uint16, Green []uint16, Blue []uint16) SetGammaRampCookie {
// If an error occurs, it can be retrieved using SetGammaRampCookie.Check.
func SetGammaRampChecked(c *xgb.Conn, Screen, Size uint16, Red, Green, Blue []uint16) SetGammaRampCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -2273,9 +2257,8 @@ func (cook SetGammaRampCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetGammaRamp
// setGammaRampRequest writes a SetGammaRamp request to a byte slice.
func setGammaRampRequest(c *xgb.Conn, Screen uint16, Size uint16, Red []uint16, Green []uint16, Blue []uint16) []byte {
// setGammaRampRequest writes a SetGammaRamp request to a byte slice for transfer.
func setGammaRampRequest(c *xgb.Conn, Screen, Size uint16, Red, Green, Blue []uint16) []byte {
size := xgb.Pad((((8 + xgb.Pad((((int(Size) + 1) & -2) * 2))) + xgb.Pad((((int(Size) + 1) & -2) * 2))) + xgb.Pad((((int(Size) + 1) & -2) * 2))))
b := 0
buf := make([]byte, size)
@ -2322,7 +2305,7 @@ type SetViewPortCookie struct {
// SetViewPort sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetViewPort(c *xgb.Conn, Screen uint16, X uint32, Y uint32) SetViewPortCookie {
func SetViewPort(c *xgb.Conn, Screen uint16, X, Y uint32) SetViewPortCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -2334,8 +2317,8 @@ func SetViewPort(c *xgb.Conn, Screen uint16, X uint32, Y uint32) SetViewPortCook
}
// SetViewPortChecked sends a checked request.
// If an error occurs, it can be retrieved using SetViewPortCookie.Check()
func SetViewPortChecked(c *xgb.Conn, Screen uint16, X uint32, Y uint32) SetViewPortCookie {
// If an error occurs, it can be retrieved using SetViewPortCookie.Check.
func SetViewPortChecked(c *xgb.Conn, Screen uint16, X, Y uint32) SetViewPortCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -2352,9 +2335,8 @@ func (cook SetViewPortCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetViewPort
// setViewPortRequest writes a SetViewPort request to a byte slice.
func setViewPortRequest(c *xgb.Conn, Screen uint16, X uint32, Y uint32) []byte {
// setViewPortRequest writes a SetViewPort request to a byte slice for transfer.
func setViewPortRequest(c *xgb.Conn, Screen uint16, X, Y uint32) []byte {
size := 16
b := 0
buf := make([]byte, size)
@ -2391,7 +2373,7 @@ type SwitchModeCookie struct {
// SwitchMode sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SwitchMode(c *xgb.Conn, Screen uint16, Zoom uint16) SwitchModeCookie {
func SwitchMode(c *xgb.Conn, Screen, Zoom uint16) SwitchModeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -2403,8 +2385,8 @@ func SwitchMode(c *xgb.Conn, Screen uint16, Zoom uint16) SwitchModeCookie {
}
// SwitchModeChecked sends a checked request.
// If an error occurs, it can be retrieved using SwitchModeCookie.Check()
func SwitchModeChecked(c *xgb.Conn, Screen uint16, Zoom uint16) SwitchModeCookie {
// If an error occurs, it can be retrieved using SwitchModeCookie.Check.
func SwitchModeChecked(c *xgb.Conn, Screen, Zoom uint16) SwitchModeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -2421,9 +2403,8 @@ func (cook SwitchModeCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SwitchMode
// switchModeRequest writes a SwitchMode request to a byte slice.
func switchModeRequest(c *xgb.Conn, Screen uint16, Zoom uint16) []byte {
// switchModeRequest writes a SwitchMode request to a byte slice for transfer.
func switchModeRequest(c *xgb.Conn, Screen, Zoom uint16) []byte {
size := 8
b := 0
buf := make([]byte, size)
@ -2455,7 +2436,7 @@ type SwitchToModeCookie struct {
// SwitchToMode sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SwitchToMode(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) SwitchToModeCookie {
func SwitchToMode(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal uint16, Flags, Privsize uint32, Private []byte) SwitchToModeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -2467,8 +2448,8 @@ func SwitchToMode(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16
}
// SwitchToModeChecked sends a checked request.
// If an error occurs, it can be retrieved using SwitchToModeCookie.Check()
func SwitchToModeChecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) SwitchToModeCookie {
// If an error occurs, it can be retrieved using SwitchToModeCookie.Check.
func SwitchToModeChecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal uint16, Flags, Privsize uint32, Private []byte) SwitchToModeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -2485,9 +2466,8 @@ func (cook SwitchToModeCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SwitchToMode
// switchToModeRequest writes a SwitchToMode request to a byte slice.
func switchToModeRequest(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) []byte {
// switchToModeRequest writes a SwitchToMode request to a byte slice for transfer.
func switchToModeRequest(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal uint16, Flags, Privsize uint32, Private []byte) []byte {
size := xgb.Pad((52 + xgb.Pad((int(Privsize) * 1))))
b := 0
buf := make([]byte, size)
@ -2558,8 +2538,8 @@ type ValidateModeLineCookie struct {
}
// ValidateModeLine sends a checked request.
// If an error occurs, it will be returned with the reply by calling ValidateModeLineCookie.Reply()
func ValidateModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) ValidateModeLineCookie {
// If an error occurs, it will be returned with the reply by calling ValidateModeLineCookie.Reply.
func ValidateModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal uint16, Flags, Privsize uint32, Private []byte) ValidateModeLineCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -2572,7 +2552,7 @@ func ValidateModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay ui
// ValidateModeLineUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ValidateModeLineUnchecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) ValidateModeLineCookie {
func ValidateModeLineUnchecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal uint16, Flags, Privsize uint32, Private []byte) ValidateModeLineCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
@ -2625,9 +2605,8 @@ func validateModeLineReply(buf []byte) *ValidateModeLineReply {
return v
}
// Write request to wire for ValidateModeLine
// validateModeLineRequest writes a ValidateModeLine request to a byte slice.
func validateModeLineRequest(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) []byte {
// validateModeLineRequest writes a ValidateModeLine request to a byte slice for transfer.
func validateModeLineRequest(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal uint16, Flags, Privsize uint32, Private []byte) []byte {
size := xgb.Pad((52 + xgb.Pad((int(Privsize) * 1))))
b := 0
buf := make([]byte, size)

View File

@ -384,7 +384,7 @@ type ChangeCursorCookie struct {
// ChangeCursor sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ChangeCursor(c *xgb.Conn, Source xproto.Cursor, Destination xproto.Cursor) ChangeCursorCookie {
func ChangeCursor(c *xgb.Conn, Source, Destination xproto.Cursor) ChangeCursorCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -396,8 +396,8 @@ func ChangeCursor(c *xgb.Conn, Source xproto.Cursor, Destination xproto.Cursor)
}
// ChangeCursorChecked sends a checked request.
// If an error occurs, it can be retrieved using ChangeCursorCookie.Check()
func ChangeCursorChecked(c *xgb.Conn, Source xproto.Cursor, Destination xproto.Cursor) ChangeCursorCookie {
// If an error occurs, it can be retrieved using ChangeCursorCookie.Check.
func ChangeCursorChecked(c *xgb.Conn, Source, Destination xproto.Cursor) ChangeCursorCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -414,9 +414,8 @@ func (cook ChangeCursorCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for ChangeCursor
// changeCursorRequest writes a ChangeCursor request to a byte slice.
func changeCursorRequest(c *xgb.Conn, Source xproto.Cursor, Destination xproto.Cursor) []byte {
// changeCursorRequest writes a ChangeCursor request to a byte slice for transfer.
func changeCursorRequest(c *xgb.Conn, Source, Destination xproto.Cursor) []byte {
size := 12
b := 0
buf := make([]byte, size)
@ -460,7 +459,7 @@ func ChangeCursorByName(c *xgb.Conn, Src xproto.Cursor, Nbytes uint16, Name stri
}
// ChangeCursorByNameChecked sends a checked request.
// If an error occurs, it can be retrieved using ChangeCursorByNameCookie.Check()
// If an error occurs, it can be retrieved using ChangeCursorByNameCookie.Check.
func ChangeCursorByNameChecked(c *xgb.Conn, Src xproto.Cursor, Nbytes uint16, Name string) ChangeCursorByNameCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -478,8 +477,7 @@ func (cook ChangeCursorByNameCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for ChangeCursorByName
// changeCursorByNameRequest writes a ChangeCursorByName request to a byte slice.
// changeCursorByNameRequest writes a ChangeCursorByName request to a byte slice for transfer.
func changeCursorByNameRequest(c *xgb.Conn, Src xproto.Cursor, Nbytes uint16, Name string) []byte {
size := xgb.Pad((12 + xgb.Pad((int(Nbytes) * 1))))
b := 0
@ -517,7 +515,7 @@ type ChangeSaveSetCookie struct {
// ChangeSaveSet sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ChangeSaveSet(c *xgb.Conn, Mode byte, Target byte, Map byte, Window xproto.Window) ChangeSaveSetCookie {
func ChangeSaveSet(c *xgb.Conn, Mode, Target, Map byte, Window xproto.Window) ChangeSaveSetCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -529,8 +527,8 @@ func ChangeSaveSet(c *xgb.Conn, Mode byte, Target byte, Map byte, Window xproto.
}
// ChangeSaveSetChecked sends a checked request.
// If an error occurs, it can be retrieved using ChangeSaveSetCookie.Check()
func ChangeSaveSetChecked(c *xgb.Conn, Mode byte, Target byte, Map byte, Window xproto.Window) ChangeSaveSetCookie {
// If an error occurs, it can be retrieved using ChangeSaveSetCookie.Check.
func ChangeSaveSetChecked(c *xgb.Conn, Mode, Target, Map byte, Window xproto.Window) ChangeSaveSetCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -547,9 +545,8 @@ func (cook ChangeSaveSetCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for ChangeSaveSet
// changeSaveSetRequest writes a ChangeSaveSet request to a byte slice.
func changeSaveSetRequest(c *xgb.Conn, Mode byte, Target byte, Map byte, Window xproto.Window) []byte {
// changeSaveSetRequest writes a ChangeSaveSet request to a byte slice for transfer.
func changeSaveSetRequest(c *xgb.Conn, Mode, Target, Map byte, Window xproto.Window) []byte {
size := 12
b := 0
buf := make([]byte, size)
@ -589,7 +586,7 @@ type CopyRegionCookie struct {
// CopyRegion sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CopyRegion(c *xgb.Conn, Source Region, Destination Region) CopyRegionCookie {
func CopyRegion(c *xgb.Conn, Source, Destination Region) CopyRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -601,8 +598,8 @@ func CopyRegion(c *xgb.Conn, Source Region, Destination Region) CopyRegionCookie
}
// CopyRegionChecked sends a checked request.
// If an error occurs, it can be retrieved using CopyRegionCookie.Check()
func CopyRegionChecked(c *xgb.Conn, Source Region, Destination Region) CopyRegionCookie {
// If an error occurs, it can be retrieved using CopyRegionCookie.Check.
func CopyRegionChecked(c *xgb.Conn, Source, Destination Region) CopyRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -619,9 +616,8 @@ func (cook CopyRegionCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CopyRegion
// copyRegionRequest writes a CopyRegion request to a byte slice.
func copyRegionRequest(c *xgb.Conn, Source Region, Destination Region) []byte {
// copyRegionRequest writes a CopyRegion request to a byte slice for transfer.
func copyRegionRequest(c *xgb.Conn, Source, Destination Region) []byte {
size := 12
b := 0
buf := make([]byte, size)
@ -653,7 +649,7 @@ type CreatePointerBarrierCookie struct {
// CreatePointerBarrier sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreatePointerBarrier(c *xgb.Conn, Barrier Barrier, Window xproto.Window, X1 uint16, Y1 uint16, X2 uint16, Y2 uint16, Directions uint32, NumDevices uint16, Devices []uint16) CreatePointerBarrierCookie {
func CreatePointerBarrier(c *xgb.Conn, Barrier Barrier, Window xproto.Window, X1, Y1, X2, Y2 uint16, Directions uint32, NumDevices uint16, Devices []uint16) CreatePointerBarrierCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -665,8 +661,8 @@ func CreatePointerBarrier(c *xgb.Conn, Barrier Barrier, Window xproto.Window, X1
}
// CreatePointerBarrierChecked sends a checked request.
// If an error occurs, it can be retrieved using CreatePointerBarrierCookie.Check()
func CreatePointerBarrierChecked(c *xgb.Conn, Barrier Barrier, Window xproto.Window, X1 uint16, Y1 uint16, X2 uint16, Y2 uint16, Directions uint32, NumDevices uint16, Devices []uint16) CreatePointerBarrierCookie {
// If an error occurs, it can be retrieved using CreatePointerBarrierCookie.Check.
func CreatePointerBarrierChecked(c *xgb.Conn, Barrier Barrier, Window xproto.Window, X1, Y1, X2, Y2 uint16, Directions uint32, NumDevices uint16, Devices []uint16) CreatePointerBarrierCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -683,9 +679,8 @@ func (cook CreatePointerBarrierCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CreatePointerBarrier
// createPointerBarrierRequest writes a CreatePointerBarrier request to a byte slice.
func createPointerBarrierRequest(c *xgb.Conn, Barrier Barrier, Window xproto.Window, X1 uint16, Y1 uint16, X2 uint16, Y2 uint16, Directions uint32, NumDevices uint16, Devices []uint16) []byte {
// createPointerBarrierRequest writes a CreatePointerBarrier request to a byte slice for transfer.
func createPointerBarrierRequest(c *xgb.Conn, Barrier Barrier, Window xproto.Window, X1, Y1, X2, Y2 uint16, Directions uint32, NumDevices uint16, Devices []uint16) []byte {
size := xgb.Pad((28 + xgb.Pad((int(NumDevices) * 2))))
b := 0
buf := make([]byte, size)
@ -754,7 +749,7 @@ func CreateRegion(c *xgb.Conn, Region Region, Rectangles []xproto.Rectangle) Cre
}
// CreateRegionChecked sends a checked request.
// If an error occurs, it can be retrieved using CreateRegionCookie.Check()
// If an error occurs, it can be retrieved using CreateRegionCookie.Check.
func CreateRegionChecked(c *xgb.Conn, Region Region, Rectangles []xproto.Rectangle) CreateRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -772,8 +767,7 @@ func (cook CreateRegionCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CreateRegion
// createRegionRequest writes a CreateRegion request to a byte slice.
// createRegionRequest writes a CreateRegion request to a byte slice for transfer.
func createRegionRequest(c *xgb.Conn, Region Region, Rectangles []xproto.Rectangle) []byte {
size := xgb.Pad((8 + xgb.Pad((len(Rectangles) * 8))))
b := 0
@ -817,7 +811,7 @@ func CreateRegionFromBitmap(c *xgb.Conn, Region Region, Bitmap xproto.Pixmap) Cr
}
// CreateRegionFromBitmapChecked sends a checked request.
// If an error occurs, it can be retrieved using CreateRegionFromBitmapCookie.Check()
// If an error occurs, it can be retrieved using CreateRegionFromBitmapCookie.Check.
func CreateRegionFromBitmapChecked(c *xgb.Conn, Region Region, Bitmap xproto.Pixmap) CreateRegionFromBitmapCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -835,8 +829,7 @@ func (cook CreateRegionFromBitmapCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CreateRegionFromBitmap
// createRegionFromBitmapRequest writes a CreateRegionFromBitmap request to a byte slice.
// createRegionFromBitmapRequest writes a CreateRegionFromBitmap request to a byte slice for transfer.
func createRegionFromBitmapRequest(c *xgb.Conn, Region Region, Bitmap xproto.Pixmap) []byte {
size := 12
b := 0
@ -881,7 +874,7 @@ func CreateRegionFromGC(c *xgb.Conn, Region Region, Gc xproto.Gcontext) CreateRe
}
// CreateRegionFromGCChecked sends a checked request.
// If an error occurs, it can be retrieved using CreateRegionFromGCCookie.Check()
// If an error occurs, it can be retrieved using CreateRegionFromGCCookie.Check.
func CreateRegionFromGCChecked(c *xgb.Conn, Region Region, Gc xproto.Gcontext) CreateRegionFromGCCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -899,8 +892,7 @@ func (cook CreateRegionFromGCCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CreateRegionFromGC
// createRegionFromGCRequest writes a CreateRegionFromGC request to a byte slice.
// createRegionFromGCRequest writes a CreateRegionFromGC request to a byte slice for transfer.
func createRegionFromGCRequest(c *xgb.Conn, Region Region, Gc xproto.Gcontext) []byte {
size := 12
b := 0
@ -945,7 +937,7 @@ func CreateRegionFromPicture(c *xgb.Conn, Region Region, Picture render.Picture)
}
// CreateRegionFromPictureChecked sends a checked request.
// If an error occurs, it can be retrieved using CreateRegionFromPictureCookie.Check()
// If an error occurs, it can be retrieved using CreateRegionFromPictureCookie.Check.
func CreateRegionFromPictureChecked(c *xgb.Conn, Region Region, Picture render.Picture) CreateRegionFromPictureCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -963,8 +955,7 @@ func (cook CreateRegionFromPictureCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CreateRegionFromPicture
// createRegionFromPictureRequest writes a CreateRegionFromPicture request to a byte slice.
// createRegionFromPictureRequest writes a CreateRegionFromPicture request to a byte slice for transfer.
func createRegionFromPictureRequest(c *xgb.Conn, Region Region, Picture render.Picture) []byte {
size := 12
b := 0
@ -1009,7 +1000,7 @@ func CreateRegionFromWindow(c *xgb.Conn, Region Region, Window xproto.Window, Ki
}
// CreateRegionFromWindowChecked sends a checked request.
// If an error occurs, it can be retrieved using CreateRegionFromWindowCookie.Check()
// If an error occurs, it can be retrieved using CreateRegionFromWindowCookie.Check.
func CreateRegionFromWindowChecked(c *xgb.Conn, Region Region, Window xproto.Window, Kind shape.Kind) CreateRegionFromWindowCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1027,8 +1018,7 @@ func (cook CreateRegionFromWindowCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CreateRegionFromWindow
// createRegionFromWindowRequest writes a CreateRegionFromWindow request to a byte slice.
// createRegionFromWindowRequest writes a CreateRegionFromWindow request to a byte slice for transfer.
func createRegionFromWindowRequest(c *xgb.Conn, Region Region, Window xproto.Window, Kind shape.Kind) []byte {
size := 16
b := 0
@ -1078,7 +1068,7 @@ func DeletePointerBarrier(c *xgb.Conn, Barrier Barrier) DeletePointerBarrierCook
}
// DeletePointerBarrierChecked sends a checked request.
// If an error occurs, it can be retrieved using DeletePointerBarrierCookie.Check()
// If an error occurs, it can be retrieved using DeletePointerBarrierCookie.Check.
func DeletePointerBarrierChecked(c *xgb.Conn, Barrier Barrier) DeletePointerBarrierCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1096,8 +1086,7 @@ func (cook DeletePointerBarrierCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for DeletePointerBarrier
// deletePointerBarrierRequest writes a DeletePointerBarrier request to a byte slice.
// deletePointerBarrierRequest writes a DeletePointerBarrier request to a byte slice for transfer.
func deletePointerBarrierRequest(c *xgb.Conn, Barrier Barrier) []byte {
size := 8
b := 0
@ -1139,7 +1128,7 @@ func DestroyRegion(c *xgb.Conn, Region Region) DestroyRegionCookie {
}
// DestroyRegionChecked sends a checked request.
// If an error occurs, it can be retrieved using DestroyRegionCookie.Check()
// If an error occurs, it can be retrieved using DestroyRegionCookie.Check.
func DestroyRegionChecked(c *xgb.Conn, Region Region) DestroyRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1157,8 +1146,7 @@ func (cook DestroyRegionCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for DestroyRegion
// destroyRegionRequest writes a DestroyRegion request to a byte slice.
// destroyRegionRequest writes a DestroyRegion request to a byte slice for transfer.
func destroyRegionRequest(c *xgb.Conn, Region Region) []byte {
size := 8
b := 0
@ -1188,7 +1176,7 @@ type ExpandRegionCookie struct {
// ExpandRegion sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ExpandRegion(c *xgb.Conn, Source Region, Destination Region, Left uint16, Right uint16, Top uint16, Bottom uint16) ExpandRegionCookie {
func ExpandRegion(c *xgb.Conn, Source, Destination Region, Left, Right, Top, Bottom uint16) ExpandRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -1200,8 +1188,8 @@ func ExpandRegion(c *xgb.Conn, Source Region, Destination Region, Left uint16, R
}
// ExpandRegionChecked sends a checked request.
// If an error occurs, it can be retrieved using ExpandRegionCookie.Check()
func ExpandRegionChecked(c *xgb.Conn, Source Region, Destination Region, Left uint16, Right uint16, Top uint16, Bottom uint16) ExpandRegionCookie {
// If an error occurs, it can be retrieved using ExpandRegionCookie.Check.
func ExpandRegionChecked(c *xgb.Conn, Source, Destination Region, Left, Right, Top, Bottom uint16) ExpandRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -1218,9 +1206,8 @@ func (cook ExpandRegionCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for ExpandRegion
// expandRegionRequest writes a ExpandRegion request to a byte slice.
func expandRegionRequest(c *xgb.Conn, Source Region, Destination Region, Left uint16, Right uint16, Top uint16, Bottom uint16) []byte {
// expandRegionRequest writes a ExpandRegion request to a byte slice for transfer.
func expandRegionRequest(c *xgb.Conn, Source, Destination Region, Left, Right, Top, Bottom uint16) []byte {
size := 20
b := 0
buf := make([]byte, size)
@ -1263,7 +1250,7 @@ type FetchRegionCookie struct {
}
// FetchRegion sends a checked request.
// If an error occurs, it will be returned with the reply by calling FetchRegionCookie.Reply()
// If an error occurs, it will be returned with the reply by calling FetchRegionCookie.Reply.
func FetchRegion(c *xgb.Conn, Region Region) FetchRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1334,8 +1321,7 @@ func fetchRegionReply(buf []byte) *FetchRegionReply {
return v
}
// Write request to wire for FetchRegion
// fetchRegionRequest writes a FetchRegion request to a byte slice.
// fetchRegionRequest writes a FetchRegion request to a byte slice for transfer.
func fetchRegionRequest(c *xgb.Conn, Region Region) []byte {
size := 8
b := 0
@ -1364,7 +1350,7 @@ type GetCursorImageCookie struct {
}
// GetCursorImage sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetCursorImageCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetCursorImageCookie.Reply.
func GetCursorImage(c *xgb.Conn) GetCursorImageCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1462,8 +1448,7 @@ func getCursorImageReply(buf []byte) *GetCursorImageReply {
return v
}
// Write request to wire for GetCursorImage
// getCursorImageRequest writes a GetCursorImage request to a byte slice.
// getCursorImageRequest writes a GetCursorImage request to a byte slice for transfer.
func getCursorImageRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -1489,7 +1474,7 @@ type GetCursorImageAndNameCookie struct {
}
// GetCursorImageAndName sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetCursorImageAndNameCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetCursorImageAndNameCookie.Reply.
func GetCursorImageAndName(c *xgb.Conn) GetCursorImageAndNameCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1603,8 +1588,7 @@ func getCursorImageAndNameReply(buf []byte) *GetCursorImageAndNameReply {
return v
}
// Write request to wire for GetCursorImageAndName
// getCursorImageAndNameRequest writes a GetCursorImageAndName request to a byte slice.
// getCursorImageAndNameRequest writes a GetCursorImageAndName request to a byte slice for transfer.
func getCursorImageAndNameRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -1630,7 +1614,7 @@ type GetCursorNameCookie struct {
}
// GetCursorName sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetCursorNameCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetCursorNameCookie.Reply.
func GetCursorName(c *xgb.Conn, Cursor xproto.Cursor) GetCursorNameCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1709,8 +1693,7 @@ func getCursorNameReply(buf []byte) *GetCursorNameReply {
return v
}
// Write request to wire for GetCursorName
// getCursorNameRequest writes a GetCursorName request to a byte slice.
// getCursorNameRequest writes a GetCursorName request to a byte slice for transfer.
func getCursorNameRequest(c *xgb.Conn, Cursor xproto.Cursor) []byte {
size := 8
b := 0
@ -1752,7 +1735,7 @@ func HideCursor(c *xgb.Conn, Window xproto.Window) HideCursorCookie {
}
// HideCursorChecked sends a checked request.
// If an error occurs, it can be retrieved using HideCursorCookie.Check()
// If an error occurs, it can be retrieved using HideCursorCookie.Check.
func HideCursorChecked(c *xgb.Conn, Window xproto.Window) HideCursorCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1770,8 +1753,7 @@ func (cook HideCursorCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for HideCursor
// hideCursorRequest writes a HideCursor request to a byte slice.
// hideCursorRequest writes a HideCursor request to a byte slice for transfer.
func hideCursorRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@ -1801,7 +1783,7 @@ type IntersectRegionCookie struct {
// IntersectRegion sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func IntersectRegion(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) IntersectRegionCookie {
func IntersectRegion(c *xgb.Conn, Source1, Source2, Destination Region) IntersectRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -1813,8 +1795,8 @@ func IntersectRegion(c *xgb.Conn, Source1 Region, Source2 Region, Destination Re
}
// IntersectRegionChecked sends a checked request.
// If an error occurs, it can be retrieved using IntersectRegionCookie.Check()
func IntersectRegionChecked(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) IntersectRegionCookie {
// If an error occurs, it can be retrieved using IntersectRegionCookie.Check.
func IntersectRegionChecked(c *xgb.Conn, Source1, Source2, Destination Region) IntersectRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -1831,9 +1813,8 @@ func (cook IntersectRegionCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for IntersectRegion
// intersectRegionRequest writes a IntersectRegion request to a byte slice.
func intersectRegionRequest(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) []byte {
// intersectRegionRequest writes a IntersectRegion request to a byte slice for transfer.
func intersectRegionRequest(c *xgb.Conn, Source1, Source2, Destination Region) []byte {
size := 16
b := 0
buf := make([]byte, size)
@ -1880,7 +1861,7 @@ func InvertRegion(c *xgb.Conn, Source Region, Bounds xproto.Rectangle, Destinati
}
// InvertRegionChecked sends a checked request.
// If an error occurs, it can be retrieved using InvertRegionCookie.Check()
// If an error occurs, it can be retrieved using InvertRegionCookie.Check.
func InvertRegionChecked(c *xgb.Conn, Source Region, Bounds xproto.Rectangle, Destination Region) InvertRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1898,8 +1879,7 @@ func (cook InvertRegionCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for InvertRegion
// invertRegionRequest writes a InvertRegion request to a byte slice.
// invertRegionRequest writes a InvertRegion request to a byte slice for transfer.
func invertRegionRequest(c *xgb.Conn, Source Region, Bounds xproto.Rectangle, Destination Region) []byte {
size := 20
b := 0
@ -1937,8 +1917,8 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersion(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie {
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint32) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -1951,7 +1931,7 @@ func QueryVersion(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uin
// QueryVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie {
func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint32) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -2008,9 +1988,8 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
// Write request to wire for QueryVersion
// queryVersionRequest writes a QueryVersion request to a byte slice.
func queryVersionRequest(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uint32) []byte {
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint32) []byte {
size := 12
b := 0
buf := make([]byte, size)
@ -2042,7 +2021,7 @@ type RegionExtentsCookie struct {
// RegionExtents sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func RegionExtents(c *xgb.Conn, Source Region, Destination Region) RegionExtentsCookie {
func RegionExtents(c *xgb.Conn, Source, Destination Region) RegionExtentsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -2054,8 +2033,8 @@ func RegionExtents(c *xgb.Conn, Source Region, Destination Region) RegionExtents
}
// RegionExtentsChecked sends a checked request.
// If an error occurs, it can be retrieved using RegionExtentsCookie.Check()
func RegionExtentsChecked(c *xgb.Conn, Source Region, Destination Region) RegionExtentsCookie {
// If an error occurs, it can be retrieved using RegionExtentsCookie.Check.
func RegionExtentsChecked(c *xgb.Conn, Source, Destination Region) RegionExtentsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -2072,9 +2051,8 @@ func (cook RegionExtentsCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for RegionExtents
// regionExtentsRequest writes a RegionExtents request to a byte slice.
func regionExtentsRequest(c *xgb.Conn, Source Region, Destination Region) []byte {
// regionExtentsRequest writes a RegionExtents request to a byte slice for transfer.
func regionExtentsRequest(c *xgb.Conn, Source, Destination Region) []byte {
size := 12
b := 0
buf := make([]byte, size)
@ -2118,7 +2096,7 @@ func SelectCursorInput(c *xgb.Conn, Window xproto.Window, EventMask uint32) Sele
}
// SelectCursorInputChecked sends a checked request.
// If an error occurs, it can be retrieved using SelectCursorInputCookie.Check()
// If an error occurs, it can be retrieved using SelectCursorInputCookie.Check.
func SelectCursorInputChecked(c *xgb.Conn, Window xproto.Window, EventMask uint32) SelectCursorInputCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2136,8 +2114,7 @@ func (cook SelectCursorInputCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SelectCursorInput
// selectCursorInputRequest writes a SelectCursorInput request to a byte slice.
// selectCursorInputRequest writes a SelectCursorInput request to a byte slice for transfer.
func selectCursorInputRequest(c *xgb.Conn, Window xproto.Window, EventMask uint32) []byte {
size := 12
b := 0
@ -2182,7 +2159,7 @@ func SelectSelectionInput(c *xgb.Conn, Window xproto.Window, Selection xproto.At
}
// SelectSelectionInputChecked sends a checked request.
// If an error occurs, it can be retrieved using SelectSelectionInputCookie.Check()
// If an error occurs, it can be retrieved using SelectSelectionInputCookie.Check.
func SelectSelectionInputChecked(c *xgb.Conn, Window xproto.Window, Selection xproto.Atom, EventMask uint32) SelectSelectionInputCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2200,8 +2177,7 @@ func (cook SelectSelectionInputCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SelectSelectionInput
// selectSelectionInputRequest writes a SelectSelectionInput request to a byte slice.
// selectSelectionInputRequest writes a SelectSelectionInput request to a byte slice for transfer.
func selectSelectionInputRequest(c *xgb.Conn, Window xproto.Window, Selection xproto.Atom, EventMask uint32) []byte {
size := 16
b := 0
@ -2249,7 +2225,7 @@ func SetCursorName(c *xgb.Conn, Cursor xproto.Cursor, Nbytes uint16, Name string
}
// SetCursorNameChecked sends a checked request.
// If an error occurs, it can be retrieved using SetCursorNameCookie.Check()
// If an error occurs, it can be retrieved using SetCursorNameCookie.Check.
func SetCursorNameChecked(c *xgb.Conn, Cursor xproto.Cursor, Nbytes uint16, Name string) SetCursorNameCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2267,8 +2243,7 @@ func (cook SetCursorNameCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetCursorName
// setCursorNameRequest writes a SetCursorName request to a byte slice.
// setCursorNameRequest writes a SetCursorName request to a byte slice for transfer.
func setCursorNameRequest(c *xgb.Conn, Cursor xproto.Cursor, Nbytes uint16, Name string) []byte {
size := xgb.Pad((12 + xgb.Pad((int(Nbytes) * 1))))
b := 0
@ -2306,7 +2281,7 @@ type SetGCClipRegionCookie struct {
// SetGCClipRegion sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetGCClipRegion(c *xgb.Conn, Gc xproto.Gcontext, Region Region, XOrigin int16, YOrigin int16) SetGCClipRegionCookie {
func SetGCClipRegion(c *xgb.Conn, Gc xproto.Gcontext, Region Region, XOrigin, YOrigin int16) SetGCClipRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -2318,8 +2293,8 @@ func SetGCClipRegion(c *xgb.Conn, Gc xproto.Gcontext, Region Region, XOrigin int
}
// SetGCClipRegionChecked sends a checked request.
// If an error occurs, it can be retrieved using SetGCClipRegionCookie.Check()
func SetGCClipRegionChecked(c *xgb.Conn, Gc xproto.Gcontext, Region Region, XOrigin int16, YOrigin int16) SetGCClipRegionCookie {
// If an error occurs, it can be retrieved using SetGCClipRegionCookie.Check.
func SetGCClipRegionChecked(c *xgb.Conn, Gc xproto.Gcontext, Region Region, XOrigin, YOrigin int16) SetGCClipRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -2336,9 +2311,8 @@ func (cook SetGCClipRegionCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetGCClipRegion
// setGCClipRegionRequest writes a SetGCClipRegion request to a byte slice.
func setGCClipRegionRequest(c *xgb.Conn, Gc xproto.Gcontext, Region Region, XOrigin int16, YOrigin int16) []byte {
// setGCClipRegionRequest writes a SetGCClipRegion request to a byte slice for transfer.
func setGCClipRegionRequest(c *xgb.Conn, Gc xproto.Gcontext, Region Region, XOrigin, YOrigin int16) []byte {
size := 16
b := 0
buf := make([]byte, size)
@ -2376,7 +2350,7 @@ type SetPictureClipRegionCookie struct {
// SetPictureClipRegion sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetPictureClipRegion(c *xgb.Conn, Picture render.Picture, Region Region, XOrigin int16, YOrigin int16) SetPictureClipRegionCookie {
func SetPictureClipRegion(c *xgb.Conn, Picture render.Picture, Region Region, XOrigin, YOrigin int16) SetPictureClipRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -2388,8 +2362,8 @@ func SetPictureClipRegion(c *xgb.Conn, Picture render.Picture, Region Region, XO
}
// SetPictureClipRegionChecked sends a checked request.
// If an error occurs, it can be retrieved using SetPictureClipRegionCookie.Check()
func SetPictureClipRegionChecked(c *xgb.Conn, Picture render.Picture, Region Region, XOrigin int16, YOrigin int16) SetPictureClipRegionCookie {
// If an error occurs, it can be retrieved using SetPictureClipRegionCookie.Check.
func SetPictureClipRegionChecked(c *xgb.Conn, Picture render.Picture, Region Region, XOrigin, YOrigin int16) SetPictureClipRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -2406,9 +2380,8 @@ func (cook SetPictureClipRegionCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetPictureClipRegion
// setPictureClipRegionRequest writes a SetPictureClipRegion request to a byte slice.
func setPictureClipRegionRequest(c *xgb.Conn, Picture render.Picture, Region Region, XOrigin int16, YOrigin int16) []byte {
// setPictureClipRegionRequest writes a SetPictureClipRegion request to a byte slice for transfer.
func setPictureClipRegionRequest(c *xgb.Conn, Picture render.Picture, Region Region, XOrigin, YOrigin int16) []byte {
size := 16
b := 0
buf := make([]byte, size)
@ -2458,7 +2431,7 @@ func SetRegion(c *xgb.Conn, Region Region, Rectangles []xproto.Rectangle) SetReg
}
// SetRegionChecked sends a checked request.
// If an error occurs, it can be retrieved using SetRegionCookie.Check()
// If an error occurs, it can be retrieved using SetRegionCookie.Check.
func SetRegionChecked(c *xgb.Conn, Region Region, Rectangles []xproto.Rectangle) SetRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2476,8 +2449,7 @@ func (cook SetRegionCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetRegion
// setRegionRequest writes a SetRegion request to a byte slice.
// setRegionRequest writes a SetRegion request to a byte slice for transfer.
func setRegionRequest(c *xgb.Conn, Region Region, Rectangles []xproto.Rectangle) []byte {
size := xgb.Pad((8 + xgb.Pad((len(Rectangles) * 8))))
b := 0
@ -2509,7 +2481,7 @@ type SetWindowShapeRegionCookie struct {
// SetWindowShapeRegion sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetWindowShapeRegion(c *xgb.Conn, Dest xproto.Window, DestKind shape.Kind, XOffset int16, YOffset int16, Region Region) SetWindowShapeRegionCookie {
func SetWindowShapeRegion(c *xgb.Conn, Dest xproto.Window, DestKind shape.Kind, XOffset, YOffset int16, Region Region) SetWindowShapeRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -2521,8 +2493,8 @@ func SetWindowShapeRegion(c *xgb.Conn, Dest xproto.Window, DestKind shape.Kind,
}
// SetWindowShapeRegionChecked sends a checked request.
// If an error occurs, it can be retrieved using SetWindowShapeRegionCookie.Check()
func SetWindowShapeRegionChecked(c *xgb.Conn, Dest xproto.Window, DestKind shape.Kind, XOffset int16, YOffset int16, Region Region) SetWindowShapeRegionCookie {
// If an error occurs, it can be retrieved using SetWindowShapeRegionCookie.Check.
func SetWindowShapeRegionChecked(c *xgb.Conn, Dest xproto.Window, DestKind shape.Kind, XOffset, YOffset int16, Region Region) SetWindowShapeRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -2539,9 +2511,8 @@ func (cook SetWindowShapeRegionCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetWindowShapeRegion
// setWindowShapeRegionRequest writes a SetWindowShapeRegion request to a byte slice.
func setWindowShapeRegionRequest(c *xgb.Conn, Dest xproto.Window, DestKind shape.Kind, XOffset int16, YOffset int16, Region Region) []byte {
// setWindowShapeRegionRequest writes a SetWindowShapeRegion request to a byte slice for transfer.
func setWindowShapeRegionRequest(c *xgb.Conn, Dest xproto.Window, DestKind shape.Kind, XOffset, YOffset int16, Region Region) []byte {
size := 20
b := 0
buf := make([]byte, size)
@ -2596,7 +2567,7 @@ func ShowCursor(c *xgb.Conn, Window xproto.Window) ShowCursorCookie {
}
// ShowCursorChecked sends a checked request.
// If an error occurs, it can be retrieved using ShowCursorCookie.Check()
// If an error occurs, it can be retrieved using ShowCursorCookie.Check.
func ShowCursorChecked(c *xgb.Conn, Window xproto.Window) ShowCursorCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2614,8 +2585,7 @@ func (cook ShowCursorCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for ShowCursor
// showCursorRequest writes a ShowCursor request to a byte slice.
// showCursorRequest writes a ShowCursor request to a byte slice for transfer.
func showCursorRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@ -2645,7 +2615,7 @@ type SubtractRegionCookie struct {
// SubtractRegion sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SubtractRegion(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) SubtractRegionCookie {
func SubtractRegion(c *xgb.Conn, Source1, Source2, Destination Region) SubtractRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -2657,8 +2627,8 @@ func SubtractRegion(c *xgb.Conn, Source1 Region, Source2 Region, Destination Reg
}
// SubtractRegionChecked sends a checked request.
// If an error occurs, it can be retrieved using SubtractRegionCookie.Check()
func SubtractRegionChecked(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) SubtractRegionCookie {
// If an error occurs, it can be retrieved using SubtractRegionCookie.Check.
func SubtractRegionChecked(c *xgb.Conn, Source1, Source2, Destination Region) SubtractRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -2675,9 +2645,8 @@ func (cook SubtractRegionCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SubtractRegion
// subtractRegionRequest writes a SubtractRegion request to a byte slice.
func subtractRegionRequest(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) []byte {
// subtractRegionRequest writes a SubtractRegion request to a byte slice for transfer.
func subtractRegionRequest(c *xgb.Conn, Source1, Source2, Destination Region) []byte {
size := 16
b := 0
buf := make([]byte, size)
@ -2712,7 +2681,7 @@ type TranslateRegionCookie struct {
// TranslateRegion sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func TranslateRegion(c *xgb.Conn, Region Region, Dx int16, Dy int16) TranslateRegionCookie {
func TranslateRegion(c *xgb.Conn, Region Region, Dx, Dy int16) TranslateRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -2724,8 +2693,8 @@ func TranslateRegion(c *xgb.Conn, Region Region, Dx int16, Dy int16) TranslateRe
}
// TranslateRegionChecked sends a checked request.
// If an error occurs, it can be retrieved using TranslateRegionCookie.Check()
func TranslateRegionChecked(c *xgb.Conn, Region Region, Dx int16, Dy int16) TranslateRegionCookie {
// If an error occurs, it can be retrieved using TranslateRegionCookie.Check.
func TranslateRegionChecked(c *xgb.Conn, Region Region, Dx, Dy int16) TranslateRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -2742,9 +2711,8 @@ func (cook TranslateRegionCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for TranslateRegion
// translateRegionRequest writes a TranslateRegion request to a byte slice.
func translateRegionRequest(c *xgb.Conn, Region Region, Dx int16, Dy int16) []byte {
// translateRegionRequest writes a TranslateRegion request to a byte slice for transfer.
func translateRegionRequest(c *xgb.Conn, Region Region, Dx, Dy int16) []byte {
size := 12
b := 0
buf := make([]byte, size)
@ -2779,7 +2747,7 @@ type UnionRegionCookie struct {
// UnionRegion sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func UnionRegion(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) UnionRegionCookie {
func UnionRegion(c *xgb.Conn, Source1, Source2, Destination Region) UnionRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -2791,8 +2759,8 @@ func UnionRegion(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region
}
// UnionRegionChecked sends a checked request.
// If an error occurs, it can be retrieved using UnionRegionCookie.Check()
func UnionRegionChecked(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) UnionRegionCookie {
// If an error occurs, it can be retrieved using UnionRegionCookie.Check.
func UnionRegionChecked(c *xgb.Conn, Source1, Source2, Destination Region) UnionRegionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFIXES"]; !ok {
@ -2809,9 +2777,8 @@ func (cook UnionRegionCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for UnionRegion
// unionRegionRequest writes a UnionRegion request to a byte slice.
func unionRegionRequest(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) []byte {
// unionRegionRequest writes a UnionRegion request to a byte slice for transfer.
func unionRegionRequest(c *xgb.Conn, Source1, Source2, Destination Region) []byte {
size := 16
b := 0
buf := make([]byte, size)

View File

@ -139,7 +139,7 @@ type GetScreenCountCookie struct {
}
// GetScreenCount sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetScreenCountCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetScreenCountCookie.Reply.
func GetScreenCount(c *xgb.Conn, Window xproto.Window) GetScreenCountCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -204,8 +204,7 @@ func getScreenCountReply(buf []byte) *GetScreenCountReply {
return v
}
// Write request to wire for GetScreenCount
// getScreenCountRequest writes a GetScreenCount request to a byte slice.
// getScreenCountRequest writes a GetScreenCount request to a byte slice for transfer.
func getScreenCountRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@ -234,7 +233,7 @@ type GetScreenSizeCookie struct {
}
// GetScreenSize sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetScreenSizeCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetScreenSizeCookie.Reply.
func GetScreenSize(c *xgb.Conn, Window xproto.Window, Screen uint32) GetScreenSizeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -310,8 +309,7 @@ func getScreenSizeReply(buf []byte) *GetScreenSizeReply {
return v
}
// Write request to wire for GetScreenSize
// getScreenSizeRequest writes a GetScreenSize request to a byte slice.
// getScreenSizeRequest writes a GetScreenSize request to a byte slice for transfer.
func getScreenSizeRequest(c *xgb.Conn, Window xproto.Window, Screen uint32) []byte {
size := 12
b := 0
@ -343,7 +341,7 @@ type GetStateCookie struct {
}
// GetState sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetStateCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetStateCookie.Reply.
func GetState(c *xgb.Conn, Window xproto.Window) GetStateCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -408,8 +406,7 @@ func getStateReply(buf []byte) *GetStateReply {
return v
}
// Write request to wire for GetState
// getStateRequest writes a GetState request to a byte slice.
// getStateRequest writes a GetState request to a byte slice for transfer.
func getStateRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@ -438,7 +435,7 @@ type IsActiveCookie struct {
}
// IsActive sends a checked request.
// If an error occurs, it will be returned with the reply by calling IsActiveCookie.Reply()
// If an error occurs, it will be returned with the reply by calling IsActiveCookie.Reply.
func IsActive(c *xgb.Conn) IsActiveCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -502,8 +499,7 @@ func isActiveReply(buf []byte) *IsActiveReply {
return v
}
// Write request to wire for IsActive
// isActiveRequest writes a IsActive request to a byte slice.
// isActiveRequest writes a IsActive request to a byte slice for transfer.
func isActiveRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -529,7 +525,7 @@ type QueryScreensCookie struct {
}
// QueryScreens sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryScreensCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryScreensCookie.Reply.
func QueryScreens(c *xgb.Conn) QueryScreensCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -600,8 +596,7 @@ func queryScreensReply(buf []byte) *QueryScreensReply {
return v
}
// Write request to wire for QueryScreens
// queryScreensRequest writes a QueryScreens request to a byte slice.
// queryScreensRequest writes a QueryScreens request to a byte slice for transfer.
func queryScreensRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -627,8 +622,8 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersion(c *xgb.Conn, Major byte, Minor byte) QueryVersionCookie {
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn, Major, Minor byte) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XINERAMA"]; !ok {
@ -641,7 +636,7 @@ func QueryVersion(c *xgb.Conn, Major byte, Minor byte) QueryVersionCookie {
// QueryVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryVersionUnchecked(c *xgb.Conn, Major byte, Minor byte) QueryVersionCookie {
func QueryVersionUnchecked(c *xgb.Conn, Major, Minor byte) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XINERAMA"]; !ok {
@ -695,9 +690,8 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
// Write request to wire for QueryVersion
// queryVersionRequest writes a QueryVersion request to a byte slice.
func queryVersionRequest(c *xgb.Conn, Major byte, Minor byte) []byte {
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn, Major, Minor byte) []byte {
size := 8
b := 0
buf := make([]byte, size)

View File

@ -451,7 +451,7 @@ type CreateContextCookie struct {
// CreateContext sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateContext(c *xgb.Conn, ContextId uint32, PrinterNameLen uint32, LocaleLen uint32, PrinterName []String8, Locale []String8) CreateContextCookie {
func CreateContext(c *xgb.Conn, ContextId, PrinterNameLen, LocaleLen uint32, PrinterName, Locale []String8) CreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XpExtension"]; !ok {
@ -463,8 +463,8 @@ func CreateContext(c *xgb.Conn, ContextId uint32, PrinterNameLen uint32, LocaleL
}
// CreateContextChecked sends a checked request.
// If an error occurs, it can be retrieved using CreateContextCookie.Check()
func CreateContextChecked(c *xgb.Conn, ContextId uint32, PrinterNameLen uint32, LocaleLen uint32, PrinterName []String8, Locale []String8) CreateContextCookie {
// If an error occurs, it can be retrieved using CreateContextCookie.Check.
func CreateContextChecked(c *xgb.Conn, ContextId, PrinterNameLen, LocaleLen uint32, PrinterName, Locale []String8) CreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XpExtension"]; !ok {
@ -481,9 +481,8 @@ func (cook CreateContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for CreateContext
// createContextRequest writes a CreateContext request to a byte slice.
func createContextRequest(c *xgb.Conn, ContextId uint32, PrinterNameLen uint32, LocaleLen uint32, PrinterName []String8, Locale []String8) []byte {
// createContextRequest writes a CreateContext request to a byte slice for transfer.
func createContextRequest(c *xgb.Conn, ContextId, PrinterNameLen, LocaleLen uint32, PrinterName, Locale []String8) []byte {
size := xgb.Pad(((16 + xgb.Pad((int(PrinterNameLen) * 1))) + xgb.Pad((int(LocaleLen) * 1))))
b := 0
buf := make([]byte, size)
@ -540,7 +539,7 @@ func PrintDestroyContext(c *xgb.Conn, Context uint32) PrintDestroyContextCookie
}
// PrintDestroyContextChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintDestroyContextCookie.Check()
// If an error occurs, it can be retrieved using PrintDestroyContextCookie.Check.
func PrintDestroyContextChecked(c *xgb.Conn, Context uint32) PrintDestroyContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -558,8 +557,7 @@ func (cook PrintDestroyContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for PrintDestroyContext
// printDestroyContextRequest writes a PrintDestroyContext request to a byte slice.
// printDestroyContextRequest writes a PrintDestroyContext request to a byte slice for transfer.
func printDestroyContextRequest(c *xgb.Conn, Context uint32) []byte {
size := 8
b := 0
@ -601,7 +599,7 @@ func PrintEndDoc(c *xgb.Conn, Cancel bool) PrintEndDocCookie {
}
// PrintEndDocChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintEndDocCookie.Check()
// If an error occurs, it can be retrieved using PrintEndDocCookie.Check.
func PrintEndDocChecked(c *xgb.Conn, Cancel bool) PrintEndDocCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -619,8 +617,7 @@ func (cook PrintEndDocCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for PrintEndDoc
// printEndDocRequest writes a PrintEndDoc request to a byte slice.
// printEndDocRequest writes a PrintEndDoc request to a byte slice for transfer.
func printEndDocRequest(c *xgb.Conn, Cancel bool) []byte {
size := 8
b := 0
@ -666,7 +663,7 @@ func PrintEndJob(c *xgb.Conn, Cancel bool) PrintEndJobCookie {
}
// PrintEndJobChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintEndJobCookie.Check()
// If an error occurs, it can be retrieved using PrintEndJobCookie.Check.
func PrintEndJobChecked(c *xgb.Conn, Cancel bool) PrintEndJobCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -684,8 +681,7 @@ func (cook PrintEndJobCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for PrintEndJob
// printEndJobRequest writes a PrintEndJob request to a byte slice.
// printEndJobRequest writes a PrintEndJob request to a byte slice for transfer.
func printEndJobRequest(c *xgb.Conn, Cancel bool) []byte {
size := 8
b := 0
@ -731,7 +727,7 @@ func PrintEndPage(c *xgb.Conn, Cancel bool) PrintEndPageCookie {
}
// PrintEndPageChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintEndPageCookie.Check()
// If an error occurs, it can be retrieved using PrintEndPageCookie.Check.
func PrintEndPageChecked(c *xgb.Conn, Cancel bool) PrintEndPageCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -749,8 +745,7 @@ func (cook PrintEndPageCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for PrintEndPage
// printEndPageRequest writes a PrintEndPage request to a byte slice.
// printEndPageRequest writes a PrintEndPage request to a byte slice for transfer.
func printEndPageRequest(c *xgb.Conn, Cancel bool) []byte {
size := 8
b := 0
@ -785,7 +780,7 @@ type PrintGetAttributesCookie struct {
}
// PrintGetAttributes sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintGetAttributesCookie.Reply()
// If an error occurs, it will be returned with the reply by calling PrintGetAttributesCookie.Reply.
func PrintGetAttributes(c *xgb.Conn, Context Pcontext, Pool byte) PrintGetAttributesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -859,8 +854,7 @@ func printGetAttributesReply(buf []byte) *PrintGetAttributesReply {
return v
}
// Write request to wire for PrintGetAttributes
// printGetAttributesRequest writes a PrintGetAttributes request to a byte slice.
// printGetAttributesRequest writes a PrintGetAttributes request to a byte slice for transfer.
func printGetAttributesRequest(c *xgb.Conn, Context Pcontext, Pool byte) []byte {
size := 12
b := 0
@ -894,7 +888,7 @@ type PrintGetContextCookie struct {
}
// PrintGetContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintGetContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling PrintGetContextCookie.Reply.
func PrintGetContext(c *xgb.Conn) PrintGetContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -958,8 +952,7 @@ func printGetContextReply(buf []byte) *PrintGetContextReply {
return v
}
// Write request to wire for PrintGetContext
// printGetContextRequest writes a PrintGetContext request to a byte slice.
// printGetContextRequest writes a PrintGetContext request to a byte slice for transfer.
func printGetContextRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -985,7 +978,7 @@ type PrintGetDocumentDataCookie struct {
}
// PrintGetDocumentData sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintGetDocumentDataCookie.Reply()
// If an error occurs, it will be returned with the reply by calling PrintGetDocumentDataCookie.Reply.
func PrintGetDocumentData(c *xgb.Conn, Context Pcontext, MaxBytes uint32) PrintGetDocumentDataCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1065,8 +1058,7 @@ func printGetDocumentDataReply(buf []byte) *PrintGetDocumentDataReply {
return v
}
// Write request to wire for PrintGetDocumentData
// printGetDocumentDataRequest writes a PrintGetDocumentData request to a byte slice.
// printGetDocumentDataRequest writes a PrintGetDocumentData request to a byte slice for transfer.
func printGetDocumentDataRequest(c *xgb.Conn, Context Pcontext, MaxBytes uint32) []byte {
size := 12
b := 0
@ -1098,7 +1090,7 @@ type PrintGetImageResolutionCookie struct {
}
// PrintGetImageResolution sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintGetImageResolutionCookie.Reply()
// If an error occurs, it will be returned with the reply by calling PrintGetImageResolutionCookie.Reply.
func PrintGetImageResolution(c *xgb.Conn, Context Pcontext) PrintGetImageResolutionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1162,8 +1154,7 @@ func printGetImageResolutionReply(buf []byte) *PrintGetImageResolutionReply {
return v
}
// Write request to wire for PrintGetImageResolution
// printGetImageResolutionRequest writes a PrintGetImageResolution request to a byte slice.
// printGetImageResolutionRequest writes a PrintGetImageResolution request to a byte slice for transfer.
func printGetImageResolutionRequest(c *xgb.Conn, Context Pcontext) []byte {
size := 8
b := 0
@ -1192,7 +1183,7 @@ type PrintGetOneAttributesCookie struct {
}
// PrintGetOneAttributes sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintGetOneAttributesCookie.Reply()
// If an error occurs, it will be returned with the reply by calling PrintGetOneAttributesCookie.Reply.
func PrintGetOneAttributes(c *xgb.Conn, Context Pcontext, NameLen uint32, Pool byte, Name []String8) PrintGetOneAttributesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1266,8 +1257,7 @@ func printGetOneAttributesReply(buf []byte) *PrintGetOneAttributesReply {
return v
}
// Write request to wire for PrintGetOneAttributes
// printGetOneAttributesRequest writes a PrintGetOneAttributes request to a byte slice.
// printGetOneAttributesRequest writes a PrintGetOneAttributes request to a byte slice for transfer.
func printGetOneAttributesRequest(c *xgb.Conn, Context Pcontext, NameLen uint32, Pool byte, Name []String8) []byte {
size := xgb.Pad((16 + xgb.Pad((int(NameLen) * 1))))
b := 0
@ -1309,7 +1299,7 @@ type PrintGetPageDimensionsCookie struct {
}
// PrintGetPageDimensions sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintGetPageDimensionsCookie.Reply()
// If an error occurs, it will be returned with the reply by calling PrintGetPageDimensionsCookie.Reply.
func PrintGetPageDimensions(c *xgb.Conn, Context Pcontext) PrintGetPageDimensionsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1393,8 +1383,7 @@ func printGetPageDimensionsReply(buf []byte) *PrintGetPageDimensionsReply {
return v
}
// Write request to wire for PrintGetPageDimensions
// printGetPageDimensionsRequest writes a PrintGetPageDimensions request to a byte slice.
// printGetPageDimensionsRequest writes a PrintGetPageDimensions request to a byte slice for transfer.
func printGetPageDimensionsRequest(c *xgb.Conn, Context Pcontext) []byte {
size := 8
b := 0
@ -1423,8 +1412,8 @@ type PrintGetPrinterListCookie struct {
}
// PrintGetPrinterList sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintGetPrinterListCookie.Reply()
func PrintGetPrinterList(c *xgb.Conn, PrinterNameLen uint32, LocaleLen uint32, PrinterName []String8, Locale []String8) PrintGetPrinterListCookie {
// If an error occurs, it will be returned with the reply by calling PrintGetPrinterListCookie.Reply.
func PrintGetPrinterList(c *xgb.Conn, PrinterNameLen, LocaleLen uint32, PrinterName, Locale []String8) PrintGetPrinterListCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XpExtension"]; !ok {
@ -1437,7 +1426,7 @@ func PrintGetPrinterList(c *xgb.Conn, PrinterNameLen uint32, LocaleLen uint32, P
// PrintGetPrinterListUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintGetPrinterListUnchecked(c *xgb.Conn, PrinterNameLen uint32, LocaleLen uint32, PrinterName []String8, Locale []String8) PrintGetPrinterListCookie {
func PrintGetPrinterListUnchecked(c *xgb.Conn, PrinterNameLen, LocaleLen uint32, PrinterName, Locale []String8) PrintGetPrinterListCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XpExtension"]; !ok {
@ -1494,9 +1483,8 @@ func printGetPrinterListReply(buf []byte) *PrintGetPrinterListReply {
return v
}
// Write request to wire for PrintGetPrinterList
// printGetPrinterListRequest writes a PrintGetPrinterList request to a byte slice.
func printGetPrinterListRequest(c *xgb.Conn, PrinterNameLen uint32, LocaleLen uint32, PrinterName []String8, Locale []String8) []byte {
// printGetPrinterListRequest writes a PrintGetPrinterList request to a byte slice for transfer.
func printGetPrinterListRequest(c *xgb.Conn, PrinterNameLen, LocaleLen uint32, PrinterName, Locale []String8) []byte {
size := xgb.Pad(((12 + xgb.Pad((int(PrinterNameLen) * 1))) + xgb.Pad((int(LocaleLen) * 1))))
b := 0
buf := make([]byte, size)
@ -1537,7 +1525,7 @@ type PrintGetScreenOfContextCookie struct {
}
// PrintGetScreenOfContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintGetScreenOfContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling PrintGetScreenOfContextCookie.Reply.
func PrintGetScreenOfContext(c *xgb.Conn) PrintGetScreenOfContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1601,8 +1589,7 @@ func printGetScreenOfContextReply(buf []byte) *PrintGetScreenOfContextReply {
return v
}
// Write request to wire for PrintGetScreenOfContext
// printGetScreenOfContextRequest writes a PrintGetScreenOfContext request to a byte slice.
// printGetScreenOfContextRequest writes a PrintGetScreenOfContext request to a byte slice for transfer.
func printGetScreenOfContextRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -1628,7 +1615,7 @@ type PrintInputSelectedCookie struct {
}
// PrintInputSelected sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintInputSelectedCookie.Reply()
// If an error occurs, it will be returned with the reply by calling PrintInputSelectedCookie.Reply.
func PrintInputSelected(c *xgb.Conn, Context Pcontext) PrintInputSelectedCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1696,8 +1683,7 @@ func printInputSelectedReply(buf []byte) *PrintInputSelectedReply {
return v
}
// Write request to wire for PrintInputSelected
// printInputSelectedRequest writes a PrintInputSelected request to a byte slice.
// printInputSelectedRequest writes a PrintInputSelected request to a byte slice for transfer.
func printInputSelectedRequest(c *xgb.Conn, Context Pcontext) []byte {
size := 8
b := 0
@ -1727,7 +1713,7 @@ type PrintPutDocumentDataCookie struct {
// PrintPutDocumentData sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintPutDocumentData(c *xgb.Conn, Drawable xproto.Drawable, LenData uint32, LenFmt uint16, LenOptions uint16, Data []byte, DocFormat []String8, Options []String8) PrintPutDocumentDataCookie {
func PrintPutDocumentData(c *xgb.Conn, Drawable xproto.Drawable, LenData uint32, LenFmt, LenOptions uint16, Data []byte, DocFormat, Options []String8) PrintPutDocumentDataCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XpExtension"]; !ok {
@ -1739,8 +1725,8 @@ func PrintPutDocumentData(c *xgb.Conn, Drawable xproto.Drawable, LenData uint32,
}
// PrintPutDocumentDataChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintPutDocumentDataCookie.Check()
func PrintPutDocumentDataChecked(c *xgb.Conn, Drawable xproto.Drawable, LenData uint32, LenFmt uint16, LenOptions uint16, Data []byte, DocFormat []String8, Options []String8) PrintPutDocumentDataCookie {
// If an error occurs, it can be retrieved using PrintPutDocumentDataCookie.Check.
func PrintPutDocumentDataChecked(c *xgb.Conn, Drawable xproto.Drawable, LenData uint32, LenFmt, LenOptions uint16, Data []byte, DocFormat, Options []String8) PrintPutDocumentDataCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XpExtension"]; !ok {
@ -1757,9 +1743,8 @@ func (cook PrintPutDocumentDataCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for PrintPutDocumentData
// printPutDocumentDataRequest writes a PrintPutDocumentData request to a byte slice.
func printPutDocumentDataRequest(c *xgb.Conn, Drawable xproto.Drawable, LenData uint32, LenFmt uint16, LenOptions uint16, Data []byte, DocFormat []String8, Options []String8) []byte {
// printPutDocumentDataRequest writes a PrintPutDocumentData request to a byte slice for transfer.
func printPutDocumentDataRequest(c *xgb.Conn, Drawable xproto.Drawable, LenData uint32, LenFmt, LenOptions uint16, Data []byte, DocFormat, Options []String8) []byte {
size := xgb.Pad((((16 + xgb.Pad((int(LenData) * 1))) + xgb.Pad((int(LenFmt) * 1))) + xgb.Pad((int(LenOptions) * 1))))
b := 0
buf := make([]byte, size)
@ -1809,7 +1794,7 @@ type PrintQueryScreensCookie struct {
}
// PrintQueryScreens sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintQueryScreensCookie.Reply()
// If an error occurs, it will be returned with the reply by calling PrintQueryScreensCookie.Reply.
func PrintQueryScreens(c *xgb.Conn) PrintQueryScreensCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1883,8 +1868,7 @@ func printQueryScreensReply(buf []byte) *PrintQueryScreensReply {
return v
}
// Write request to wire for PrintQueryScreens
// printQueryScreensRequest writes a PrintQueryScreens request to a byte slice.
// printQueryScreensRequest writes a PrintQueryScreens request to a byte slice for transfer.
func printQueryScreensRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -1910,7 +1894,7 @@ type PrintQueryVersionCookie struct {
}
// PrintQueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintQueryVersionCookie.Reply()
// If an error occurs, it will be returned with the reply by calling PrintQueryVersionCookie.Reply.
func PrintQueryVersion(c *xgb.Conn) PrintQueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1978,8 +1962,7 @@ func printQueryVersionReply(buf []byte) *PrintQueryVersionReply {
return v
}
// Write request to wire for PrintQueryVersion
// printQueryVersionRequest writes a PrintQueryVersion request to a byte slice.
// printQueryVersionRequest writes a PrintQueryVersion request to a byte slice for transfer.
func printQueryVersionRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -2018,7 +2001,7 @@ func PrintRehashPrinterList(c *xgb.Conn) PrintRehashPrinterListCookie {
}
// PrintRehashPrinterListChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintRehashPrinterListCookie.Check()
// If an error occurs, it can be retrieved using PrintRehashPrinterListCookie.Check.
func PrintRehashPrinterListChecked(c *xgb.Conn) PrintRehashPrinterListCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2036,8 +2019,7 @@ func (cook PrintRehashPrinterListCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for PrintRehashPrinterList
// printRehashPrinterListRequest writes a PrintRehashPrinterList request to a byte slice.
// printRehashPrinterListRequest writes a PrintRehashPrinterList request to a byte slice for transfer.
func printRehashPrinterListRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -2076,7 +2058,7 @@ func PrintSelectInput(c *xgb.Conn, Context Pcontext, EventMask uint32) PrintSele
}
// PrintSelectInputChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintSelectInputCookie.Check()
// If an error occurs, it can be retrieved using PrintSelectInputCookie.Check.
func PrintSelectInputChecked(c *xgb.Conn, Context Pcontext, EventMask uint32) PrintSelectInputCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2094,8 +2076,7 @@ func (cook PrintSelectInputCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for PrintSelectInput
// printSelectInputRequest writes a PrintSelectInput request to a byte slice.
// printSelectInputRequest writes a PrintSelectInput request to a byte slice for transfer.
func printSelectInputRequest(c *xgb.Conn, Context Pcontext, EventMask uint32) []byte {
size := 12
b := 0
@ -2128,7 +2109,7 @@ type PrintSetAttributesCookie struct {
// PrintSetAttributes sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintSetAttributes(c *xgb.Conn, Context Pcontext, StringLen uint32, Pool byte, Rule byte, Attributes []String8) PrintSetAttributesCookie {
func PrintSetAttributes(c *xgb.Conn, Context Pcontext, StringLen uint32, Pool, Rule byte, Attributes []String8) PrintSetAttributesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XpExtension"]; !ok {
@ -2140,8 +2121,8 @@ func PrintSetAttributes(c *xgb.Conn, Context Pcontext, StringLen uint32, Pool by
}
// PrintSetAttributesChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintSetAttributesCookie.Check()
func PrintSetAttributesChecked(c *xgb.Conn, Context Pcontext, StringLen uint32, Pool byte, Rule byte, Attributes []String8) PrintSetAttributesCookie {
// If an error occurs, it can be retrieved using PrintSetAttributesCookie.Check.
func PrintSetAttributesChecked(c *xgb.Conn, Context Pcontext, StringLen uint32, Pool, Rule byte, Attributes []String8) PrintSetAttributesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XpExtension"]; !ok {
@ -2158,9 +2139,8 @@ func (cook PrintSetAttributesCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for PrintSetAttributes
// printSetAttributesRequest writes a PrintSetAttributes request to a byte slice.
func printSetAttributesRequest(c *xgb.Conn, Context Pcontext, StringLen uint32, Pool byte, Rule byte, Attributes []String8) []byte {
// printSetAttributesRequest writes a PrintSetAttributes request to a byte slice for transfer.
func printSetAttributesRequest(c *xgb.Conn, Context Pcontext, StringLen uint32, Pool, Rule byte, Attributes []String8) []byte {
size := xgb.Pad((16 + xgb.Pad((len(Attributes) * 1))))
b := 0
buf := make([]byte, size)
@ -2217,7 +2197,7 @@ func PrintSetContext(c *xgb.Conn, Context uint32) PrintSetContextCookie {
}
// PrintSetContextChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintSetContextCookie.Check()
// If an error occurs, it can be retrieved using PrintSetContextCookie.Check.
func PrintSetContextChecked(c *xgb.Conn, Context uint32) PrintSetContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2235,8 +2215,7 @@ func (cook PrintSetContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for PrintSetContext
// printSetContextRequest writes a PrintSetContext request to a byte slice.
// printSetContextRequest writes a PrintSetContext request to a byte slice for transfer.
func printSetContextRequest(c *xgb.Conn, Context uint32) []byte {
size := 8
b := 0
@ -2265,7 +2244,7 @@ type PrintSetImageResolutionCookie struct {
}
// PrintSetImageResolution sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintSetImageResolutionCookie.Reply()
// If an error occurs, it will be returned with the reply by calling PrintSetImageResolutionCookie.Reply.
func PrintSetImageResolution(c *xgb.Conn, Context Pcontext, ImageResolution uint16) PrintSetImageResolutionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2334,8 +2313,7 @@ func printSetImageResolutionReply(buf []byte) *PrintSetImageResolutionReply {
return v
}
// Write request to wire for PrintSetImageResolution
// printSetImageResolutionRequest writes a PrintSetImageResolution request to a byte slice.
// printSetImageResolutionRequest writes a PrintSetImageResolution request to a byte slice for transfer.
func printSetImageResolutionRequest(c *xgb.Conn, Context Pcontext, ImageResolution uint16) []byte {
size := 12
b := 0
@ -2380,7 +2358,7 @@ func PrintStartDoc(c *xgb.Conn, DriverMode byte) PrintStartDocCookie {
}
// PrintStartDocChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintStartDocCookie.Check()
// If an error occurs, it can be retrieved using PrintStartDocCookie.Check.
func PrintStartDocChecked(c *xgb.Conn, DriverMode byte) PrintStartDocCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2398,8 +2376,7 @@ func (cook PrintStartDocCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for PrintStartDoc
// printStartDocRequest writes a PrintStartDoc request to a byte slice.
// printStartDocRequest writes a PrintStartDoc request to a byte slice for transfer.
func printStartDocRequest(c *xgb.Conn, DriverMode byte) []byte {
size := 8
b := 0
@ -2441,7 +2418,7 @@ func PrintStartJob(c *xgb.Conn, OutputMode byte) PrintStartJobCookie {
}
// PrintStartJobChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintStartJobCookie.Check()
// If an error occurs, it can be retrieved using PrintStartJobCookie.Check.
func PrintStartJobChecked(c *xgb.Conn, OutputMode byte) PrintStartJobCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2459,8 +2436,7 @@ func (cook PrintStartJobCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for PrintStartJob
// printStartJobRequest writes a PrintStartJob request to a byte slice.
// printStartJobRequest writes a PrintStartJob request to a byte slice for transfer.
func printStartJobRequest(c *xgb.Conn, OutputMode byte) []byte {
size := 8
b := 0
@ -2502,7 +2478,7 @@ func PrintStartPage(c *xgb.Conn, Window xproto.Window) PrintStartPageCookie {
}
// PrintStartPageChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintStartPageCookie.Check()
// If an error occurs, it can be retrieved using PrintStartPageCookie.Check.
func PrintStartPageChecked(c *xgb.Conn, Window xproto.Window) PrintStartPageCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2520,8 +2496,7 @@ func (cook PrintStartPageCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for PrintStartPage
// printStartPageRequest writes a PrintStartPage request to a byte slice.
// printStartPageRequest writes a PrintStartPage request to a byte slice for transfer.
func printStartPageRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0

File diff suppressed because it is too large Load Diff

View File

@ -173,7 +173,7 @@ type GetClientContextCookie struct {
}
// GetClientContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetClientContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetClientContextCookie.Reply.
func GetClientContext(c *xgb.Conn, Resource uint32) GetClientContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -248,8 +248,7 @@ func getClientContextReply(buf []byte) *GetClientContextReply {
return v
}
// Write request to wire for GetClientContext
// getClientContextRequest writes a GetClientContext request to a byte slice.
// getClientContextRequest writes a GetClientContext request to a byte slice for transfer.
func getClientContextRequest(c *xgb.Conn, Resource uint32) []byte {
size := 8
b := 0
@ -278,7 +277,7 @@ type GetDeviceContextCookie struct {
}
// GetDeviceContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetDeviceContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetDeviceContextCookie.Reply.
func GetDeviceContext(c *xgb.Conn, Device uint32) GetDeviceContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -353,8 +352,7 @@ func getDeviceContextReply(buf []byte) *GetDeviceContextReply {
return v
}
// Write request to wire for GetDeviceContext
// getDeviceContextRequest writes a GetDeviceContext request to a byte slice.
// getDeviceContextRequest writes a GetDeviceContext request to a byte slice for transfer.
func getDeviceContextRequest(c *xgb.Conn, Device uint32) []byte {
size := 8
b := 0
@ -383,7 +381,7 @@ type GetDeviceCreateContextCookie struct {
}
// GetDeviceCreateContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetDeviceCreateContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetDeviceCreateContextCookie.Reply.
func GetDeviceCreateContext(c *xgb.Conn) GetDeviceCreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -458,8 +456,7 @@ func getDeviceCreateContextReply(buf []byte) *GetDeviceCreateContextReply {
return v
}
// Write request to wire for GetDeviceCreateContext
// getDeviceCreateContextRequest writes a GetDeviceCreateContext request to a byte slice.
// getDeviceCreateContextRequest writes a GetDeviceCreateContext request to a byte slice for transfer.
func getDeviceCreateContextRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -485,7 +482,7 @@ type GetPropertyContextCookie struct {
}
// GetPropertyContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetPropertyContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetPropertyContextCookie.Reply.
func GetPropertyContext(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -560,8 +557,7 @@ func getPropertyContextReply(buf []byte) *GetPropertyContextReply {
return v
}
// Write request to wire for GetPropertyContext
// getPropertyContextRequest writes a GetPropertyContext request to a byte slice.
// getPropertyContextRequest writes a GetPropertyContext request to a byte slice for transfer.
func getPropertyContextRequest(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) []byte {
size := 12
b := 0
@ -593,7 +589,7 @@ type GetPropertyCreateContextCookie struct {
}
// GetPropertyCreateContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetPropertyCreateContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetPropertyCreateContextCookie.Reply.
func GetPropertyCreateContext(c *xgb.Conn) GetPropertyCreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -668,8 +664,7 @@ func getPropertyCreateContextReply(buf []byte) *GetPropertyCreateContextReply {
return v
}
// Write request to wire for GetPropertyCreateContext
// getPropertyCreateContextRequest writes a GetPropertyCreateContext request to a byte slice.
// getPropertyCreateContextRequest writes a GetPropertyCreateContext request to a byte slice for transfer.
func getPropertyCreateContextRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -695,7 +690,7 @@ type GetPropertyDataContextCookie struct {
}
// GetPropertyDataContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetPropertyDataContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetPropertyDataContextCookie.Reply.
func GetPropertyDataContext(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyDataContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -770,8 +765,7 @@ func getPropertyDataContextReply(buf []byte) *GetPropertyDataContextReply {
return v
}
// Write request to wire for GetPropertyDataContext
// getPropertyDataContextRequest writes a GetPropertyDataContext request to a byte slice.
// getPropertyDataContextRequest writes a GetPropertyDataContext request to a byte slice for transfer.
func getPropertyDataContextRequest(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) []byte {
size := 12
b := 0
@ -803,7 +797,7 @@ type GetPropertyUseContextCookie struct {
}
// GetPropertyUseContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetPropertyUseContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetPropertyUseContextCookie.Reply.
func GetPropertyUseContext(c *xgb.Conn) GetPropertyUseContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -878,8 +872,7 @@ func getPropertyUseContextReply(buf []byte) *GetPropertyUseContextReply {
return v
}
// Write request to wire for GetPropertyUseContext
// getPropertyUseContextRequest writes a GetPropertyUseContext request to a byte slice.
// getPropertyUseContextRequest writes a GetPropertyUseContext request to a byte slice for transfer.
func getPropertyUseContextRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -905,7 +898,7 @@ type GetSelectionContextCookie struct {
}
// GetSelectionContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetSelectionContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetSelectionContextCookie.Reply.
func GetSelectionContext(c *xgb.Conn, Selection xproto.Atom) GetSelectionContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -980,8 +973,7 @@ func getSelectionContextReply(buf []byte) *GetSelectionContextReply {
return v
}
// Write request to wire for GetSelectionContext
// getSelectionContextRequest writes a GetSelectionContext request to a byte slice.
// getSelectionContextRequest writes a GetSelectionContext request to a byte slice for transfer.
func getSelectionContextRequest(c *xgb.Conn, Selection xproto.Atom) []byte {
size := 8
b := 0
@ -1010,7 +1002,7 @@ type GetSelectionCreateContextCookie struct {
}
// GetSelectionCreateContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetSelectionCreateContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetSelectionCreateContextCookie.Reply.
func GetSelectionCreateContext(c *xgb.Conn) GetSelectionCreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1085,8 +1077,7 @@ func getSelectionCreateContextReply(buf []byte) *GetSelectionCreateContextReply
return v
}
// Write request to wire for GetSelectionCreateContext
// getSelectionCreateContextRequest writes a GetSelectionCreateContext request to a byte slice.
// getSelectionCreateContextRequest writes a GetSelectionCreateContext request to a byte slice for transfer.
func getSelectionCreateContextRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -1112,7 +1103,7 @@ type GetSelectionDataContextCookie struct {
}
// GetSelectionDataContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetSelectionDataContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetSelectionDataContextCookie.Reply.
func GetSelectionDataContext(c *xgb.Conn, Selection xproto.Atom) GetSelectionDataContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1187,8 +1178,7 @@ func getSelectionDataContextReply(buf []byte) *GetSelectionDataContextReply {
return v
}
// Write request to wire for GetSelectionDataContext
// getSelectionDataContextRequest writes a GetSelectionDataContext request to a byte slice.
// getSelectionDataContextRequest writes a GetSelectionDataContext request to a byte slice for transfer.
func getSelectionDataContextRequest(c *xgb.Conn, Selection xproto.Atom) []byte {
size := 8
b := 0
@ -1217,7 +1207,7 @@ type GetSelectionUseContextCookie struct {
}
// GetSelectionUseContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetSelectionUseContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetSelectionUseContextCookie.Reply.
func GetSelectionUseContext(c *xgb.Conn) GetSelectionUseContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1292,8 +1282,7 @@ func getSelectionUseContextReply(buf []byte) *GetSelectionUseContextReply {
return v
}
// Write request to wire for GetSelectionUseContext
// getSelectionUseContextRequest writes a GetSelectionUseContext request to a byte slice.
// getSelectionUseContextRequest writes a GetSelectionUseContext request to a byte slice for transfer.
func getSelectionUseContextRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -1319,7 +1308,7 @@ type GetWindowContextCookie struct {
}
// GetWindowContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetWindowContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetWindowContextCookie.Reply.
func GetWindowContext(c *xgb.Conn, Window xproto.Window) GetWindowContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1394,8 +1383,7 @@ func getWindowContextReply(buf []byte) *GetWindowContextReply {
return v
}
// Write request to wire for GetWindowContext
// getWindowContextRequest writes a GetWindowContext request to a byte slice.
// getWindowContextRequest writes a GetWindowContext request to a byte slice for transfer.
func getWindowContextRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@ -1424,7 +1412,7 @@ type GetWindowCreateContextCookie struct {
}
// GetWindowCreateContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetWindowCreateContextCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetWindowCreateContextCookie.Reply.
func GetWindowCreateContext(c *xgb.Conn) GetWindowCreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1499,8 +1487,7 @@ func getWindowCreateContextReply(buf []byte) *GetWindowCreateContextReply {
return v
}
// Write request to wire for GetWindowCreateContext
// getWindowCreateContextRequest writes a GetWindowCreateContext request to a byte slice.
// getWindowCreateContextRequest writes a GetWindowCreateContext request to a byte slice for transfer.
func getWindowCreateContextRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -1526,7 +1513,7 @@ type ListPropertiesCookie struct {
}
// ListProperties sends a checked request.
// If an error occurs, it will be returned with the reply by calling ListPropertiesCookie.Reply()
// If an error occurs, it will be returned with the reply by calling ListPropertiesCookie.Reply.
func ListProperties(c *xgb.Conn, Window xproto.Window) ListPropertiesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1597,8 +1584,7 @@ func listPropertiesReply(buf []byte) *ListPropertiesReply {
return v
}
// Write request to wire for ListProperties
// listPropertiesRequest writes a ListProperties request to a byte slice.
// listPropertiesRequest writes a ListProperties request to a byte slice for transfer.
func listPropertiesRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@ -1627,7 +1613,7 @@ type ListSelectionsCookie struct {
}
// ListSelections sends a checked request.
// If an error occurs, it will be returned with the reply by calling ListSelectionsCookie.Reply()
// If an error occurs, it will be returned with the reply by calling ListSelectionsCookie.Reply.
func ListSelections(c *xgb.Conn) ListSelectionsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1698,8 +1684,7 @@ func listSelectionsReply(buf []byte) *ListSelectionsReply {
return v
}
// Write request to wire for ListSelections
// listSelectionsRequest writes a ListSelections request to a byte slice.
// listSelectionsRequest writes a ListSelections request to a byte slice for transfer.
func listSelectionsRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -1725,8 +1710,8 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersion(c *xgb.Conn, ClientMajor byte, ClientMinor byte) QueryVersionCookie {
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn, ClientMajor, ClientMinor byte) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["SELinux"]; !ok {
@ -1739,7 +1724,7 @@ func QueryVersion(c *xgb.Conn, ClientMajor byte, ClientMinor byte) QueryVersionC
// QueryVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryVersionUnchecked(c *xgb.Conn, ClientMajor byte, ClientMinor byte) QueryVersionCookie {
func QueryVersionUnchecked(c *xgb.Conn, ClientMajor, ClientMinor byte) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["SELinux"]; !ok {
@ -1793,9 +1778,8 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
// Write request to wire for QueryVersion
// queryVersionRequest writes a QueryVersion request to a byte slice.
func queryVersionRequest(c *xgb.Conn, ClientMajor byte, ClientMinor byte) []byte {
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn, ClientMajor, ClientMinor byte) []byte {
size := 8
b := 0
buf := make([]byte, size)
@ -1827,7 +1811,7 @@ type SetDeviceContextCookie struct {
// SetDeviceContext sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetDeviceContext(c *xgb.Conn, Device uint32, ContextLen uint32, Context string) SetDeviceContextCookie {
func SetDeviceContext(c *xgb.Conn, Device, ContextLen uint32, Context string) SetDeviceContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["SELinux"]; !ok {
@ -1839,8 +1823,8 @@ func SetDeviceContext(c *xgb.Conn, Device uint32, ContextLen uint32, Context str
}
// SetDeviceContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetDeviceContextCookie.Check()
func SetDeviceContextChecked(c *xgb.Conn, Device uint32, ContextLen uint32, Context string) SetDeviceContextCookie {
// If an error occurs, it can be retrieved using SetDeviceContextCookie.Check.
func SetDeviceContextChecked(c *xgb.Conn, Device, ContextLen uint32, Context string) SetDeviceContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["SELinux"]; !ok {
@ -1857,9 +1841,8 @@ func (cook SetDeviceContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetDeviceContext
// setDeviceContextRequest writes a SetDeviceContext request to a byte slice.
func setDeviceContextRequest(c *xgb.Conn, Device uint32, ContextLen uint32, Context string) []byte {
// setDeviceContextRequest writes a SetDeviceContext request to a byte slice for transfer.
func setDeviceContextRequest(c *xgb.Conn, Device, ContextLen uint32, Context string) []byte {
size := xgb.Pad((12 + xgb.Pad((int(ContextLen) * 1))))
b := 0
buf := make([]byte, size)
@ -1906,7 +1889,7 @@ func SetDeviceCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetD
}
// SetDeviceCreateContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetDeviceCreateContextCookie.Check()
// If an error occurs, it can be retrieved using SetDeviceCreateContextCookie.Check.
func SetDeviceCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetDeviceCreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1924,8 +1907,7 @@ func (cook SetDeviceCreateContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetDeviceCreateContext
// setDeviceCreateContextRequest writes a SetDeviceCreateContext request to a byte slice.
// setDeviceCreateContextRequest writes a SetDeviceCreateContext request to a byte slice for transfer.
func setDeviceCreateContextRequest(c *xgb.Conn, ContextLen uint32, Context string) []byte {
size := xgb.Pad((8 + xgb.Pad((int(ContextLen) * 1))))
b := 0
@ -1970,7 +1952,7 @@ func SetPropertyCreateContext(c *xgb.Conn, ContextLen uint32, Context string) Se
}
// SetPropertyCreateContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetPropertyCreateContextCookie.Check()
// If an error occurs, it can be retrieved using SetPropertyCreateContextCookie.Check.
func SetPropertyCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyCreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1988,8 +1970,7 @@ func (cook SetPropertyCreateContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetPropertyCreateContext
// setPropertyCreateContextRequest writes a SetPropertyCreateContext request to a byte slice.
// setPropertyCreateContextRequest writes a SetPropertyCreateContext request to a byte slice for transfer.
func setPropertyCreateContextRequest(c *xgb.Conn, ContextLen uint32, Context string) []byte {
size := xgb.Pad((8 + xgb.Pad((int(ContextLen) * 1))))
b := 0
@ -2034,7 +2015,7 @@ func SetPropertyUseContext(c *xgb.Conn, ContextLen uint32, Context string) SetPr
}
// SetPropertyUseContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetPropertyUseContextCookie.Check()
// If an error occurs, it can be retrieved using SetPropertyUseContextCookie.Check.
func SetPropertyUseContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyUseContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2052,8 +2033,7 @@ func (cook SetPropertyUseContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetPropertyUseContext
// setPropertyUseContextRequest writes a SetPropertyUseContext request to a byte slice.
// setPropertyUseContextRequest writes a SetPropertyUseContext request to a byte slice for transfer.
func setPropertyUseContextRequest(c *xgb.Conn, ContextLen uint32, Context string) []byte {
size := xgb.Pad((8 + xgb.Pad((int(ContextLen) * 1))))
b := 0
@ -2098,7 +2078,7 @@ func SetSelectionCreateContext(c *xgb.Conn, ContextLen uint32, Context string) S
}
// SetSelectionCreateContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetSelectionCreateContextCookie.Check()
// If an error occurs, it can be retrieved using SetSelectionCreateContextCookie.Check.
func SetSelectionCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionCreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2116,8 +2096,7 @@ func (cook SetSelectionCreateContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetSelectionCreateContext
// setSelectionCreateContextRequest writes a SetSelectionCreateContext request to a byte slice.
// setSelectionCreateContextRequest writes a SetSelectionCreateContext request to a byte slice for transfer.
func setSelectionCreateContextRequest(c *xgb.Conn, ContextLen uint32, Context string) []byte {
size := xgb.Pad((8 + xgb.Pad((int(ContextLen) * 1))))
b := 0
@ -2162,7 +2141,7 @@ func SetSelectionUseContext(c *xgb.Conn, ContextLen uint32, Context string) SetS
}
// SetSelectionUseContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetSelectionUseContextCookie.Check()
// If an error occurs, it can be retrieved using SetSelectionUseContextCookie.Check.
func SetSelectionUseContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionUseContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2180,8 +2159,7 @@ func (cook SetSelectionUseContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetSelectionUseContext
// setSelectionUseContextRequest writes a SetSelectionUseContext request to a byte slice.
// setSelectionUseContextRequest writes a SetSelectionUseContext request to a byte slice for transfer.
func setSelectionUseContextRequest(c *xgb.Conn, ContextLen uint32, Context string) []byte {
size := xgb.Pad((8 + xgb.Pad((int(ContextLen) * 1))))
b := 0
@ -2226,7 +2204,7 @@ func SetWindowCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetW
}
// SetWindowCreateContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetWindowCreateContextCookie.Check()
// If an error occurs, it can be retrieved using SetWindowCreateContextCookie.Check.
func SetWindowCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetWindowCreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2244,8 +2222,7 @@ func (cook SetWindowCreateContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetWindowCreateContext
// setWindowCreateContextRequest writes a SetWindowCreateContext request to a byte slice.
// setWindowCreateContextRequest writes a SetWindowCreateContext request to a byte slice for transfer.
func setWindowCreateContextRequest(c *xgb.Conn, ContextLen uint32, Context string) []byte {
size := xgb.Pad((8 + xgb.Pad((int(ContextLen) * 1))))
b := 0

View File

@ -76,7 +76,7 @@ type CompareCursorCookie struct {
}
// CompareCursor sends a checked request.
// If an error occurs, it will be returned with the reply by calling CompareCursorCookie.Reply()
// If an error occurs, it will be returned with the reply by calling CompareCursorCookie.Reply.
func CompareCursor(c *xgb.Conn, Window xproto.Window, Cursor xproto.Cursor) CompareCursorCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -141,8 +141,7 @@ func compareCursorReply(buf []byte) *CompareCursorReply {
return v
}
// Write request to wire for CompareCursor
// compareCursorRequest writes a CompareCursor request to a byte slice.
// compareCursorRequest writes a CompareCursor request to a byte slice for transfer.
func compareCursorRequest(c *xgb.Conn, Window xproto.Window, Cursor xproto.Cursor) []byte {
size := 12
b := 0
@ -175,7 +174,7 @@ type FakeInputCookie struct {
// FakeInput sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func FakeInput(c *xgb.Conn, Type byte, Detail byte, Time uint32, Root xproto.Window, RootX int16, RootY int16, Deviceid byte) FakeInputCookie {
func FakeInput(c *xgb.Conn, Type, Detail byte, Time uint32, Root xproto.Window, RootX, RootY int16, Deviceid byte) FakeInputCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XTEST"]; !ok {
@ -187,8 +186,8 @@ func FakeInput(c *xgb.Conn, Type byte, Detail byte, Time uint32, Root xproto.Win
}
// FakeInputChecked sends a checked request.
// If an error occurs, it can be retrieved using FakeInputCookie.Check()
func FakeInputChecked(c *xgb.Conn, Type byte, Detail byte, Time uint32, Root xproto.Window, RootX int16, RootY int16, Deviceid byte) FakeInputCookie {
// If an error occurs, it can be retrieved using FakeInputCookie.Check.
func FakeInputChecked(c *xgb.Conn, Type, Detail byte, Time uint32, Root xproto.Window, RootX, RootY int16, Deviceid byte) FakeInputCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XTEST"]; !ok {
@ -205,9 +204,8 @@ func (cook FakeInputCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for FakeInput
// fakeInputRequest writes a FakeInput request to a byte slice.
func fakeInputRequest(c *xgb.Conn, Type byte, Detail byte, Time uint32, Root xproto.Window, RootX int16, RootY int16, Deviceid byte) []byte {
// fakeInputRequest writes a FakeInput request to a byte slice for transfer.
func fakeInputRequest(c *xgb.Conn, Type, Detail byte, Time uint32, Root xproto.Window, RootX, RootY int16, Deviceid byte) []byte {
size := 36
b := 0
buf := make([]byte, size)
@ -259,7 +257,7 @@ type GetVersionCookie struct {
}
// GetVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetVersionCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetVersionCookie.Reply.
func GetVersion(c *xgb.Conn, MajorVersion byte, MinorVersion uint16) GetVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -324,8 +322,7 @@ func getVersionReply(buf []byte) *GetVersionReply {
return v
}
// Write request to wire for GetVersion
// getVersionRequest writes a GetVersion request to a byte slice.
// getVersionRequest writes a GetVersion request to a byte slice for transfer.
func getVersionRequest(c *xgb.Conn, MajorVersion byte, MinorVersion uint16) []byte {
size := 8
b := 0
@ -372,7 +369,7 @@ func GrabControl(c *xgb.Conn, Impervious bool) GrabControlCookie {
}
// GrabControlChecked sends a checked request.
// If an error occurs, it can be retrieved using GrabControlCookie.Check()
// If an error occurs, it can be retrieved using GrabControlCookie.Check.
func GrabControlChecked(c *xgb.Conn, Impervious bool) GrabControlCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -390,8 +387,7 @@ func (cook GrabControlCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for GrabControl
// grabControlRequest writes a GrabControl request to a byte slice.
// grabControlRequest writes a GrabControl request to a byte slice for transfer.
func grabControlRequest(c *xgb.Conn, Impervious bool) []byte {
size := 8
b := 0

View File

@ -1215,7 +1215,7 @@ type GetPortAttributeCookie struct {
}
// GetPortAttribute sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetPortAttributeCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GetPortAttributeCookie.Reply.
func GetPortAttribute(c *xgb.Conn, Port Port, Attribute xproto.Atom) GetPortAttributeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1279,8 +1279,7 @@ func getPortAttributeReply(buf []byte) *GetPortAttributeReply {
return v
}
// Write request to wire for GetPortAttribute
// getPortAttributeRequest writes a GetPortAttribute request to a byte slice.
// getPortAttributeRequest writes a GetPortAttribute request to a byte slice for transfer.
func getPortAttributeRequest(c *xgb.Conn, Port Port, Attribute xproto.Atom) []byte {
size := 12
b := 0
@ -1313,7 +1312,7 @@ type GetStillCookie struct {
// GetStill sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetStill(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) GetStillCookie {
func GetStill(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX, VidY int16, VidW, VidH uint16, DrwX, DrwY int16, DrwW, DrwH uint16) GetStillCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo"]; !ok {
@ -1325,8 +1324,8 @@ func GetStill(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gconte
}
// GetStillChecked sends a checked request.
// If an error occurs, it can be retrieved using GetStillCookie.Check()
func GetStillChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) GetStillCookie {
// If an error occurs, it can be retrieved using GetStillCookie.Check.
func GetStillChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX, VidY int16, VidW, VidH uint16, DrwX, DrwY int16, DrwW, DrwH uint16) GetStillCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo"]; !ok {
@ -1343,9 +1342,8 @@ func (cook GetStillCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for GetStill
// getStillRequest writes a GetStill request to a byte slice.
func getStillRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) []byte {
// getStillRequest writes a GetStill request to a byte slice for transfer.
func getStillRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX, VidY int16, VidW, VidH uint16, DrwX, DrwY int16, DrwW, DrwH uint16) []byte {
size := 32
b := 0
buf := make([]byte, size)
@ -1404,7 +1402,7 @@ type GetVideoCookie struct {
// GetVideo sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetVideo(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) GetVideoCookie {
func GetVideo(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX, VidY int16, VidW, VidH uint16, DrwX, DrwY int16, DrwW, DrwH uint16) GetVideoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo"]; !ok {
@ -1416,8 +1414,8 @@ func GetVideo(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gconte
}
// GetVideoChecked sends a checked request.
// If an error occurs, it can be retrieved using GetVideoCookie.Check()
func GetVideoChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) GetVideoCookie {
// If an error occurs, it can be retrieved using GetVideoCookie.Check.
func GetVideoChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX, VidY int16, VidW, VidH uint16, DrwX, DrwY int16, DrwW, DrwH uint16) GetVideoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo"]; !ok {
@ -1434,9 +1432,8 @@ func (cook GetVideoCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for GetVideo
// getVideoRequest writes a GetVideo request to a byte slice.
func getVideoRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) []byte {
// getVideoRequest writes a GetVideo request to a byte slice for transfer.
func getVideoRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX, VidY int16, VidW, VidH uint16, DrwX, DrwY int16, DrwW, DrwH uint16) []byte {
size := 32
b := 0
buf := make([]byte, size)
@ -1494,7 +1491,7 @@ type GrabPortCookie struct {
}
// GrabPort sends a checked request.
// If an error occurs, it will be returned with the reply by calling GrabPortCookie.Reply()
// If an error occurs, it will be returned with the reply by calling GrabPortCookie.Reply.
func GrabPort(c *xgb.Conn, Port Port, Time xproto.Timestamp) GrabPortCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1555,8 +1552,7 @@ func grabPortReply(buf []byte) *GrabPortReply {
return v
}
// Write request to wire for GrabPort
// grabPortRequest writes a GrabPort request to a byte slice.
// grabPortRequest writes a GrabPort request to a byte slice for transfer.
func grabPortRequest(c *xgb.Conn, Port Port, Time xproto.Timestamp) []byte {
size := 12
b := 0
@ -1588,7 +1584,7 @@ type ListImageFormatsCookie struct {
}
// ListImageFormats sends a checked request.
// If an error occurs, it will be returned with the reply by calling ListImageFormatsCookie.Reply()
// If an error occurs, it will be returned with the reply by calling ListImageFormatsCookie.Reply.
func ListImageFormats(c *xgb.Conn, Port Port) ListImageFormatsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1659,8 +1655,7 @@ func listImageFormatsReply(buf []byte) *ListImageFormatsReply {
return v
}
// Write request to wire for ListImageFormats
// listImageFormatsRequest writes a ListImageFormats request to a byte slice.
// listImageFormatsRequest writes a ListImageFormats request to a byte slice for transfer.
func listImageFormatsRequest(c *xgb.Conn, Port Port) []byte {
size := 8
b := 0
@ -1690,7 +1685,7 @@ type PutImageCookie struct {
// PutImage sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PutImage(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Id uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, Data []byte) PutImageCookie {
func PutImage(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Id uint32, SrcX, SrcY int16, SrcW, SrcH uint16, DrwX, DrwY int16, DrwW, DrwH, Width, Height uint16, Data []byte) PutImageCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo"]; !ok {
@ -1702,8 +1697,8 @@ func PutImage(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gconte
}
// PutImageChecked sends a checked request.
// If an error occurs, it can be retrieved using PutImageCookie.Check()
func PutImageChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Id uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, Data []byte) PutImageCookie {
// If an error occurs, it can be retrieved using PutImageCookie.Check.
func PutImageChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Id uint32, SrcX, SrcY int16, SrcW, SrcH uint16, DrwX, DrwY int16, DrwW, DrwH, Width, Height uint16, Data []byte) PutImageCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo"]; !ok {
@ -1720,9 +1715,8 @@ func (cook PutImageCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for PutImage
// putImageRequest writes a PutImage request to a byte slice.
func putImageRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Id uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, Data []byte) []byte {
// putImageRequest writes a PutImage request to a byte slice for transfer.
func putImageRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Id uint32, SrcX, SrcY int16, SrcW, SrcH uint16, DrwX, DrwY int16, DrwW, DrwH, Width, Height uint16, Data []byte) []byte {
size := xgb.Pad((40 + xgb.Pad((len(Data) * 1))))
b := 0
buf := make([]byte, size)
@ -1793,7 +1787,7 @@ type PutStillCookie struct {
// PutStill sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PutStill(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) PutStillCookie {
func PutStill(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX, VidY int16, VidW, VidH uint16, DrwX, DrwY int16, DrwW, DrwH uint16) PutStillCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo"]; !ok {
@ -1805,8 +1799,8 @@ func PutStill(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gconte
}
// PutStillChecked sends a checked request.
// If an error occurs, it can be retrieved using PutStillCookie.Check()
func PutStillChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) PutStillCookie {
// If an error occurs, it can be retrieved using PutStillCookie.Check.
func PutStillChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX, VidY int16, VidW, VidH uint16, DrwX, DrwY int16, DrwW, DrwH uint16) PutStillCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo"]; !ok {
@ -1823,9 +1817,8 @@ func (cook PutStillCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for PutStill
// putStillRequest writes a PutStill request to a byte slice.
func putStillRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) []byte {
// putStillRequest writes a PutStill request to a byte slice for transfer.
func putStillRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX, VidY int16, VidW, VidH uint16, DrwX, DrwY int16, DrwW, DrwH uint16) []byte {
size := 32
b := 0
buf := make([]byte, size)
@ -1884,7 +1877,7 @@ type PutVideoCookie struct {
// PutVideo sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PutVideo(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) PutVideoCookie {
func PutVideo(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX, VidY int16, VidW, VidH uint16, DrwX, DrwY int16, DrwW, DrwH uint16) PutVideoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo"]; !ok {
@ -1896,8 +1889,8 @@ func PutVideo(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gconte
}
// PutVideoChecked sends a checked request.
// If an error occurs, it can be retrieved using PutVideoCookie.Check()
func PutVideoChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) PutVideoCookie {
// If an error occurs, it can be retrieved using PutVideoCookie.Check.
func PutVideoChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX, VidY int16, VidW, VidH uint16, DrwX, DrwY int16, DrwW, DrwH uint16) PutVideoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo"]; !ok {
@ -1914,9 +1907,8 @@ func (cook PutVideoCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for PutVideo
// putVideoRequest writes a PutVideo request to a byte slice.
func putVideoRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) []byte {
// putVideoRequest writes a PutVideo request to a byte slice for transfer.
func putVideoRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX, VidY int16, VidW, VidH uint16, DrwX, DrwY int16, DrwW, DrwH uint16) []byte {
size := 32
b := 0
buf := make([]byte, size)
@ -1974,7 +1966,7 @@ type QueryAdaptorsCookie struct {
}
// QueryAdaptors sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryAdaptorsCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryAdaptorsCookie.Reply.
func QueryAdaptors(c *xgb.Conn, Window xproto.Window) QueryAdaptorsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2045,8 +2037,7 @@ func queryAdaptorsReply(buf []byte) *QueryAdaptorsReply {
return v
}
// Write request to wire for QueryAdaptors
// queryAdaptorsRequest writes a QueryAdaptors request to a byte slice.
// queryAdaptorsRequest writes a QueryAdaptors request to a byte slice for transfer.
func queryAdaptorsRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@ -2075,8 +2066,8 @@ type QueryBestSizeCookie struct {
}
// QueryBestSize sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryBestSizeCookie.Reply()
func QueryBestSize(c *xgb.Conn, Port Port, VidW uint16, VidH uint16, DrwW uint16, DrwH uint16, Motion bool) QueryBestSizeCookie {
// If an error occurs, it will be returned with the reply by calling QueryBestSizeCookie.Reply.
func QueryBestSize(c *xgb.Conn, Port Port, VidW, VidH, DrwW, DrwH uint16, Motion bool) QueryBestSizeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo"]; !ok {
@ -2089,7 +2080,7 @@ func QueryBestSize(c *xgb.Conn, Port Port, VidW uint16, VidH uint16, DrwW uint16
// QueryBestSizeUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryBestSizeUnchecked(c *xgb.Conn, Port Port, VidW uint16, VidH uint16, DrwW uint16, DrwH uint16, Motion bool) QueryBestSizeCookie {
func QueryBestSizeUnchecked(c *xgb.Conn, Port Port, VidW, VidH, DrwW, DrwH uint16, Motion bool) QueryBestSizeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo"]; !ok {
@ -2143,9 +2134,8 @@ func queryBestSizeReply(buf []byte) *QueryBestSizeReply {
return v
}
// Write request to wire for QueryBestSize
// queryBestSizeRequest writes a QueryBestSize request to a byte slice.
func queryBestSizeRequest(c *xgb.Conn, Port Port, VidW uint16, VidH uint16, DrwW uint16, DrwH uint16, Motion bool) []byte {
// queryBestSizeRequest writes a QueryBestSize request to a byte slice for transfer.
func queryBestSizeRequest(c *xgb.Conn, Port Port, VidW, VidH, DrwW, DrwH uint16, Motion bool) []byte {
size := 20
b := 0
buf := make([]byte, size)
@ -2194,7 +2184,7 @@ type QueryEncodingsCookie struct {
}
// QueryEncodings sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryEncodingsCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryEncodingsCookie.Reply.
func QueryEncodings(c *xgb.Conn, Port Port) QueryEncodingsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2265,8 +2255,7 @@ func queryEncodingsReply(buf []byte) *QueryEncodingsReply {
return v
}
// Write request to wire for QueryEncodings
// queryEncodingsRequest writes a QueryEncodings request to a byte slice.
// queryEncodingsRequest writes a QueryEncodings request to a byte slice for transfer.
func queryEncodingsRequest(c *xgb.Conn, Port Port) []byte {
size := 8
b := 0
@ -2295,7 +2284,7 @@ type QueryExtensionCookie struct {
}
// QueryExtension sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryExtensionCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryExtensionCookie.Reply.
func QueryExtension(c *xgb.Conn) QueryExtensionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2363,8 +2352,7 @@ func queryExtensionReply(buf []byte) *QueryExtensionReply {
return v
}
// Write request to wire for QueryExtension
// queryExtensionRequest writes a QueryExtension request to a byte slice.
// queryExtensionRequest writes a QueryExtension request to a byte slice for transfer.
func queryExtensionRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@ -2390,8 +2378,8 @@ type QueryImageAttributesCookie struct {
}
// QueryImageAttributes sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryImageAttributesCookie.Reply()
func QueryImageAttributes(c *xgb.Conn, Port Port, Id uint32, Width uint16, Height uint16) QueryImageAttributesCookie {
// If an error occurs, it will be returned with the reply by calling QueryImageAttributesCookie.Reply.
func QueryImageAttributes(c *xgb.Conn, Port Port, Id uint32, Width, Height uint16) QueryImageAttributesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo"]; !ok {
@ -2404,7 +2392,7 @@ func QueryImageAttributes(c *xgb.Conn, Port Port, Id uint32, Width uint16, Heigh
// QueryImageAttributesUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryImageAttributesUnchecked(c *xgb.Conn, Port Port, Id uint32, Width uint16, Height uint16) QueryImageAttributesCookie {
func QueryImageAttributesUnchecked(c *xgb.Conn, Port Port, Id uint32, Width, Height uint16) QueryImageAttributesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo"]; !ok {
@ -2483,9 +2471,8 @@ func queryImageAttributesReply(buf []byte) *QueryImageAttributesReply {
return v
}
// Write request to wire for QueryImageAttributes
// queryImageAttributesRequest writes a QueryImageAttributes request to a byte slice.
func queryImageAttributesRequest(c *xgb.Conn, Port Port, Id uint32, Width uint16, Height uint16) []byte {
// queryImageAttributesRequest writes a QueryImageAttributes request to a byte slice for transfer.
func queryImageAttributesRequest(c *xgb.Conn, Port Port, Id uint32, Width, Height uint16) []byte {
size := 16
b := 0
buf := make([]byte, size)
@ -2522,7 +2509,7 @@ type QueryPortAttributesCookie struct {
}
// QueryPortAttributes sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryPortAttributesCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryPortAttributesCookie.Reply.
func QueryPortAttributes(c *xgb.Conn, Port Port) QueryPortAttributesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2597,8 +2584,7 @@ func queryPortAttributesReply(buf []byte) *QueryPortAttributesReply {
return v
}
// Write request to wire for QueryPortAttributes
// queryPortAttributesRequest writes a QueryPortAttributes request to a byte slice.
// queryPortAttributesRequest writes a QueryPortAttributes request to a byte slice for transfer.
func queryPortAttributesRequest(c *xgb.Conn, Port Port) []byte {
size := 8
b := 0
@ -2640,7 +2626,7 @@ func SelectPortNotify(c *xgb.Conn, Port Port, Onoff bool) SelectPortNotifyCookie
}
// SelectPortNotifyChecked sends a checked request.
// If an error occurs, it can be retrieved using SelectPortNotifyCookie.Check()
// If an error occurs, it can be retrieved using SelectPortNotifyCookie.Check.
func SelectPortNotifyChecked(c *xgb.Conn, Port Port, Onoff bool) SelectPortNotifyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2658,8 +2644,7 @@ func (cook SelectPortNotifyCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SelectPortNotify
// selectPortNotifyRequest writes a SelectPortNotify request to a byte slice.
// selectPortNotifyRequest writes a SelectPortNotify request to a byte slice for transfer.
func selectPortNotifyRequest(c *xgb.Conn, Port Port, Onoff bool) []byte {
size := 12
b := 0
@ -2710,7 +2695,7 @@ func SelectVideoNotify(c *xgb.Conn, Drawable xproto.Drawable, Onoff bool) Select
}
// SelectVideoNotifyChecked sends a checked request.
// If an error occurs, it can be retrieved using SelectVideoNotifyCookie.Check()
// If an error occurs, it can be retrieved using SelectVideoNotifyCookie.Check.
func SelectVideoNotifyChecked(c *xgb.Conn, Drawable xproto.Drawable, Onoff bool) SelectVideoNotifyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2728,8 +2713,7 @@ func (cook SelectVideoNotifyCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SelectVideoNotify
// selectVideoNotifyRequest writes a SelectVideoNotify request to a byte slice.
// selectVideoNotifyRequest writes a SelectVideoNotify request to a byte slice for transfer.
func selectVideoNotifyRequest(c *xgb.Conn, Drawable xproto.Drawable, Onoff bool) []byte {
size := 12
b := 0
@ -2780,7 +2764,7 @@ func SetPortAttribute(c *xgb.Conn, Port Port, Attribute xproto.Atom, Value int32
}
// SetPortAttributeChecked sends a checked request.
// If an error occurs, it can be retrieved using SetPortAttributeCookie.Check()
// If an error occurs, it can be retrieved using SetPortAttributeCookie.Check.
func SetPortAttributeChecked(c *xgb.Conn, Port Port, Attribute xproto.Atom, Value int32) SetPortAttributeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2798,8 +2782,7 @@ func (cook SetPortAttributeCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for SetPortAttribute
// setPortAttributeRequest writes a SetPortAttribute request to a byte slice.
// setPortAttributeRequest writes a SetPortAttribute request to a byte slice for transfer.
func setPortAttributeRequest(c *xgb.Conn, Port Port, Attribute xproto.Atom, Value int32) []byte {
size := 16
b := 0
@ -2835,7 +2818,7 @@ type ShmPutImageCookie struct {
// ShmPutImage sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ShmPutImage(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Shmseg shm.Seg, Id uint32, Offset uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, SendEvent byte) ShmPutImageCookie {
func ShmPutImage(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Shmseg shm.Seg, Id, Offset uint32, SrcX, SrcY int16, SrcW, SrcH uint16, DrwX, DrwY int16, DrwW, DrwH, Width, Height uint16, SendEvent byte) ShmPutImageCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo"]; !ok {
@ -2847,8 +2830,8 @@ func ShmPutImage(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gco
}
// ShmPutImageChecked sends a checked request.
// If an error occurs, it can be retrieved using ShmPutImageCookie.Check()
func ShmPutImageChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Shmseg shm.Seg, Id uint32, Offset uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, SendEvent byte) ShmPutImageCookie {
// If an error occurs, it can be retrieved using ShmPutImageCookie.Check.
func ShmPutImageChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Shmseg shm.Seg, Id, Offset uint32, SrcX, SrcY int16, SrcW, SrcH uint16, DrwX, DrwY int16, DrwW, DrwH, Width, Height uint16, SendEvent byte) ShmPutImageCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo"]; !ok {
@ -2865,9 +2848,8 @@ func (cook ShmPutImageCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for ShmPutImage
// shmPutImageRequest writes a ShmPutImage request to a byte slice.
func shmPutImageRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Shmseg shm.Seg, Id uint32, Offset uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, SendEvent byte) []byte {
// shmPutImageRequest writes a ShmPutImage request to a byte slice for transfer.
func shmPutImageRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Shmseg shm.Seg, Id, Offset uint32, SrcX, SrcY int16, SrcW, SrcH uint16, DrwX, DrwY int16, DrwW, DrwH, Width, Height uint16, SendEvent byte) []byte {
size := 52
b := 0
buf := make([]byte, size)
@ -2958,7 +2940,7 @@ func StopVideo(c *xgb.Conn, Port Port, Drawable xproto.Drawable) StopVideoCookie
}
// StopVideoChecked sends a checked request.
// If an error occurs, it can be retrieved using StopVideoCookie.Check()
// If an error occurs, it can be retrieved using StopVideoCookie.Check.
func StopVideoChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable) StopVideoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -2976,8 +2958,7 @@ func (cook StopVideoCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for StopVideo
// stopVideoRequest writes a StopVideo request to a byte slice.
// stopVideoRequest writes a StopVideo request to a byte slice for transfer.
func stopVideoRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable) []byte {
size := 12
b := 0
@ -3022,7 +3003,7 @@ func UngrabPort(c *xgb.Conn, Port Port, Time xproto.Timestamp) UngrabPortCookie
}
// UngrabPortChecked sends a checked request.
// If an error occurs, it can be retrieved using UngrabPortCookie.Check()
// If an error occurs, it can be retrieved using UngrabPortCookie.Check.
func UngrabPortChecked(c *xgb.Conn, Port Port, Time xproto.Timestamp) UngrabPortCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -3040,8 +3021,7 @@ func (cook UngrabPortCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for UngrabPort
// ungrabPortRequest writes a UngrabPort request to a byte slice.
// ungrabPortRequest writes a UngrabPort request to a byte slice for transfer.
func ungrabPortRequest(c *xgb.Conn, Port Port, Time xproto.Timestamp) []byte {
size := 12
b := 0

View File

@ -205,8 +205,8 @@ type CreateContextCookie struct {
}
// CreateContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling CreateContextCookie.Reply()
func CreateContext(c *xgb.Conn, ContextId Context, PortId xv.Port, SurfaceId Surface, Width uint16, Height uint16, Flags uint32) CreateContextCookie {
// If an error occurs, it will be returned with the reply by calling CreateContextCookie.Reply.
func CreateContext(c *xgb.Conn, ContextId Context, PortId xv.Port, SurfaceId Surface, Width, Height uint16, Flags uint32) CreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
@ -219,7 +219,7 @@ func CreateContext(c *xgb.Conn, ContextId Context, PortId xv.Port, SurfaceId Sur
// CreateContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateContextUnchecked(c *xgb.Conn, ContextId Context, PortId xv.Port, SurfaceId Surface, Width uint16, Height uint16, Flags uint32) CreateContextCookie {
func CreateContextUnchecked(c *xgb.Conn, ContextId Context, PortId xv.Port, SurfaceId Surface, Width, Height uint16, Flags uint32) CreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
@ -287,9 +287,8 @@ func createContextReply(buf []byte) *CreateContextReply {
return v
}
// Write request to wire for CreateContext
// createContextRequest writes a CreateContext request to a byte slice.
func createContextRequest(c *xgb.Conn, ContextId Context, PortId xv.Port, SurfaceId Surface, Width uint16, Height uint16, Flags uint32) []byte {
// createContextRequest writes a CreateContext request to a byte slice for transfer.
func createContextRequest(c *xgb.Conn, ContextId Context, PortId xv.Port, SurfaceId Surface, Width, Height uint16, Flags uint32) []byte {
size := 24
b := 0
buf := make([]byte, size)
@ -332,8 +331,8 @@ type CreateSubpictureCookie struct {
}
// CreateSubpicture sends a checked request.
// If an error occurs, it will be returned with the reply by calling CreateSubpictureCookie.Reply()
func CreateSubpicture(c *xgb.Conn, SubpictureId Subpicture, Context Context, XvimageId uint32, Width uint16, Height uint16) CreateSubpictureCookie {
// If an error occurs, it will be returned with the reply by calling CreateSubpictureCookie.Reply.
func CreateSubpicture(c *xgb.Conn, SubpictureId Subpicture, Context Context, XvimageId uint32, Width, Height uint16) CreateSubpictureCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
@ -346,7 +345,7 @@ func CreateSubpicture(c *xgb.Conn, SubpictureId Subpicture, Context Context, Xvi
// CreateSubpictureUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateSubpictureUnchecked(c *xgb.Conn, SubpictureId Subpicture, Context Context, XvimageId uint32, Width uint16, Height uint16) CreateSubpictureCookie {
func CreateSubpictureUnchecked(c *xgb.Conn, SubpictureId Subpicture, Context Context, XvimageId uint32, Width, Height uint16) CreateSubpictureCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
@ -423,9 +422,8 @@ func createSubpictureReply(buf []byte) *CreateSubpictureReply {
return v
}
// Write request to wire for CreateSubpicture
// createSubpictureRequest writes a CreateSubpicture request to a byte slice.
func createSubpictureRequest(c *xgb.Conn, SubpictureId Subpicture, Context Context, XvimageId uint32, Width uint16, Height uint16) []byte {
// createSubpictureRequest writes a CreateSubpicture request to a byte slice for transfer.
func createSubpictureRequest(c *xgb.Conn, SubpictureId Subpicture, Context Context, XvimageId uint32, Width, Height uint16) []byte {
size := 20
b := 0
buf := make([]byte, size)
@ -465,7 +463,7 @@ type CreateSurfaceCookie struct {
}
// CreateSurface sends a checked request.
// If an error occurs, it will be returned with the reply by calling CreateSurfaceCookie.Reply()
// If an error occurs, it will be returned with the reply by calling CreateSurfaceCookie.Reply.
func CreateSurface(c *xgb.Conn, SurfaceId Surface, ContextId Context) CreateSurfaceCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -535,8 +533,7 @@ func createSurfaceReply(buf []byte) *CreateSurfaceReply {
return v
}
// Write request to wire for CreateSurface
// createSurfaceRequest writes a CreateSurface request to a byte slice.
// createSurfaceRequest writes a CreateSurface request to a byte slice for transfer.
func createSurfaceRequest(c *xgb.Conn, SurfaceId Surface, ContextId Context) []byte {
size := 12
b := 0
@ -581,7 +578,7 @@ func DestroyContext(c *xgb.Conn, ContextId Context) DestroyContextCookie {
}
// DestroyContextChecked sends a checked request.
// If an error occurs, it can be retrieved using DestroyContextCookie.Check()
// If an error occurs, it can be retrieved using DestroyContextCookie.Check.
func DestroyContextChecked(c *xgb.Conn, ContextId Context) DestroyContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -599,8 +596,7 @@ func (cook DestroyContextCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for DestroyContext
// destroyContextRequest writes a DestroyContext request to a byte slice.
// destroyContextRequest writes a DestroyContext request to a byte slice for transfer.
func destroyContextRequest(c *xgb.Conn, ContextId Context) []byte {
size := 8
b := 0
@ -642,7 +638,7 @@ func DestroySubpicture(c *xgb.Conn, SubpictureId Subpicture) DestroySubpictureCo
}
// DestroySubpictureChecked sends a checked request.
// If an error occurs, it can be retrieved using DestroySubpictureCookie.Check()
// If an error occurs, it can be retrieved using DestroySubpictureCookie.Check.
func DestroySubpictureChecked(c *xgb.Conn, SubpictureId Subpicture) DestroySubpictureCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -660,8 +656,7 @@ func (cook DestroySubpictureCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for DestroySubpicture
// destroySubpictureRequest writes a DestroySubpicture request to a byte slice.
// destroySubpictureRequest writes a DestroySubpicture request to a byte slice for transfer.
func destroySubpictureRequest(c *xgb.Conn, SubpictureId Subpicture) []byte {
size := 8
b := 0
@ -703,7 +698,7 @@ func DestroySurface(c *xgb.Conn, SurfaceId Surface) DestroySurfaceCookie {
}
// DestroySurfaceChecked sends a checked request.
// If an error occurs, it can be retrieved using DestroySurfaceCookie.Check()
// If an error occurs, it can be retrieved using DestroySurfaceCookie.Check.
func DestroySurfaceChecked(c *xgb.Conn, SurfaceId Surface) DestroySurfaceCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -721,8 +716,7 @@ func (cook DestroySurfaceCookie) Check() error {
return cook.Cookie.Check()
}
// Write request to wire for DestroySurface
// destroySurfaceRequest writes a DestroySurface request to a byte slice.
// destroySurfaceRequest writes a DestroySurface request to a byte slice for transfer.
func destroySurfaceRequest(c *xgb.Conn, SurfaceId Surface) []byte {
size := 8
b := 0
@ -751,7 +745,7 @@ type ListSubpictureTypesCookie struct {
}
// ListSubpictureTypes sends a checked request.
// If an error occurs, it will be returned with the reply by calling ListSubpictureTypesCookie.Reply()
// If an error occurs, it will be returned with the reply by calling ListSubpictureTypesCookie.Reply.
func ListSubpictureTypes(c *xgb.Conn, PortId xv.Port, SurfaceId Surface) ListSubpictureTypesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -822,8 +816,7 @@ func listSubpictureTypesReply(buf []byte) *ListSubpictureTypesReply {
return v
}
// Write request to wire for ListSubpictureTypes
// listSubpictureTypesRequest writes a ListSubpictureTypes request to a byte slice.
// listSubpictureTypesRequest writes a ListSubpictureTypes request to a byte slice for transfer.
func listSubpictureTypesRequest(c *xgb.Conn, PortId xv.Port, SurfaceId Surface) []byte {
size := 12
b := 0
@ -855,7 +848,7 @@ type ListSurfaceTypesCookie struct {
}
// ListSurfaceTypes sends a checked request.
// If an error occurs, it will be returned with the reply by calling ListSurfaceTypesCookie.Reply()
// If an error occurs, it will be returned with the reply by calling ListSurfaceTypesCookie.Reply.
func ListSurfaceTypes(c *xgb.Conn, PortId xv.Port) ListSurfaceTypesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -926,8 +919,7 @@ func listSurfaceTypesReply(buf []byte) *ListSurfaceTypesReply {
return v
}
// Write request to wire for ListSurfaceTypes
// listSurfaceTypesRequest writes a ListSurfaceTypes request to a byte slice.
// listSurfaceTypesRequest writes a ListSurfaceTypes request to a byte slice for transfer.
func listSurfaceTypesRequest(c *xgb.Conn, PortId xv.Port) []byte {
size := 8
b := 0
@ -956,7 +948,7 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@ -1024,8 +1016,7 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
// Write request to wire for QueryVersion
// queryVersionRequest writes a QueryVersion request to a byte slice.
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn) []byte {
size := 4
b := 0