aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xv/xv.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/xv/xv.go')
-rw-r--r--nexgb/xv/xv.go148
1 files changed, 64 insertions, 84 deletions
diff --git a/nexgb/xv/xv.go b/nexgb/xv/xv.go
index 1c658c5..7f6be44 100644
--- a/nexgb/xv/xv.go
+++ b/nexgb/xv/xv.go
@@ -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