From e239bb3c68a4981a3916534203c2fbd6b96f593c Mon Sep 17 00:00:00 2001 From: "Andrew Gallant (Ocelot)" Date: Thu, 10 May 2012 12:47:19 -0400 Subject: make resource ids their own individual types. last commit before overhaul to sub-packages --- nexgb/auto_xtest.go | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) (limited to 'nexgb/auto_xtest.go') diff --git a/nexgb/auto_xtest.go b/nexgb/auto_xtest.go index 6410831..f3b92a2 100644 --- a/nexgb/auto_xtest.go +++ b/nexgb/auto_xtest.go @@ -1,7 +1,7 @@ package xgb /* - This file was generated by xtest.xml on May 8 2012 11:03:25pm EDT. + This file was generated by xtest.xml on May 10 2012 12:39:34pm EDT. This file is automatically generated. Edit at your peril! */ @@ -37,6 +37,16 @@ func init() { newExtErrorFuncs["XTEST"] = make(map[int]newErrorFun) } +// Skipping definition for base type 'Int16' + +// Skipping definition for base type 'Int32' + +// Skipping definition for base type 'Void' + +// Skipping definition for base type 'Byte' + +// Skipping definition for base type 'Int8' + // Skipping definition for base type 'Card16' // Skipping definition for base type 'Char' @@ -49,20 +59,8 @@ func init() { // Skipping definition for base type 'Float' -// Skipping definition for base type 'Id' - // Skipping definition for base type 'Card8' -// Skipping definition for base type 'Int16' - -// Skipping definition for base type 'Int32' - -// Skipping definition for base type 'Void' - -// Skipping definition for base type 'Byte' - -// Skipping definition for base type 'Int8' - const ( XtestCursorNone = 0 XtestCursorCurrent = 1 @@ -163,13 +161,13 @@ type XtestCompareCursorCookie struct { *cookie } -func (c *Conn) XtestCompareCursor(Window Id, Cursor Id) XtestCompareCursorCookie { +func (c *Conn) XtestCompareCursor(Window Window, Cursor Cursor) XtestCompareCursorCookie { cookie := c.newCookie(true, true) c.newRequest(c.xtestCompareCursorRequest(Window, Cursor), cookie) return XtestCompareCursorCookie{cookie} } -func (c *Conn) XtestCompareCursorUnchecked(Window Id, Cursor Id) XtestCompareCursorCookie { +func (c *Conn) XtestCompareCursorUnchecked(Window Window, Cursor Cursor) XtestCompareCursorCookie { cookie := c.newCookie(false, true) c.newRequest(c.xtestCompareCursorRequest(Window, Cursor), cookie) return XtestCompareCursorCookie{cookie} @@ -221,7 +219,7 @@ func (cook XtestCompareCursorCookie) Check() error { } // Write request to wire for XtestCompareCursor -func (c *Conn) xtestCompareCursorRequest(Window Id, Cursor Id) []byte { +func (c *Conn) xtestCompareCursorRequest(Window Window, Cursor Cursor) []byte { size := 12 b := 0 buf := make([]byte, size) @@ -251,13 +249,13 @@ type XtestFakeInputCookie struct { } // Write request to wire for XtestFakeInput -func (c *Conn) XtestFakeInput(Type byte, Detail byte, Time uint32, Root Id, RootX int16, RootY int16, Deviceid byte) XtestFakeInputCookie { +func (c *Conn) XtestFakeInput(Type byte, Detail byte, Time uint32, Root Window, RootX int16, RootY int16, Deviceid byte) XtestFakeInputCookie { cookie := c.newCookie(false, false) c.newRequest(c.xtestFakeInputRequest(Type, Detail, Time, Root, RootX, RootY, Deviceid), cookie) return XtestFakeInputCookie{cookie} } -func (c *Conn) XtestFakeInputChecked(Type byte, Detail byte, Time uint32, Root Id, RootX int16, RootY int16, Deviceid byte) XtestFakeInputCookie { +func (c *Conn) XtestFakeInputChecked(Type byte, Detail byte, Time uint32, Root Window, RootX int16, RootY int16, Deviceid byte) XtestFakeInputCookie { cookie := c.newCookie(true, false) c.newRequest(c.xtestFakeInputRequest(Type, Detail, Time, Root, RootX, RootY, Deviceid), cookie) return XtestFakeInputCookie{cookie} @@ -268,7 +266,7 @@ func (cook XtestFakeInputCookie) Check() error { } // Write request to wire for XtestFakeInput -func (c *Conn) xtestFakeInputRequest(Type byte, Detail byte, Time uint32, Root Id, RootX int16, RootY int16, Deviceid byte) []byte { +func (c *Conn) xtestFakeInputRequest(Type byte, Detail byte, Time uint32, Root Window, RootX int16, RootY int16, Deviceid byte) []byte { size := 36 b := 0 buf := make([]byte, size) -- cgit v1.2.3-54-g00ecf