render

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Code generated by xtgen; DO NOT EDIT.

Code generated by xtgen; DO NOT EDIT.

Code generated by xtgen; DO NOT EDIT.

Code generated by xtgen; DO NOT EDIT.

Index

Constants

View Source
const (
	BadPictFormat uint8 = 0
	BadPicture    uint8 = 1
	BadPictOp     uint8 = 2
	BadGlyphSet   uint8 = 3
	BadGlyph      uint8 = 4
)

Error codes: error codes relative to the extension's FirstError (XError.Rel).

View Source
const AnimcursoreltSize = 8
View Source
const ColorSize = 8
View Source
const DirectformatSize = 16
View Source
const GlyphinfoSize = 12
View Source
const IndexvalueSize = 12
View Source
const LinefixSize = 16
View Source
const PictdepthSize = 8
View Source
const PictforminfoSize = 28
View Source
const PictscreenSize = 8
View Source
const PictvisualSize = 8
View Source
const PointfixSize = 8
View Source
const SpanfixSize = 12
View Source
const TransformSize = 36
View Source
const TrapSize = 24
View Source
const TrapezoidSize = 40
View Source
const TriangleSize = 24

Variables

This section is empty.

Functions

func AddGlyphs

func AddGlyphs(b *xturbo.Buf, glyphset Glyphset, glyphsLen uint32, glyphids []uint32, glyphs []Glyphinfo, data []byte) xturbo.Seq

func AddTraps

func AddTraps(b *xturbo.Buf, picture Picture, xOff int16, yOff int16, traps []Trap) xturbo.Seq

func ChangePicture

func ChangePicture(b *xturbo.Buf, picture Picture, v *ChangePictureValues) xturbo.Seq

func Composite

func Composite(b *xturbo.Buf, op PictOp, src Picture, mask Picture, dst Picture, srcX int16, srcY int16, maskX int16, maskY int16, dstX int16, dstY int16, width uint16, height uint16) xturbo.Seq

func CompositeGlyphs8

func CompositeGlyphs8(b *xturbo.Buf, op PictOp, src Picture, dst Picture, maskFormat Pictformat, glyphset Glyphset, srcX int16, srcY int16, glyphcmds []byte) xturbo.Seq

func CompositeGlyphs16

func CompositeGlyphs16(b *xturbo.Buf, op PictOp, src Picture, dst Picture, maskFormat Pictformat, glyphset Glyphset, srcX int16, srcY int16, glyphcmds []byte) xturbo.Seq

func CompositeGlyphs32

func CompositeGlyphs32(b *xturbo.Buf, op PictOp, src Picture, dst Picture, maskFormat Pictformat, glyphset Glyphset, srcX int16, srcY int16, glyphcmds []byte) xturbo.Seq

func CreateAnimCursor

func CreateAnimCursor(b *xturbo.Buf, cid xproto.Cursor, cursors []Animcursorelt) xturbo.Seq

func CreateConicalGradient

func CreateConicalGradient(b *xturbo.Buf, picture Picture, center Pointfix, angle Fixed, numStops uint32, stops []Fixed, colors []Color) xturbo.Seq

func CreateCursor

func CreateCursor(b *xturbo.Buf, cid xproto.Cursor, source Picture, x uint16, y uint16) xturbo.Seq

func CreateGlyphSet

func CreateGlyphSet(b *xturbo.Buf, gsid Glyphset, format Pictformat) xturbo.Seq

func CreateLinearGradient

func CreateLinearGradient(b *xturbo.Buf, picture Picture, p1 Pointfix, p2 Pointfix, numStops uint32, stops []Fixed, colors []Color) xturbo.Seq

func CreatePicture

func CreatePicture(b *xturbo.Buf, pid Picture, drawable xproto.Drawable, format Pictformat, v *CreatePictureValues) xturbo.Seq

func CreateRadialGradient

func CreateRadialGradient(b *xturbo.Buf, picture Picture, inner Pointfix, outer Pointfix, innerRadius Fixed, outerRadius Fixed, numStops uint32, stops []Fixed, colors []Color) xturbo.Seq

