aboutsummaryrefslogtreecommitdiff
path: root/nexgb/glx
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-11 01:58:52 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-11 01:58:52 -0400
commit3e6b3544934cb71e3a3b0edf9bc184241ac1ad7f (patch)
treec9f52fa078fc860d7327e7a8441b2b7bc07f7cce /nexgb/glx
parentc00652934e4ec68016a152b9bea10273b0be8726 (diff)
downloadhaven-3e6b3544934cb71e3a3b0edf9bc184241ac1ad7f.tar.gz
haven-3e6b3544934cb71e3a3b0edf9bc184241ac1ad7f.tar.xz
haven-3e6b3544934cb71e3a3b0edf9bc184241ac1ad7f.zip
add a little more docs for errors
Diffstat (limited to 'nexgb/glx')
-rw-r--r--nexgb/glx/glx.go41
1 files changed, 36 insertions, 5 deletions
diff --git a/nexgb/glx/glx.go b/nexgb/glx/glx.go
index d351137..6bc3615 100644
--- a/nexgb/glx/glx.go
+++ b/nexgb/glx/glx.go
@@ -2,7 +2,7 @@
package glx
/*
- This file was generated by glx.xml on May 10 2012 11:56:18pm EDT.
+ This file was generated by glx.xml on May 11 2012 1:58:35am EDT.
This file is automatically generated. Edit at your peril!
*/
@@ -40,6 +40,10 @@ func init() {
xgb.NewExtErrorFuncs["GLX"] = make(map[int]xgb.NewErrorFun)
}
+// Skipping definition for base type 'Card16'
+
+// Skipping definition for base type 'Char'
+
// Skipping definition for base type 'Card32'
// Skipping definition for base type 'Double'
@@ -60,10 +64,6 @@ func init() {
// Skipping definition for base type 'Int8'
-// Skipping definition for base type 'Card16'
-
-// Skipping definition for base type 'Char'
-
const (
PbcetDamaged = 32791
PbcetSaved = 32792
@@ -355,10 +355,13 @@ func (err GenericError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadGeneric error. If no bad value exists, 0 is returned.
func (err GenericError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadGeneric error.
+
func (err GenericError) Error() string {
fieldVals := make([]string, 0, 4)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)
@@ -391,10 +394,12 @@ func (err BadContextError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadBadContext error. If no bad value exists, 0 is returned.
func (err BadContextError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadBadContext error.
func (err BadContextError) Error() string {
fieldVals := make([]string, 0, 4)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)
@@ -427,10 +432,12 @@ func (err BadContextStateError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadBadContextState error. If no bad value exists, 0 is returned.
func (err BadContextStateError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadBadContextState error.
func (err BadContextStateError) Error() string {
fieldVals := make([]string, 0, 4)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)
@@ -463,10 +470,12 @@ func (err BadDrawableError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadBadDrawable error. If no bad value exists, 0 is returned.
func (err BadDrawableError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadBadDrawable error.
func (err BadDrawableError) Error() string {
fieldVals := make([]string, 0, 4)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)
@@ -499,10 +508,12 @@ func (err BadPixmapError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadBadPixmap error. If no bad value exists, 0 is returned.
func (err BadPixmapError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadBadPixmap error.
func (err BadPixmapError) Error() string {
fieldVals := make([]string, 0, 4)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)
@@ -535,10 +546,12 @@ func (err BadContextTagError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadBadContextTag error. If no bad value exists, 0 is returned.
func (err BadContextTagError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadBadContextTag error.
func (err BadContextTagError) Error() string {
fieldVals := make([]string, 0, 4)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)
@@ -571,10 +584,12 @@ func (err BadCurrentWindowError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadBadCurrentWindow error. If no bad value exists, 0 is returned.
func (err BadCurrentWindowError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadBadCurrentWindow error.
func (err BadCurrentWindowError) Error() string {
fieldVals := make([]string, 0, 4)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)
@@ -607,10 +622,12 @@ func (err BadRenderRequestError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadBadRenderRequest error. If no bad value exists, 0 is returned.
func (err BadRenderRequestError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadBadRenderRequest error.
func (err BadRenderRequestError) Error() string {
fieldVals := make([]string, 0, 4)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)
@@ -643,10 +660,12 @@ func (err BadLargeRequestError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadBadLargeRequest error. If no bad value exists, 0 is returned.
func (err BadLargeRequestError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadBadLargeRequest error.
func (err BadLargeRequestError) Error() string {
fieldVals := make([]string, 0, 4)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)
@@ -679,10 +698,12 @@ func (err UnsupportedPrivateRequestError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadUnsupportedPrivateRequest error. If no bad value exists, 0 is returned.
func (err UnsupportedPrivateRequestError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadUnsupportedPrivateRequest error.
func (err UnsupportedPrivateRequestError) Error() string {
fieldVals := make([]string, 0, 4)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)
@@ -715,10 +736,12 @@ func (err BadFBConfigError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadBadFBConfig error. If no bad value exists, 0 is returned.
func (err BadFBConfigError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadBadFBConfig error.
func (err BadFBConfigError) Error() string {
fieldVals := make([]string, 0, 4)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)
@@ -751,10 +774,12 @@ func (err BadPbufferError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadBadPbuffer error. If no bad value exists, 0 is returned.
func (err BadPbufferError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadBadPbuffer error.
func (err BadPbufferError) Error() string {
fieldVals := make([]string, 0, 4)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)
@@ -787,10 +812,12 @@ func (err BadCurrentDrawableError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadBadCurrentDrawable error. If no bad value exists, 0 is returned.
func (err BadCurrentDrawableError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadBadCurrentDrawable error.
func (err BadCurrentDrawableError) Error() string {
fieldVals := make([]string, 0, 4)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)
@@ -823,10 +850,12 @@ func (err BadWindowError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadBadWindow error. If no bad value exists, 0 is returned.
func (err BadWindowError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadBadWindow error.
func (err BadWindowError) Error() string {
fieldVals := make([]string, 0, 4)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)
@@ -859,10 +888,12 @@ func (err GLXBadProfileARBError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadGLXBadProfileARB error. If no bad value exists, 0 is returned.
func (err GLXBadProfileARBError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadGLXBadProfileARB error.
func (err GLXBadProfileARBError) Error() string {
fieldVals := make([]string, 0, 4)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)