Documentation ¶
Overview ¶
FILE GENERATED AUTOMATICALLY FROM "render.xml"
Index ¶
- Constants
- func AddGlyphs(c *xgb.XConn, Glyphset Glyphset, GlyphsLen uint32, Glyphids []uint32, ...) error
- func AddGlyphsUnchecked(c *xgb.XConn, Glyphset Glyphset, GlyphsLen uint32, Glyphids []uint32, ...) error
- func AddTraps(c *xgb.XConn, Picture Picture, XOff int16, YOff int16, Traps []Trap) error
- func AddTrapsUnchecked(c *xgb.XConn, Picture Picture, XOff int16, YOff int16, Traps []Trap) error
- func AnimcursoreltListBytes(buf []byte, list []Animcursorelt) int
- func AnimcursoreltRead(buf []byte, v *Animcursorelt) int
- func AnimcursoreltReadList(buf []byte, dest []Animcursorelt) int
- func ChangePicture(c *xgb.XConn, Picture Picture, ValueMask uint32, ValueList []uint32) error
- func ChangePictureUnchecked(c *xgb.XConn, Picture Picture, ValueMask uint32, ValueList []uint32) error
- func ColorListBytes(buf []byte, list []Color) int
- func ColorRead(buf []byte, v *Color) int
- func ColorReadList(buf []byte, dest []Color) int
- func Composite(c *xgb.XConn, Op byte, Src Picture, Mask Picture, Dst Picture, SrcX int16, ...) error
- func CompositeGlyphs16(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, ...) error
- func CompositeGlyphs16Unchecked(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, ...) error
- func CompositeGlyphs32(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, ...) error
- func CompositeGlyphs32Unchecked(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, ...) error
- func CompositeGlyphs8(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, ...) error
- func CompositeGlyphs8Unchecked(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, ...) error
- func CompositeUnchecked(c *xgb.XConn, Op byte, Src Picture, Mask Picture, Dst Picture, SrcX int16, ...) error
- func CreateAnimCursor(c *xgb.XConn, Cid xproto.Cursor, Cursors []Animcursorelt) error
- func CreateAnimCursorUnchecked(c *xgb.XConn, Cid xproto.Cursor, Cursors []Animcursorelt) error
- func CreateConicalGradient(c *xgb.XConn, Picture Picture, Center Pointfix, Angle Fixed, NumStops uint32, ...) error
- func CreateConicalGradientUnchecked(c *xgb.XConn, Picture Picture, Center Pointfix, Angle Fixed, NumStops uint32, ...) error
- func CreateCursor(c *xgb.XConn, Cid xproto.Cursor, Source Picture, X uint16, Y uint16) error
- func CreateCursorUnchecked(c *xgb.XConn, Cid xproto.Cursor, Source Picture, X uint16, Y uint16) error
- func CreateGlyphSet(c *xgb.XConn, Gsid Glyphset, Format Pictformat) error
- func CreateGlyphSetUnchecked(c *xgb.XConn, Gsid Glyphset, Format Pictformat) error
- func CreateLinearGradient(c *xgb.XConn, Picture Picture, P1 Pointfix, P2 Pointfix, NumStops uint32, ...) error
- func CreateLinearGradientUnchecked(c *xgb.XConn, Picture Picture, P1 Pointfix, P2 Pointfix, NumStops uint32, ...) error
- func CreatePicture(c *xgb.XConn, Pid Picture, Drawable xproto.Drawable, Format Pictformat, ...) error
- func CreatePictureUnchecked(c *xgb.XConn, Pid Picture, Drawable xproto.Drawable, Format Pictformat, ...) error
- func CreateRadialGradient(c *xgb.XConn, Picture Picture, Inner Pointfix, Outer Pointfix, ...) error
- func CreateRadialGradientUnchecked(c *xgb.XConn, Picture Picture, Inner Pointfix, Outer Pointfix, ...) error
- func CreateSolidFill(c *xgb.XConn, Picture Picture, Color Color) error
- func CreateSolidFillUnchecked(c *xgb.XConn, Picture Picture, Color Color) error
- func DirectformatListBytes(buf []byte, list []Directformat) int
- func DirectformatRead(buf []byte, v *Directformat) int
- func DirectformatReadList(buf []byte, dest []Directformat) int
- func FillRectangles(c *xgb.XConn, Op byte, Dst Picture, Color Color, Rects []xproto.Rectangle) error
- func FillRectanglesUnchecked(c *xgb.XConn, Op byte, Dst Picture, Color Color, Rects []xproto.Rectangle) error
- func FreeGlyphSet(c *xgb.XConn, Glyphset Glyphset) error
- func FreeGlyphSetUnchecked(c *xgb.XConn, Glyphset Glyphset) error
- func FreeGlyphs(c *xgb.XConn, Glyphset Glyphset, Glyphs []Glyph) error
- func FreeGlyphsUnchecked(c *xgb.XConn, Glyphset Glyphset, Glyphs []Glyph) error
- func FreePicture(c *xgb.XConn, Picture Picture) error
- func FreePictureUnchecked(c *xgb.XConn, Picture Picture) error
- func GlyphinfoListBytes(buf []byte, list []Glyphinfo) int
- func GlyphinfoRead(buf []byte, v *Glyphinfo) int
- func GlyphinfoReadList(buf []byte, dest []Glyphinfo) int
- func IndexvalueListBytes(buf []byte, list []Indexvalue) int
- func IndexvalueRead(buf []byte, v *Indexvalue) int
- func IndexvalueReadList(buf []byte, dest []Indexvalue) int
- func LinefixListBytes(buf []byte, list []Linefix) int
- func LinefixRead(buf []byte, v *Linefix) int
- func LinefixReadList(buf []byte, dest []Linefix) int
- func PictdepthListBytes(buf []byte, list []Pictdepth) int
- func PictdepthListSize(list []Pictdepth) int
- func PictdepthRead(buf []byte, v *Pictdepth) int
- func PictdepthReadList(buf []byte, dest []Pictdepth) int
- func PictforminfoListBytes(buf []byte, list []Pictforminfo) int
- func PictforminfoRead(buf []byte, v *Pictforminfo) int
- func PictforminfoReadList(buf []byte, dest []Pictforminfo) int
- func PictscreenListBytes(buf []byte, list []Pictscreen) int
- func PictscreenListSize(list []Pictscreen) int
- func PictscreenRead(buf []byte, v *Pictscreen) int
- func PictscreenReadList(buf []byte, dest []Pictscreen) int
- func PictvisualListBytes(buf []byte, list []Pictvisual) int
- func PictvisualRead(buf []byte, v *Pictvisual) int
- func PictvisualReadList(buf []byte, dest []Pictvisual) int
- func PointfixListBytes(buf []byte, list []Pointfix) int
- func PointfixRead(buf []byte, v *Pointfix) int
- func PointfixReadList(buf []byte, dest []Pointfix) int
- func QueryFiltersUnchecked(c *xgb.XConn, Drawable xproto.Drawable) error
- func QueryPictFormatsUnchecked(c *xgb.XConn) error
- func QueryPictIndexValuesUnchecked(c *xgb.XConn, Format Pictformat) error
- func QueryVersionUnchecked(c *xgb.XConn, ClientMajorVersion uint32, ClientMinorVersion uint32) error
- func ReferenceGlyphSet(c *xgb.XConn, Gsid Glyphset, Existing Glyphset) error
- func ReferenceGlyphSetUnchecked(c *xgb.XConn, Gsid Glyphset, Existing Glyphset) error
- func Register(xconn *xgb.XConn) error
- func SetPictureClipRectangles(c *xgb.XConn, Picture Picture, ClipXOrigin int16, ClipYOrigin int16, ...) error
- func SetPictureClipRectanglesUnchecked(c *xgb.XConn, Picture Picture, ClipXOrigin int16, ClipYOrigin int16, ...) error
- func SetPictureFilter(c *xgb.XConn, Picture Picture, FilterLen uint16, Filter string, Values []Fixed) error
- func SetPictureFilterUnchecked(c *xgb.XConn, Picture Picture, FilterLen uint16, Filter string, Values []Fixed) error
- func SetPictureTransform(c *xgb.XConn, Picture Picture, Transform Transform) error
- func SetPictureTransformUnchecked(c *xgb.XConn, Picture Picture, Transform Transform) error
- func SpanfixListBytes(buf []byte, list []Spanfix) int
- func SpanfixRead(buf []byte, v *Spanfix) int
- func SpanfixReadList(buf []byte, dest []Spanfix) int
- func TransformListBytes(buf []byte, list []Transform) int
- func TransformRead(buf []byte, v *Transform) int
- func TransformReadList(buf []byte, dest []Transform) int
- func TrapListBytes(buf []byte, list []Trap) int
- func TrapRead(buf []byte, v *Trap) int
- func TrapReadList(buf []byte, dest []Trap) int
- func TrapezoidListBytes(buf []byte, list []Trapezoid) int
- func TrapezoidRead(buf []byte, v *Trapezoid) int
- func TrapezoidReadList(buf []byte, dest []Trapezoid) int
- func Trapezoids(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, ...) error
- func TrapezoidsUnchecked(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, ...) error
- func TriFan(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, ...) error
- func TriFanUnchecked(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, ...) error
- func TriStrip(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, ...) error
- func TriStripUnchecked(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, ...) error
- func TriangleListBytes(buf []byte, list []Triangle) int
- func TriangleRead(buf []byte, v *Triangle) int
- func TriangleReadList(buf []byte, dest []Triangle) int
- func Triangles(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, ...) error
- func TrianglesUnchecked(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, ...) error
- func UnmarshalGlyphError(buf []byte) (xgb.XError, error)
- func UnmarshalGlyphSetError(buf []byte) (xgb.XError, error)
- func UnmarshalPictFormatError(buf []byte) (xgb.XError, error)
- func UnmarshalPictOpError(buf []byte) (xgb.XError, error)
- func UnmarshalPictureError(buf []byte) (xgb.XError, error)
- type Animcursorelt
- type Color
- type Directformat
- type Fixed
- type Glyph
- type GlyphError
- type GlyphSetError
- type Glyphinfo
- type Glyphset
- type Indexvalue
- type Linefix
- type PictFormatError
- type PictOpError
- type Pictdepth
- type Pictformat
- type Pictforminfo
- type Pictscreen
- type Picture
- type PictureError
- type Pictvisual
- type Pointfix
- type QueryFiltersReply
- type QueryPictFormatsReply
- type QueryPictIndexValuesReply
- type QueryVersionReply
- type Spanfix
- type Transform
- type Trap
- type Trapezoid
- type Triangle
Constants ¶
const ( // ExtName is the user-friendly name string of this X extension. ExtName = "Render" // ExtXName is the name string this extension is known by to the X server. ExtXName = "RENDER" )
const ( CpRepeat = 1 CpAlphaMap = 2 CpAlphaXOrigin = 4 CpAlphaYOrigin = 8 CpClipXOrigin = 16 CpClipYOrigin = 32 CpClipMask = 64 CpGraphicsExposure = 128 CpSubwindowMode = 256 CpPolyEdge = 512 CpPolyMode = 1024 CpDither = 2048 CpComponentAlpha = 4096 )
const ( PictOpClear = 0 PictOpSrc = 1 PictOpDst = 2 PictOpOver = 3 PictOpOverReverse = 4 PictOpIn = 5 PictOpInReverse = 6 PictOpOut = 7 PictOpOutReverse = 8 PictOpAtop = 9 PictOpAtopReverse = 10 PictOpXor = 11 PictOpAdd = 12 PictOpSaturate = 13 PictOpDisjointClear = 16 PictOpDisjointSrc = 17 PictOpDisjointDst = 18 PictOpDisjointOver = 19 PictOpDisjointOverReverse = 20 PictOpDisjointIn = 21 PictOpDisjointInReverse = 22 PictOpDisjointOut = 23 PictOpDisjointOutReverse = 24 PictOpDisjointAtop = 25 PictOpDisjointAtopReverse = 26 PictOpDisjointXor = 27 PictOpConjointClear = 32 PictOpConjointSrc = 33 PictOpConjointDst = 34 PictOpConjointOver = 35 PictOpConjointOverReverse = 36 PictOpConjointIn = 37 PictOpConjointInReverse = 38 PictOpConjointOut = 39 PictOpConjointOutReverse = 40 PictOpConjointAtop = 41 PictOpConjointAtopReverse = 42 PictOpConjointXor = 43 PictOpMultiply = 48 PictOpScreen = 49 PictOpOverlay = 50 PictOpDarken = 51 PictOpLighten = 52 PictOpColorDodge = 53 PictOpColorBurn = 54 PictOpHardLight = 55 PictOpSoftLight = 56 PictOpDifference = 57 PictOpExclusion = 58 PictOpHSLHue = 59 PictOpHSLSaturation = 60 PictOpHSLColor = 61 PictOpHSLLuminosity = 62 )
const ( PictTypeIndexed = 0 PictTypeDirect = 1 )
const ( PolyEdgeSharp = 0 PolyEdgeSmooth = 1 )
const ( PolyModePrecise = 0 PolyModeImprecise = 1 )
const ( RepeatNone = 0 RepeatNormal = 1 RepeatPad = 2 RepeatReflect = 3 )
const ( SubPixelUnknown = 0 SubPixelHorizontalRGB = 1 SubPixelHorizontalBGR = 2 SubPixelVerticalRGB = 3 SubPixelVerticalBGR = 4 SubPixelNone = 5 )
const BadGlyph = 4
BadGlyph is the error number for a BadGlyph.
const BadGlyphSet = 3
BadGlyphSet is the error number for a BadGlyphSet.
const BadPictFormat = 0
BadPictFormat is the error number for a BadPictFormat.
const BadPictOp = 2
BadPictOp is the error number for a BadPictOp.
const BadPicture = 1
BadPicture is the error number for a BadPicture.
const (
PictureNone = 0
)
Variables ¶
This section is empty.
Functions ¶
func AddGlyphs ¶
func AddGlyphs(c *xgb.XConn, Glyphset Glyphset, GlyphsLen uint32, Glyphids []uint32, Glyphs []Glyphinfo, Data []byte) error
AddGlyphs sends a checked request.
func AddGlyphsUnchecked ¶ added in v1.1.0
func AddGlyphsUnchecked(c *xgb.XConn, Glyphset Glyphset, GlyphsLen uint32, Glyphids []uint32, Glyphs []Glyphinfo, Data []byte) error
AddGlyphsUnchecked sends an unchecked request.
func AddTrapsUnchecked ¶ added in v1.1.0
AddTrapsUnchecked sends an unchecked request.
func AnimcursoreltListBytes ¶
func AnimcursoreltListBytes(buf []byte, list []Animcursorelt) int
AnimcursoreltListBytes writes a list of Animcursorelt values to a byte slice.
func AnimcursoreltRead ¶
func AnimcursoreltRead(buf []byte, v *Animcursorelt) int
AnimcursoreltRead reads a byte slice into a Animcursorelt value.
func AnimcursoreltReadList ¶
func AnimcursoreltReadList(buf []byte, dest []Animcursorelt) int
AnimcursoreltReadList reads a byte slice into a list of Animcursorelt values.
func ChangePicture ¶
ChangePicture sends a checked request.
func ChangePictureUnchecked ¶ added in v1.1.0
func ChangePictureUnchecked(c *xgb.XConn, Picture Picture, ValueMask uint32, ValueList []uint32) error
ChangePictureUnchecked sends an unchecked request.
func ColorListBytes ¶
ColorListBytes writes a list of Color values to a byte slice.
func ColorReadList ¶
ColorReadList reads a byte slice into a list of Color values.
func Composite ¶
func Composite(c *xgb.XConn, Op byte, Src Picture, Mask Picture, Dst Picture, SrcX int16, SrcY int16, MaskX int16, MaskY int16, DstX int16, DstY int16, Width uint16, Height uint16) error
Composite sends a checked request.
func CompositeGlyphs16 ¶
func CompositeGlyphs16(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) error
CompositeGlyphs16 sends a checked request.
func CompositeGlyphs16Unchecked ¶ added in v1.1.0
func CompositeGlyphs16Unchecked(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) error
CompositeGlyphs16Unchecked sends an unchecked request.
func CompositeGlyphs32 ¶
func CompositeGlyphs32(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) error
CompositeGlyphs32 sends a checked request.
func CompositeGlyphs32Unchecked ¶ added in v1.1.0
func CompositeGlyphs32Unchecked(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) error
CompositeGlyphs32Unchecked sends an unchecked request.
func CompositeGlyphs8 ¶
func CompositeGlyphs8(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) error
CompositeGlyphs8 sends a checked request.
func CompositeGlyphs8Unchecked ¶ added in v1.1.0
func CompositeGlyphs8Unchecked(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) error
CompositeGlyphs8Unchecked sends an unchecked request.
func CompositeUnchecked ¶ added in v1.1.0
func CompositeUnchecked(c *xgb.XConn, Op byte, Src Picture, Mask Picture, Dst Picture, SrcX int16, SrcY int16, MaskX int16, MaskY int16, DstX int16, DstY int16, Width uint16, Height uint16) error
CompositeUnchecked sends an unchecked request.
func CreateAnimCursor ¶
func CreateAnimCursor(c *xgb.XConn, Cid xproto.Cursor, Cursors []Animcursorelt) error
CreateAnimCursor sends a checked request.
func CreateAnimCursorUnchecked ¶ added in v1.1.0
func CreateAnimCursorUnchecked(c *xgb.XConn, Cid xproto.Cursor, Cursors []Animcursorelt) error
CreateAnimCursorUnchecked sends an unchecked request.
func CreateConicalGradient ¶
func CreateConicalGradient(c *xgb.XConn, Picture Picture, Center Pointfix, Angle Fixed, NumStops uint32, Stops []Fixed, Colors []Color) error
CreateConicalGradient sends a checked request.
func CreateConicalGradientUnchecked ¶ added in v1.1.0
func CreateConicalGradientUnchecked(c *xgb.XConn, Picture Picture, Center Pointfix, Angle Fixed, NumStops uint32, Stops []Fixed, Colors []Color) error
CreateConicalGradientUnchecked sends an unchecked request.
func CreateCursor ¶
CreateCursor sends a checked request.
func CreateCursorUnchecked ¶ added in v1.1.0
func CreateCursorUnchecked(c *xgb.XConn, Cid xproto.Cursor, Source Picture, X uint16, Y uint16) error
CreateCursorUnchecked sends an unchecked request.
func CreateGlyphSet ¶
func CreateGlyphSet(c *xgb.XConn, Gsid Glyphset, Format Pictformat) error
CreateGlyphSet sends a checked request.
func CreateGlyphSetUnchecked ¶ added in v1.1.0
func CreateGlyphSetUnchecked(c *xgb.XConn, Gsid Glyphset, Format Pictformat) error
CreateGlyphSetUnchecked sends an unchecked request.
func CreateLinearGradient ¶
func CreateLinearGradient(c *xgb.XConn, Picture Picture, P1 Pointfix, P2 Pointfix, NumStops uint32, Stops []Fixed, Colors []Color) error
CreateLinearGradient sends a checked request.
func CreateLinearGradientUnchecked ¶ added in v1.1.0
func CreateLinearGradientUnchecked(c *xgb.XConn, Picture Picture, P1 Pointfix, P2 Pointfix, NumStops uint32, Stops []Fixed, Colors []Color) error
CreateLinearGradientUnchecked sends an unchecked request.
func CreatePicture ¶
func CreatePicture(c *xgb.XConn, Pid Picture, Drawable xproto.Drawable, Format Pictformat, ValueMask uint32, ValueList []uint32) error
CreatePicture sends a checked request.
func CreatePictureUnchecked ¶ added in v1.1.0
func CreatePictureUnchecked(c *xgb.XConn, Pid Picture, Drawable xproto.Drawable, Format Pictformat, ValueMask uint32, ValueList []uint32) error
CreatePictureUnchecked sends an unchecked request.
func CreateRadialGradient ¶
func CreateRadialGradient(c *xgb.XConn, Picture Picture, Inner Pointfix, Outer Pointfix, InnerRadius Fixed, OuterRadius Fixed, NumStops uint32, Stops []Fixed, Colors []Color) error
CreateRadialGradient sends a checked request.
func CreateRadialGradientUnchecked ¶ added in v1.1.0
func CreateRadialGradientUnchecked(c *xgb.XConn, Picture Picture, Inner Pointfix, Outer Pointfix, InnerRadius Fixed, OuterRadius Fixed, NumStops uint32, Stops []Fixed, Colors []Color) error
CreateRadialGradientUnchecked sends an unchecked request.
func CreateSolidFill ¶
CreateSolidFill sends a checked request.
func CreateSolidFillUnchecked ¶ added in v1.1.0
CreateSolidFillUnchecked sends an unchecked request.
func DirectformatListBytes ¶
func DirectformatListBytes(buf []byte, list []Directformat) int
DirectformatListBytes writes a list of Directformat values to a byte slice.
func DirectformatRead ¶
func DirectformatRead(buf []byte, v *Directformat) int
DirectformatRead reads a byte slice into a Directformat value.
func DirectformatReadList ¶
func DirectformatReadList(buf []byte, dest []Directformat) int
DirectformatReadList reads a byte slice into a list of Directformat values.
func FillRectangles ¶
func FillRectangles(c *xgb.XConn, Op byte, Dst Picture, Color Color, Rects []xproto.Rectangle) error
FillRectangles sends a checked request.
func FillRectanglesUnchecked ¶ added in v1.1.0
func FillRectanglesUnchecked(c *xgb.XConn, Op byte, Dst Picture, Color Color, Rects []xproto.Rectangle) error
FillRectanglesUnchecked sends an unchecked request.
func FreeGlyphSet ¶
FreeGlyphSet sends a checked request.
func FreeGlyphSetUnchecked ¶ added in v1.1.0
FreeGlyphSetUnchecked sends an unchecked request.
func FreeGlyphs ¶
FreeGlyphs sends a checked request.
func FreeGlyphsUnchecked ¶ added in v1.1.0
FreeGlyphsUnchecked sends an unchecked request.
func FreePicture ¶
FreePicture sends a checked request.
func FreePictureUnchecked ¶ added in v1.1.0
FreePictureUnchecked sends an unchecked request.
func GlyphinfoListBytes ¶
GlyphinfoListBytes writes a list of Glyphinfo values to a byte slice.
func GlyphinfoRead ¶
GlyphinfoRead reads a byte slice into a Glyphinfo value.
func GlyphinfoReadList ¶
GlyphinfoReadList reads a byte slice into a list of Glyphinfo values.
func IndexvalueListBytes ¶
func IndexvalueListBytes(buf []byte, list []Indexvalue) int
IndexvalueListBytes writes a list of Indexvalue values to a byte slice.
func IndexvalueRead ¶
func IndexvalueRead(buf []byte, v *Indexvalue) int
IndexvalueRead reads a byte slice into a Indexvalue value.
func IndexvalueReadList ¶
func IndexvalueReadList(buf []byte, dest []Indexvalue) int
IndexvalueReadList reads a byte slice into a list of Indexvalue values.
func LinefixListBytes ¶
LinefixListBytes writes a list of Linefix values to a byte slice.
func LinefixRead ¶
LinefixRead reads a byte slice into a Linefix value.
func LinefixReadList ¶
LinefixReadList reads a byte slice into a list of Linefix values.
func PictdepthListBytes ¶
PictdepthListBytes writes a list of Pictdepth values to a byte slice.
func PictdepthListSize ¶
PictdepthListSize computes the size (bytes) of a list of Pictdepth values.
func PictdepthRead ¶
PictdepthRead reads a byte slice into a Pictdepth value.
func PictdepthReadList ¶
PictdepthReadList reads a byte slice into a list of Pictdepth values.
func PictforminfoListBytes ¶
func PictforminfoListBytes(buf []byte, list []Pictforminfo) int
PictforminfoListBytes writes a list of Pictforminfo values to a byte slice.
func PictforminfoRead ¶
func PictforminfoRead(buf []byte, v *Pictforminfo) int
PictforminfoRead reads a byte slice into a Pictforminfo value.
func PictforminfoReadList ¶
func PictforminfoReadList(buf []byte, dest []Pictforminfo) int
PictforminfoReadList reads a byte slice into a list of Pictforminfo values.
func PictscreenListBytes ¶
func PictscreenListBytes(buf []byte, list []Pictscreen) int
PictscreenListBytes writes a list of Pictscreen values to a byte slice.
func PictscreenListSize ¶
func PictscreenListSize(list []Pictscreen) int
PictscreenListSize computes the size (bytes) of a list of Pictscreen values.
func PictscreenRead ¶
func PictscreenRead(buf []byte, v *Pictscreen) int
PictscreenRead reads a byte slice into a Pictscreen value.
func PictscreenReadList ¶
func PictscreenReadList(buf []byte, dest []Pictscreen) int
PictscreenReadList reads a byte slice into a list of Pictscreen values.
func PictvisualListBytes ¶
func PictvisualListBytes(buf []byte, list []Pictvisual) int
PictvisualListBytes writes a list of Pictvisual values to a byte slice.
func PictvisualRead ¶
func PictvisualRead(buf []byte, v *Pictvisual) int
PictvisualRead reads a byte slice into a Pictvisual value.
func PictvisualReadList ¶
func PictvisualReadList(buf []byte, dest []Pictvisual) int
PictvisualReadList reads a byte slice into a list of Pictvisual values.
func PointfixListBytes ¶
PointfixListBytes writes a list of Pointfix values to a byte slice.
func PointfixRead ¶
PointfixRead reads a byte slice into a Pointfix value.
func PointfixReadList ¶
PointfixReadList reads a byte slice into a list of Pointfix values.
func QueryFiltersUnchecked ¶
QueryFiltersUnchecked sends an unchecked request.
func QueryPictFormatsUnchecked ¶
func QueryPictFormatsUnchecked(c *xgb.XConn) error
QueryPictFormatsUnchecked sends an unchecked request.
func QueryPictIndexValuesUnchecked ¶
func QueryPictIndexValuesUnchecked(c *xgb.XConn, Format Pictformat) error
QueryPictIndexValuesUnchecked sends an unchecked request.
func QueryVersionUnchecked ¶
func QueryVersionUnchecked(c *xgb.XConn, ClientMajorVersion uint32, ClientMinorVersion uint32) error
QueryVersionUnchecked sends an unchecked request.
func ReferenceGlyphSet ¶
ReferenceGlyphSet sends a checked request.
func ReferenceGlyphSetUnchecked ¶ added in v1.1.0
ReferenceGlyphSetUnchecked sends an unchecked request.
func Register ¶ added in v1.1.0
func Register(xconn *xgb.XConn) error
Register will query the X server for Render extension support, and register relevant extension unmarshalers with the XConn.
func SetPictureClipRectangles ¶
func SetPictureClipRectangles(c *xgb.XConn, Picture Picture, ClipXOrigin int16, ClipYOrigin int16, Rectangles []xproto.Rectangle) error
SetPictureClipRectangles sends a checked request.
func SetPictureClipRectanglesUnchecked ¶ added in v1.1.0
func SetPictureClipRectanglesUnchecked(c *xgb.XConn, Picture Picture, ClipXOrigin int16, ClipYOrigin int16, Rectangles []xproto.Rectangle) error
SetPictureClipRectanglesUnchecked sends an unchecked request.
func SetPictureFilter ¶
func SetPictureFilter(c *xgb.XConn, Picture Picture, FilterLen uint16, Filter string, Values []Fixed) error
SetPictureFilter sends a checked request.
func SetPictureFilterUnchecked ¶ added in v1.1.0
func SetPictureFilterUnchecked(c *xgb.XConn, Picture Picture, FilterLen uint16, Filter string, Values []Fixed) error
SetPictureFilterUnchecked sends an unchecked request.
func SetPictureTransform ¶
SetPictureTransform sends a checked request.
func SetPictureTransformUnchecked ¶ added in v1.1.0
SetPictureTransformUnchecked sends an unchecked request.
func SpanfixListBytes ¶
SpanfixListBytes writes a list of Spanfix values to a byte slice.
func SpanfixRead ¶
SpanfixRead reads a byte slice into a Spanfix value.
func SpanfixReadList ¶
SpanfixReadList reads a byte slice into a list of Spanfix values.
func TransformListBytes ¶
TransformListBytes writes a list of Transform values to a byte slice.
func TransformRead ¶
TransformRead reads a byte slice into a Transform value.
func TransformReadList ¶
TransformReadList reads a byte slice into a list of Transform values.
func TrapListBytes ¶
TrapListBytes writes a list of Trap values to a byte slice.
func TrapReadList ¶
TrapReadList reads a byte slice into a list of Trap values.
func TrapezoidListBytes ¶
TrapezoidListBytes writes a list of Trapezoid values to a byte slice.
func TrapezoidRead ¶
TrapezoidRead reads a byte slice into a Trapezoid value.
func TrapezoidReadList ¶
TrapezoidReadList reads a byte slice into a list of Trapezoid values.
func Trapezoids ¶
func Trapezoids(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Traps []Trapezoid) error
Trapezoids sends a checked request.
func TrapezoidsUnchecked ¶ added in v1.1.0
func TrapezoidsUnchecked(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Traps []Trapezoid) error
TrapezoidsUnchecked sends an unchecked request.
func TriFan ¶
func TriFan(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Points []Pointfix) error
TriFan sends a checked request.
func TriFanUnchecked ¶ added in v1.1.0
func TriFanUnchecked(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Points []Pointfix) error
TriFanUnchecked sends an unchecked request.
func TriStrip ¶
func TriStrip(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Points []Pointfix) error
TriStrip sends a checked request.
func TriStripUnchecked ¶ added in v1.1.0
func TriStripUnchecked(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Points []Pointfix) error
TriStripUnchecked sends an unchecked request.
func TriangleListBytes ¶
TriangleListBytes writes a list of Triangle values to a byte slice.
func TriangleRead ¶
TriangleRead reads a byte slice into a Triangle value.
func TriangleReadList ¶
TriangleReadList reads a byte slice into a list of Triangle values.
func Triangles ¶
func Triangles(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Triangles []Triangle) error
Triangles sends a checked request.
func TrianglesUnchecked ¶ added in v1.1.0
func TrianglesUnchecked(c *xgb.XConn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Triangles []Triangle) error
TrianglesUnchecked sends an unchecked request.
func UnmarshalGlyphError ¶ added in v1.1.0
UnmarshalGlyphError constructs a GlyphError value that implements xgb.Error from a byte slice.
func UnmarshalGlyphSetError ¶ added in v1.1.0
UnmarshalGlyphSetError constructs a GlyphSetError value that implements xgb.Error from a byte slice.
func UnmarshalPictFormatError ¶ added in v1.1.0
UnmarshalPictFormatError constructs a PictFormatError value that implements xgb.Error from a byte slice.
func UnmarshalPictOpError ¶ added in v1.1.0
UnmarshalPictOpError constructs a PictOpError value that implements xgb.Error from a byte slice.
func UnmarshalPictureError ¶ added in v1.1.0
UnmarshalPictureError constructs a PictureError value that implements xgb.Error from a byte slice.
Types ¶
type Animcursorelt ¶
func (Animcursorelt) Bytes ¶
func (v Animcursorelt) Bytes() []byte
Bytes writes a Animcursorelt value to a byte slice.
type Directformat ¶
type Directformat struct { RedShift uint16 RedMask uint16 GreenShift uint16 GreenMask uint16 BlueShift uint16 BlueMask uint16 AlphaShift uint16 AlphaMask uint16 }
func (Directformat) Bytes ¶
func (v Directformat) Bytes() []byte
Bytes writes a Directformat value to a byte slice.
type GlyphError ¶
func (*GlyphError) BadID ¶ added in v1.1.0
func (err *GlyphError) BadID() uint32
BadID returns the 'BadValue' number if one exists for the BadGlyph error. If no bad value exists, 0 is returned.
func (*GlyphError) Error ¶
func (err *GlyphError) Error() string
Error returns a rudimentary string representation of the BadGlyph error.
func (*GlyphError) SeqID ¶ added in v1.1.0
func (err *GlyphError) SeqID() uint16
SeqID returns the sequence id attached to the BadGlyph error. This is mostly used internally.
type GlyphSetError ¶
func (*GlyphSetError) BadID ¶ added in v1.1.0
func (err *GlyphSetError) BadID() uint32
BadID returns the 'BadValue' number if one exists for the BadGlyphSet error. If no bad value exists, 0 is returned.
func (*GlyphSetError) Error ¶
func (err *GlyphSetError) Error() string
Error returns a rudimentary string representation of the BadGlyphSet error.
func (*GlyphSetError) SeqID ¶ added in v1.1.0
func (err *GlyphSetError) SeqID() uint16
SeqID returns the sequence id attached to the BadGlyphSet error. This is mostly used internally.
type Glyphset ¶
type Glyphset uint32
func NewGlyphsetID ¶ added in v1.1.0
func NewGlyphsetID(c *xgb.XConn) Glyphset
type Indexvalue ¶
func (Indexvalue) Bytes ¶
func (v Indexvalue) Bytes() []byte
Bytes writes a Indexvalue value to a byte slice.
type PictFormatError ¶
func (*PictFormatError) BadID ¶ added in v1.1.0
func (err *PictFormatError) BadID() uint32
BadID returns the 'BadValue' number if one exists for the BadPictFormat error. If no bad value exists, 0 is returned.
func (*PictFormatError) Error ¶
func (err *PictFormatError) Error() string
Error returns a rudimentary string representation of the BadPictFormat error.
func (*PictFormatError) SeqID ¶ added in v1.1.0
func (err *PictFormatError) SeqID() uint16
SeqID returns the sequence id attached to the BadPictFormat error. This is mostly used internally.
type PictOpError ¶
func (*PictOpError) BadID ¶ added in v1.1.0
func (err *PictOpError) BadID() uint32
BadID returns the 'BadValue' number if one exists for the BadPictOp error. If no bad value exists, 0 is returned.
func (*PictOpError) Error ¶
func (err *PictOpError) Error() string
Error returns a rudimentary string representation of the BadPictOp error.
func (*PictOpError) SeqID ¶ added in v1.1.0
func (err *PictOpError) SeqID() uint16
SeqID returns the sequence id attached to the BadPictOp error. This is mostly used internally.
type Pictdepth ¶
type Pictdepth struct { Depth byte // padding: 1 bytes NumVisuals uint16 // padding: 4 bytes Visuals []Pictvisual // size: internal.Pad4((int(NumVisuals) * 8)) }
type Pictformat ¶
type Pictformat uint32
func NewPictformatID ¶ added in v1.1.0
func NewPictformatID(c *xgb.XConn) Pictformat
type Pictforminfo ¶
type Pictforminfo struct { Id Pictformat Type byte Depth byte // padding: 2 bytes Direct Directformat Colormap xproto.Colormap }
func (Pictforminfo) Bytes ¶
func (v Pictforminfo) Bytes() []byte
Bytes writes a Pictforminfo value to a byte slice.
type Pictscreen ¶
type Pictscreen struct { NumDepths uint32 Fallback Pictformat Depths []Pictdepth // size: PictdepthListSize(Depths) }
func (Pictscreen) Bytes ¶
func (v Pictscreen) Bytes() []byte
Bytes writes a Pictscreen value to a byte slice.
type Picture ¶
type Picture uint32
func NewPictureID ¶ added in v1.1.0
func NewPictureID(c *xgb.XConn) Picture
type PictureError ¶
func (*PictureError) BadID ¶ added in v1.1.0
func (err *PictureError) BadID() uint32
BadID returns the 'BadValue' number if one exists for the BadPicture error. If no bad value exists, 0 is returned.
func (*PictureError) Error ¶
func (err *PictureError) Error() string
Error returns a rudimentary string representation of the BadPicture error.
func (*PictureError) SeqID ¶ added in v1.1.0
func (err *PictureError) SeqID() uint16
SeqID returns the sequence id attached to the BadPicture error. This is mostly used internally.
type Pictvisual ¶
type Pictvisual struct { Visual xproto.Visualid Format Pictformat }
func (Pictvisual) Bytes ¶
func (v Pictvisual) Bytes() []byte
Bytes writes a Pictvisual value to a byte slice.
type QueryFiltersReply ¶
type QueryFiltersReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes NumAliases uint32 NumFilters uint32 // padding: 16 bytes Aliases []uint16 // size: internal.Pad4((int(NumAliases) * 2)) Filters []xproto.Str // size: xproto.StrListSize(Filters) }
QueryFiltersReply represents the data returned from a QueryFilters request.
func QueryFilters ¶
func QueryFilters(c *xgb.XConn, Drawable xproto.Drawable) (QueryFiltersReply, error)
QueryFilters sends a checked request.
func (*QueryFiltersReply) Unmarshal ¶ added in v1.1.0
func (v *QueryFiltersReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a QueryFiltersReply value.
type QueryPictFormatsReply ¶
type QueryPictFormatsReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes NumFormats uint32 NumScreens uint32 NumDepths uint32 NumVisuals uint32 NumSubpixel uint32 // padding: 4 bytes Formats []Pictforminfo // size: internal.Pad4((int(NumFormats) * 28)) // alignment gap to multiple of 4 Screens []Pictscreen // size: PictscreenListSize(Screens) // alignment gap to multiple of 4 Subpixels []uint32 // size: internal.Pad4((int(NumSubpixel) * 4)) }
QueryPictFormatsReply represents the data returned from a QueryPictFormats request.
func QueryPictFormats ¶
func QueryPictFormats(c *xgb.XConn) (QueryPictFormatsReply, error)
QueryPictFormats sends a checked request.
func (*QueryPictFormatsReply) Unmarshal ¶ added in v1.1.0
func (v *QueryPictFormatsReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a QueryPictFormatsReply value.
type QueryPictIndexValuesReply ¶
type QueryPictIndexValuesReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes NumValues uint32 // padding: 20 bytes Values []Indexvalue // size: internal.Pad4((int(NumValues) * 12)) }
QueryPictIndexValuesReply represents the data returned from a QueryPictIndexValues request.
func QueryPictIndexValues ¶
func QueryPictIndexValues(c *xgb.XConn, Format Pictformat) (QueryPictIndexValuesReply, error)
QueryPictIndexValues sends a checked request.
func (*QueryPictIndexValuesReply) Unmarshal ¶ added in v1.1.0
func (v *QueryPictIndexValuesReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a QueryPictIndexValuesReply value.
type QueryVersionReply ¶
type QueryVersionReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes MajorVersion uint32 MinorVersion uint32 }
QueryVersionReply represents the data returned from a QueryVersion request.
func QueryVersion ¶
func QueryVersion(c *xgb.XConn, ClientMajorVersion uint32, ClientMinorVersion uint32) (QueryVersionReply, error)
QueryVersion sends a checked request.
func (*QueryVersionReply) Unmarshal ¶ added in v1.1.0
func (v *QueryVersionReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a QueryVersionReply value.