aboutsummaryrefslogtreecommitdiff
path: root/nexgb/auto_render.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/auto_render.go')
-rw-r--r--nexgb/auto_render.go30
1 files changed, 17 insertions, 13 deletions
diff --git a/nexgb/auto_render.go b/nexgb/auto_render.go
index c9fc097..fa0c5f2 100644
--- a/nexgb/auto_render.go
+++ b/nexgb/auto_render.go
@@ -1,7 +1,7 @@
package xgb
/*
- This file was generated by render.xml on May 6 2012 5:48:47pm EDT.
+ This file was generated by render.xml on May 7 2012 9:17:57pm EDT.
This file is automatically generated. Edit at your peril!
*/
@@ -16,7 +16,7 @@ func (c *Conn) RenderInit() error {
case err != nil:
return err
case !reply.Present:
- return newError("No extension named RENDER could be found on on the server.")
+ return errorf("No extension named RENDER could be found on on the server.")
}
c.extLock.Lock()
@@ -24,6 +24,9 @@ func (c *Conn) RenderInit() error {
for evNum, fun := range newExtEventFuncs["RENDER"] {
newEventFuncs[int(reply.FirstEvent)+evNum] = fun
}
+ for errNum, fun := range newExtErrorFuncs["RENDER"] {
+ newErrorFuncs[int(reply.FirstError)+errNum] = fun
+ }
c.extLock.Unlock()
return nil
@@ -31,14 +34,9 @@ func (c *Conn) RenderInit() error {
func init() {
newExtEventFuncs["RENDER"] = make(map[int]newEventFun)
+ newExtErrorFuncs["RENDER"] = make(map[int]newErrorFun)
}
-// 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'
@@ -59,6 +57,12 @@ func init() {
// Skipping definition for base type 'Int16'
+// Skipping definition for base type 'Int32'
+
+// Skipping definition for base type 'Void'
+
+// Skipping definition for base type 'Byte'
+
const (
RenderPictTypeIndexed = 0
RenderPictTypeDirect = 1
@@ -1392,7 +1396,7 @@ func (err RenderPictFormatError) Error() string {
}
func init() {
- newErrorFuncs[0] = NewRenderPictFormatError
+ newExtErrorFuncs["RENDER"][0] = NewRenderPictFormatError
}
// Error definition RenderPicture (1)
@@ -1437,7 +1441,7 @@ func (err RenderPictureError) Error() string {
}
func init() {
- newErrorFuncs[1] = NewRenderPictureError
+ newExtErrorFuncs["RENDER"][1] = NewRenderPictureError
}
// Error definition RenderPictOp (2)
@@ -1482,7 +1486,7 @@ func (err RenderPictOpError) Error() string {
}
func init() {
- newErrorFuncs[2] = NewRenderPictOpError
+ newExtErrorFuncs["RENDER"][2] = NewRenderPictOpError
}
// Error definition RenderGlyphSet (3)
@@ -1527,7 +1531,7 @@ func (err RenderGlyphSetError) Error() string {
}
func init() {
- newErrorFuncs[3] = NewRenderGlyphSetError
+ newExtErrorFuncs["RENDER"][3] = NewRenderGlyphSetError
}
// Error definition RenderGlyph (4)
@@ -1572,7 +1576,7 @@ func (err RenderGlyphError) Error() string {
}
func init() {
- newErrorFuncs[4] = NewRenderGlyphError
+ newExtErrorFuncs["RENDER"][4] = NewRenderGlyphError
}
// Request RenderQueryVersion