nexgb: regenerate from xcb-proto 1.12
To refresh documentation.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user