diff options
author | Přemysl Janouch <p@janouch.name> | 2018-09-30 16:32:47 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-09-30 17:34:27 +0200 |
commit | e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef (patch) | |
tree | 1f81f1a54e9469424463f4fdd17f6d19094d241d /nexgb/render | |
parent | 7051829581b426a410a3817921564d950f839768 (diff) | |
download | haven-e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef.tar.gz haven-e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef.tar.xz haven-e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef.zip |
nexgb: regenerate from xcb-proto 1.12
To refresh documentation.
Diffstat (limited to 'nexgb/render')
-rw-r--r-- | nexgb/render/render.go | 245 |
1 files changed, 107 insertions, 138 deletions
diff --git a/nexgb/render/render.go b/nexgb/render/render.go index 458869d..66412ef 100644 --- a/nexgb/render/render.go +++ b/nexgb/render/render.go @@ -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) |