// Code generated by xtgen; DO NOT EDIT. package render // Error codes: error codes relative to the extension's FirstError (XError.Rel). const ( BadPictFormat uint8 = 0 BadPicture uint8 = 1 BadPictOp uint8 = 2 BadGlyphSet uint8 = 3 BadGlyph uint8 = 4 ) var errorNames = [...]string{"BadPictFormat", "BadPicture", "BadPictOp", "BadGlyphSet", "BadGlyph"} // ErrorName returns the name of an error code (error codes relative to the extension's FirstError (XError.Rel)), or "" when unknown. func ErrorName(code uint8) string { if int(code) < len(errorNames) { return errorNames[code] } return "" }