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/xtest | |
| 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/xtest')
| -rw-r--r-- | nexgb/xtest/xtest.go | 26 | 
1 files changed, 11 insertions, 15 deletions
| diff --git a/nexgb/xtest/xtest.go b/nexgb/xtest/xtest.go index 282f004..ce050e1 100644 --- a/nexgb/xtest/xtest.go +++ b/nexgb/xtest/xtest.go @@ -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 | 