func CreateSolidFill

func CreateSolidFill(b *xturbo.Buf, picture Picture, color Color) xturbo.Seq

func ErrorName

func ErrorName(code uint8) string

ErrorName returns the name of an error code (error codes relative to the extension's FirstError (XError.Rel)), or "" when unknown.

func FillRectangles

func FillRectangles(b *xturbo.Buf, op PictOp, dst Picture, color Color, rects []xproto.Rectangle) xturbo.Seq

func FreeGlyphSet

func FreeGlyphSet(b *xturbo.Buf, glyphset Glyphset) xturbo.Seq

func FreeGlyphs

func FreeGlyphs(b *xturbo.Buf, glyphset Glyphset, glyphs []Glyph) xturbo.Seq

func FreePicture

func FreePicture(b *xturbo.Buf, picture Picture) xturbo.Seq

func QueryFilters

func QueryFilters(b *xturbo.Buf, drawable xproto.Drawable) xturbo.Seq

func QueryPictFormats

func QueryPictFormats(b *xturbo.Buf) xturbo.Seq

func QueryPictIndexValues

func QueryPictIndexValues(b *xturbo.Buf, format Pictformat) xturbo.Seq

func QueryVersion

func QueryVersion(b *xturbo.Buf, clientMajorVersion uint32, clientMinorVersion uint32) xturbo.Seq

func ReferenceGlyphSet

func ReferenceGlyphSet(b *xturbo.Buf, gsid Glyphset, existing Glyphset) xturbo.Seq

func SetPictureClipRectangles

func SetPictureClipRectangles(b *xturbo.Buf, picture Picture, clipXOrigin int16, clipYOrigin int16, rectangles []xproto.Rectangle) xturbo.Seq

func SetPictureFilter

func SetPictureFilter(b *xturbo.Buf, picture Picture, filter string, values []Fixed) xturbo.Seq

func SetPictureTransform

func SetPictureTransform(b *xturbo.Buf, picture Picture, transform Transform) xturbo.Seq

func Trapezoids

func Trapezoids(b *xturbo.Buf, op PictOp, src Picture, dst Picture, maskFormat Pictformat, srcX int16, srcY int16, traps []Trapezoid) xturbo.Seq

func TriFan

func TriFan(b *xturbo.Buf, op PictOp, src Picture, dst Picture, maskFormat Pictformat, srcX int16, srcY int16, points []Pointfix) xturbo.Seq

func TriStrip

func TriStrip(b *xturbo.Buf, op PictOp, src Picture, dst Picture, maskFormat Pictformat, srcX int16, srcY int16, points []Pointfix) xturbo.Seq

func Triangles

func Triangles(b *xturbo.Buf, op PictOp, src Picture, dst Picture, maskFormat Pictformat, srcX int16, srcY int16, triangles []Triangle) xturbo.Seq

Types

type Animcursorelt

type Animcursorelt struct {
	Cursor xproto.Cursor
	Delay  uint32
}

func GetAnimcursorelt

func GetAnimcursorelt(p []byte) (v Animcursorelt)

func (Animcursorelt) Put

func (v Animcursorelt) Put(p []byte)

type ChangePictureValues

type ChangePictureValues struct {
	Mask             Cp
	Repeat           Repeat
	Alphamap         Picture
	Alphaxorigin     int32
	Alphayorigin     int32
	Clipxorigin      int32
	Clipyorigin      int32
	Clipmask         xproto.Pixmap
	Graphicsexposure uint32
	Subwindowmode    xproto.SubwindowMode
	Polyedge         PolyEdge
	Polymode         PolyMode
	Dither           xproto.Atom
	Componentalpha   uint32
}

func (*ChangePictureValues) SetAlphamap

func (v *ChangePictureValues) SetAlphamap(x Picture) *ChangePictureValues

func (*ChangePictureValues) SetAlphaxorigin

func (v *ChangePictureValues) SetAlphaxorigin(x int32) *ChangePictureValues

func (*ChangePictureValues) SetAlphayorigin

func (v *ChangePictureValues) SetAlphayorigin(x int32) *ChangePictureValues

func (*ChangePictureValues) SetClipmask

func (*ChangePictureValues) SetClipxorigin

func (v *ChangePictureValues) SetClipxorigin(x int32) *ChangePictureValues

func (*ChangePictureValues) SetClipyorigin

func (v *ChangePictureValues) SetClipyorigin(x int32) *ChangePictureValues

func (*ChangePictureValues) SetComponentalpha

func (v *ChangePictureValues) SetComponentalpha(x uint32) *ChangePictureValues

func (*ChangePictureValues) SetDither

func (*ChangePictureValues) SetGraphicsexposure

func (v *ChangePictureValues) SetGraphicsexposure(x uint32) *ChangePictureValues

func (*ChangePictureValues) SetPolyedge

func (*ChangePictureValues) SetPolymode

func (*ChangePictureValues) SetRepeat

func (*ChangePictureValues) SetSubwindowmode

type Color

type Color struct {
	Red   uint16
	Green uint16
	Blue  uint16
	Alpha uint16
}

func GetColor

func GetColor(p []byte) (v Color)

func (Color) Put

func (v Color) Put(p []byte)

type Cp

type Cp uint32
const CpAlphaMap Cp = 2
const CpAlphaXOrigin Cp = 4
const CpAlphaYOrigin Cp = 8
const CpClipMask Cp = 64
const CpClipXOrigin Cp = 16
const CpClipYOrigin Cp = 32
const CpComponentAlpha Cp = 4096
const CpDither Cp = 2048
const CpGraphicsExposure Cp = 128
const CpPolyEdge Cp = 512
const CpPolyMode Cp = 1024
const CpRepeat Cp = 1
const CpSubwindowMode Cp = 256

type CreatePictureValues

type CreatePictureValues struct {
	Mask             Cp
	Repeat           Repeat
	Alphamap         Picture
	Alphaxorigin     int32
	Alphayorigin     int32
	Clipxorigin      int32
	Clipyorigin      int32
	Clipmask         xproto.Pixmap
	Graphicsexposure uint32
	Subwindowmode    xproto.SubwindowMode
	Polyedge         PolyEdge
	Polymode         PolyMode
	Dither           xproto.Atom
	Componentalpha   uint32
}

func (*CreatePictureValues) SetAlphamap

func (v *CreatePictureValues) SetAlphamap(x Picture) *CreatePictureValues

func (*CreatePictureValues) SetAlphaxorigin

func (v *CreatePictureValues) SetAlphaxorigin(x int32) *CreatePictureValues

func (*CreatePictureValues) SetAlphayorigin

func (v *CreatePictureValues) SetAlphayorigin(x int32) *CreatePictureValues

func (*CreatePictureValues) SetClipmask

func (*CreatePictureValues) SetClipxorigin

func (v *CreatePictureValues) SetClipxorigin(x int32) *CreatePictureValues

func (*CreatePictureValues) SetClipyorigin

func (v *CreatePictureValues) SetClipyorigin(x int32) *CreatePictureValues

func (*CreatePictureValues) SetComponentalpha

func (v *CreatePictureValues) SetComponentalpha(x uint32) *CreatePictureValues

func (*CreatePictureValues) SetDither

func (*CreatePictureValues) SetGraphicsexposure

func (v *CreatePictureValues) SetGraphicsexposure(x uint32) *CreatePictureValues

func (*CreatePictureValues) SetPolyedge

func (*CreatePictureValues) SetPolymode

func (*CreatePictureValues) SetRepeat

func (*CreatePictureValues) SetSubwindowmode

type Directformat

type Directformat struct {
	RedShift   uint16
	RedMask    uint16
	GreenShift uint16
	GreenMask  uint16
	BlueShift  uint16
	BlueMask   uint16
	AlphaShift uint16
	AlphaMask  uint16
}

func GetDirectformat

func GetDirectformat(p []byte) (v Directformat)

func (Directformat) Put

func (v Directformat) Put(p []byte)

type Fixed

type Fixed int32

type Glyph

type Glyph uint32

type Glyphinfo

type Glyphinfo struct {
	Width  uint16
	Height uint16
	X      int16
	Y      int16
	XOff   int16
	YOff   int16
}

func GetGlyphinfo

func GetGlyphinfo(p []byte) (v Glyphinfo)

func (Glyphinfo) Put

func (v Glyphinfo) Put(p []byte)

type Glyphset

type Glyphset uint32

type Indexvalue

type Indexvalue struct {
	Pixel uint32
	Red   uint16
	Green uint16
	Blue  uint16
	Alpha uint16
}

func GetIndexvalue

func GetIndexvalue(p []byte) (v Indexvalue)

func (Indexvalue) Put

func (v Indexvalue) Put(p []byte)

type IndexvalueList

type IndexvalueList struct {
	// contains filtered or unexported fields
}

IndexvalueList is a borrowed view over a wire list of Indexvalue. It shares the lifetime of the bytes it was taken from; copy what you keep.

func (IndexvalueList) At

func (l IndexvalueList) At(i int) Indexvalue

func (IndexvalueList) Len

func (l IndexvalueList) Len() int

type Linefix

type Linefix struct {
	P1 Pointfix
	P2 Pointfix
}

func GetLinefix

func GetLinefix(p []byte) (v Linefix)

func (Linefix) Put

func (v Linefix) Put(p []byte)

type PictOp

type PictOp uint8
const PictOpAdd PictOp = 12
const PictOpAtop PictOp = 9
const PictOpAtopReverse PictOp = 10
const PictOpClear PictOp = 0
const PictOpColorBurn PictOp = 54
const PictOpColorDodge PictOp = 53
const PictOpConjointAtop PictOp = 41
const PictOpConjointAtopReverse PictOp = 42
const PictOpConjointClear PictOp = 32
const PictOpConjointDst PictOp = 34
const PictOpConjointIn PictOp = 37
const PictOpConjointInReverse PictOp = 38
const PictOpConjointOut PictOp = 39
const PictOpConjointOutReverse PictOp = 40
const PictOpConjointOver PictOp = 35
const PictOpConjointOverReverse PictOp = 36
const PictOpConjointSrc PictOp = 33
const PictOpConjointXor PictOp = 43
const PictOpDarken PictOp = 51
const PictOpDifference PictOp = 57
const PictOpDisjointAtop PictOp = 25
const PictOpDisjointAtopReverse PictOp = 26
const PictOpDisjointClear PictOp = 16
const PictOpDisjointDst PictOp = 18
const PictOpDisjointIn PictOp = 21
const PictOpDisjointInReverse PictOp = 22
const PictOpDisjointOut PictOp = 23
const PictOpDisjointOutReverse PictOp = 24
const PictOpDisjointOver PictOp = 19
const PictOpDisjointOverReverse PictOp = 20
const PictOpDisjointSrc PictOp = 17
const PictOpDisjointXor PictOp = 27
const PictOpDst PictOp = 2
const PictOpExclusion PictOp = 58
const PictOpHSLColor PictOp = 61
const PictOpHSLHue PictOp = 59
const PictOpHSLLuminosity PictOp = 62
const PictOpHSLSaturation PictOp = 60
const PictOpHardLight PictOp = 55
const PictOpIn PictOp = 5
const PictOpInReverse PictOp = 6
const PictOpLighten PictOp = 52
const PictOpMultiply PictOp = 48
const PictOpOut PictOp = 7
const PictOpOutReverse PictOp = 8
const PictOpOver PictOp = 3
const PictOpOverReverse PictOp = 4
const PictOpOverlay PictOp = 50
const PictOpSaturate PictOp = 13
const PictOpScreen PictOp = 49
const PictOpSoftLight PictOp = 56
const PictOpSrc PictOp = 1
const PictOpXor PictOp = 11

type PictType

type PictType uint8
const PictTypeDirect PictType = 1
const PictTypeIndexed PictType = 0

type Pictdepth

type Pictdepth struct {
	Depth      uint8
	NumVisuals uint16
	Visuals    []Pictvisual
}

func (Pictdepth) Put

func (v Pictdepth) Put(p []byte)

func (Pictdepth) Size

func (v Pictdepth) Size() int

type PictdepthIter

type PictdepthIter struct {
	// contains filtered or unexported fields
}

PictdepthIter walks n consecutive Pictdepth elements; Err reports a malformed length. It shares the lifetime of the bytes it walks.

func NewPictdepthIter

func NewPictdepthIter(b []byte, n int) PictdepthIter

NewPictdepthIter iterates n elements encoded at the start of b.

func (*PictdepthIter) Err

func (it *PictdepthIter) Err() bool

func (*PictdepthIter) Next

func (it *PictdepthIter) Next() bool

func (*PictdepthIter) Value

func (it *PictdepthIter) Value() PictdepthView

type PictdepthView

type PictdepthView struct {
	// contains filtered or unexported fields
}

PictdepthView is a zero-copy view over one wire-encoded Pictdepth, yielded by PictdepthIter. It shares the lifetime of the bytes it was taken from (for replies: until the Handler callback returns). Copy what you keep.

func (PictdepthView) Depth

func (v PictdepthView) Depth() uint8

func (PictdepthView) NumVisuals

func (v PictdepthView) NumVisuals() uint16

func (PictdepthView) Raw

func (v PictdepthView) Raw() []byte

func (PictdepthView) Size

func (v PictdepthView) Size() int

Size is the element's wire size, including trailing alignment.

func (PictdepthView) Visuals

func (v PictdepthView) Visuals() PictvisualList

type Pictformat

type Pictformat uint32

type Pictforminfo

type Pictforminfo struct {
	Id       Pictformat
	Type     PictType
	Depth    uint8
	Direct   Directformat
	Colormap xproto.Colormap
}

func GetPictforminfo

func GetPictforminfo(p []byte) (v Pictforminfo)

func (Pictforminfo) Put

func (v Pictforminfo) Put(p []byte)

type PictforminfoList

type PictforminfoList struct {
	// contains filtered or unexported fields
}

PictforminfoList is a borrowed view over a wire list of Pictforminfo. It shares the lifetime of the bytes it was taken from; copy what you keep.

func (PictforminfoList) At

func (PictforminfoList) Len

func (l PictforminfoList) Len() int

type Pictscreen

type Pictscreen struct {
	NumDepths uint32
	Fallback  Pictformat
	Depths    []Pictdepth
}

func (Pictscreen) Put

func (v Pictscreen) Put(p []byte)

func (Pictscreen) Size

func (v Pictscreen) Size() int

type PictscreenIter

type PictscreenIter struct {
	// contains filtered or unexported fields
}

PictscreenIter walks n consecutive Pictscreen elements; Err reports a malformed length. It shares the lifetime of the bytes it walks.

func NewPictscreenIter

func NewPictscreenIter(b []byte, n int) PictscreenIter

NewPictscreenIter iterates n elements encoded at the start of b.

func (*PictscreenIter) Err

func (it *PictscreenIter) Err() bool

func (*PictscreenIter) Next

func (it *PictscreenIter) Next() bool

func (*PictscreenIter) Value

func (it *PictscreenIter) Value() PictscreenView

type PictscreenView

type PictscreenView struct {
	// contains filtered or unexported fields
}

PictscreenView is a zero-copy view over one wire-encoded Pictscreen, yielded by PictscreenIter. It shares the lifetime of the bytes it was taken from (for replies: until the Handler callback returns). Copy what you keep.

func (PictscreenView) Depths

func (v PictscreenView) Depths() PictdepthIter

func (PictscreenView) Fallback

func (v PictscreenView) Fallback() Pictformat

func (PictscreenView) NumDepths

func (v PictscreenView) NumDepths() uint32

func (PictscreenView) Raw

func (v PictscreenView) Raw() []byte

func (PictscreenView) Size

func (v PictscreenView) Size() int

Size is the element's wire size, including trailing alignment.

type Picture

type Picture uint32
const PictureNone Picture = 0

type Pictvisual

type Pictvisual struct {
	Visual xproto.Visualid
	Format Pictformat
}

func GetPictvisual

func GetPictvisual(p []byte) (v Pictvisual)

func (Pictvisual) Put

func (v Pictvisual) Put(p []byte)

type PictvisualList

type PictvisualList struct {
	// contains filtered or unexported fields
}

PictvisualList is a borrowed view over a wire list of Pictvisual. It shares the lifetime of the bytes it was taken from; copy what you keep.

func (PictvisualList) At

func (l PictvisualList) At(i int) Pictvisual

func (PictvisualList) Len

func (l PictvisualList) Len() int

type Pointfix

type Pointfix struct {
	X Fixed
	Y Fixed
}

func GetPointfix

func GetPointfix(p []byte) (v Pointfix)

func (Pointfix) Put

func (v Pointfix) Put(p []byte)

type PolyEdge

type PolyEdge uint32
const PolyEdgeSharp PolyEdge = 0
const PolyEdgeSmooth PolyEdge = 1

type PolyMode

type PolyMode uint32
const PolyModeImprecise PolyMode = 1
const PolyModePrecise PolyMode = 0

type QueryFiltersReply

type QueryFiltersReply struct {
	// contains filtered or unexported fields
}

QueryFiltersReply is a zero-copy view over a QueryFilters reply; offsets count from reply byte 0. It borrows the reply bytes: valid only until the Handler callback returns, because the read ring is reused. Copy what you keep.

func ParseQueryFiltersReply

func ParseQueryFiltersReply(raw []byte) (QueryFiltersReply, bool)

ParseQueryFiltersReply validates raw (the whole reply, 32+4*length bytes) once; getters do not re-check.

func (QueryFiltersReply) Aliases

func (r QueryFiltersReply) Aliases() Uint16List

func (QueryFiltersReply) Filters

func (r QueryFiltersReply) Filters() xproto.StrIter

func (QueryFiltersReply) NumAliases

func (r QueryFiltersReply) NumAliases() uint32

func (QueryFiltersReply) NumFilters

func (r QueryFiltersReply) NumFilters() uint32

func (QueryFiltersReply) Raw

func (r QueryFiltersReply) Raw() []byte

type QueryPictFormatsReply

type QueryPictFormatsReply struct {
	// contains filtered or unexported fields
}

QueryPictFormatsReply is a zero-copy view over a QueryPictFormats reply; offsets count from reply byte 0. It borrows the reply bytes: valid only until the Handler callback returns, because the read ring is reused. Copy what you keep.

func ParseQueryPictFormatsReply

func ParseQueryPictFormatsReply(raw []byte) (QueryPictFormatsReply, bool)

ParseQueryPictFormatsReply validates raw (the whole reply, 32+4*length bytes) once; getters do not re-check.

func (QueryPictFormatsReply) Formats

func (QueryPictFormatsReply) NumDepths

func (r QueryPictFormatsReply) NumDepths() uint32

func (QueryPictFormatsReply) NumFormats

func (r QueryPictFormatsReply) NumFormats() uint32

func (QueryPictFormatsReply) NumScreens

func (r QueryPictFormatsReply) NumScreens() uint32

func (QueryPictFormatsReply) NumSubpixel

func (r QueryPictFormatsReply) NumSubpixel() uint32

func (QueryPictFormatsReply) NumVisuals

func (r QueryPictFormatsReply) NumVisuals() uint32

func (QueryPictFormatsReply) Raw

func (r QueryPictFormatsReply) Raw() []byte

func (QueryPictFormatsReply) Screens

func (QueryPictFormatsReply) Subpixels

func (r QueryPictFormatsReply) Subpixels() SubPixelList

type QueryPictIndexValuesReply

type QueryPictIndexValuesReply struct {
	// contains filtered or unexported fields
}

QueryPictIndexValuesReply is a zero-copy view over a QueryPictIndexValues reply; offsets count from reply byte 0. It borrows the reply bytes: valid only until the Handler callback returns, because the read ring is reused. Copy what you keep.

func ParseQueryPictIndexValuesReply

func ParseQueryPictIndexValuesReply(raw []byte) (QueryPictIndexValuesReply, bool)

ParseQueryPictIndexValuesReply validates raw (the whole reply, 32+4*length bytes) once; getters do not re-check.

func (QueryPictIndexValuesReply) NumValues

func (r QueryPictIndexValuesReply) NumValues() uint32

func (QueryPictIndexValuesReply) Raw

func (r QueryPictIndexValuesReply) Raw() []byte

func (QueryPictIndexValuesReply) Values

type QueryVersionReply

type QueryVersionReply struct {
	// contains filtered or unexported fields
}

QueryVersionReply is a zero-copy view over a QueryVersion reply; offsets count from reply byte 0. It borrows the reply bytes: valid only until the Handler callback returns, because the read ring is reused. Copy what you keep.

func ParseQueryVersionReply

func ParseQueryVersionReply(raw []byte) (QueryVersionReply, bool)

ParseQueryVersionReply validates raw (the whole reply, 32+4*length bytes) once; getters do not re-check.

func (QueryVersionReply) MajorVersion

func (r QueryVersionReply) MajorVersion() uint32

func (QueryVersionReply) MinorVersion

func (r QueryVersionReply) MinorVersion() uint32

func (QueryVersionReply) Raw

func (r QueryVersionReply) Raw() []byte

type Repeat

type Repeat uint32
const RepeatNone Repeat = 0
const RepeatNormal Repeat = 1
const RepeatPad Repeat = 2
const RepeatReflect Repeat = 3

type Spanfix

type Spanfix struct {
	L Fixed
	R Fixed
	Y Fixed
}

func GetSpanfix

func GetSpanfix(p []byte) (v Spanfix)

func (Spanfix) Put

func (v Spanfix) Put(p []byte)

type SubPixel

type SubPixel uint32
const SubPixelHorizontalBGR SubPixel = 2
const SubPixelHorizontalRGB SubPixel = 1
const SubPixelNone SubPixel = 5
const SubPixelUnknown SubPixel = 0
const SubPixelVerticalBGR SubPixel = 4
const SubPixelVerticalRGB SubPixel = 3

type SubPixelList

type SubPixelList struct {
	// contains filtered or unexported fields
}

SubPixelList is a borrowed view over a wire list of SubPixel. It shares the lifetime of the bytes it was taken from; copy what you keep.

func (SubPixelList) At

func (l SubPixelList) At(i int) SubPixel

func (SubPixelList) Len

func (l SubPixelList) Len() int

type Transform

type Transform struct {
	Matrix11 Fixed
	Matrix12 Fixed
	Matrix13 Fixed
	Matrix21 Fixed
	Matrix22 Fixed
	Matrix23 Fixed
	Matrix31 Fixed
	Matrix32 Fixed
	Matrix33 Fixed
}

func GetTransform

func GetTransform(p []byte) (v Transform)

func (Transform) Put

func (v Transform) Put(p []byte)

type Trap

type Trap struct {
	Top Spanfix
	Bot Spanfix
}

func GetTrap

func GetTrap(p []byte) (v Trap)

func (Trap) Put

func (v Trap) Put(p []byte)

type Trapezoid

type Trapezoid struct {
	Top    Fixed
	Bottom Fixed
	Left   Linefix
	Right  Linefix
}

func GetTrapezoid

func GetTrapezoid(p []byte) (v Trapezoid)

func (Trapezoid) Put

func (v Trapezoid) Put(p []byte)

type Triangle

type Triangle struct {
	P1 Pointfix
	P2 Pointfix
	P3 Pointfix
}

func GetTriangle

func GetTriangle(p []byte) (v Triangle)

func (Triangle) Put

func (v Triangle) Put(p []byte)

type Uint16List

type Uint16List struct {
	// contains filtered or unexported fields
}

Uint16List is a borrowed view over a wire list of uint16. It shares the lifetime of the bytes it was taken from; copy what you keep.

func (Uint16List) At

func (l Uint16List) At(i int) uint16

func (Uint16List) Len

func (l Uint16List) Len() int

Source Files

  • errors_generated.go
  • replies_generated.go
  • requests_generated.go
  • types_generated.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL