Documentation ¶
Index ¶
- Constants
- func AddGlyphs(conn *x.Conn, glyphSet GlyphSet, glyphIds []uint32, glyphs []GlyphInfo, ...)
- func AddGlyphsChecked(conn *x.Conn, glyphSet GlyphSet, glyphIds []uint32, glyphs []GlyphInfo, ...) x.VoidCookie
- func AddTraps(conn *x.Conn, picture Picture, xOff, yOff int16, traps []Trap)
- func AddTrapsChecked(conn *x.Conn, picture Picture, xOff, yOff int16, traps []Trap) x.VoidCookie
- func ChangePicture(conn *x.Conn, picture Picture, valueMask uint32, valueList []uint32)
- func ChangePictureChecked(conn *x.Conn, picture Picture, valueMask uint32, valueList []uint32) x.VoidCookie
- func Composite(conn *x.Conn, op uint8, src, mask, dst Picture, ...)
- func CompositeChecked(conn *x.Conn, op uint8, src, mask, dst Picture, ...) x.VoidCookie
- func CompositeGlyphs16(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, ...)
- func CompositeGlyphs16Checked(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, ...) x.VoidCookie
- func CompositeGlyphs32(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, ...)
- func CompositeGlyphs32Checked(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, ...) x.VoidCookie
- func CompositeGlyphs8(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, ...)
- func CompositeGlyphs8Checked(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, ...) x.VoidCookie
- func CreateAnimCursor(conn *x.Conn, cid x.Cursor, cursors []AnimCursorElt)
- func CreateAnimCursorChecked(conn *x.Conn, cid x.Cursor, cursors []AnimCursorElt) x.VoidCookie
- func CreateConicalGradient(conn *x.Conn, picture Picture, center PointFixed, angle Fixed, stops []Fixed, ...)
- func CreateConicalGradientChecked(conn *x.Conn, picture Picture, center PointFixed, angle Fixed, stops []Fixed, ...) x.VoidCookie
- func CreateCursor(conn *x.Conn, cid x.Cursor, source Picture, X, y uint16)
- func CreateCursorChecked(conn *x.Conn, cid x.Cursor, source Picture, X, y uint16) x.VoidCookie
- func CreateGlyphSet(conn *x.Conn, gsId GlyphSet, format PictFormat)
- func CreateGlyphSetChecked(conn *x.Conn, gsId GlyphSet, format PictFormat) x.VoidCookie
- func CreateLinearGradient(conn *x.Conn, picture Picture, p1, p2 PointFixed, stops []Fixed, ...)
- func CreateLinearGradientChecked(conn *x.Conn, picture Picture, p1, p2 PointFixed, stops []Fixed, ...) x.VoidCookie
- func CreatePicture(conn *x.Conn, pid Picture, drawable x.Drawable, format PictFormat, ...)
- func CreatePictureChecked(conn *x.Conn, pid Picture, drawable x.Drawable, format PictFormat, ...) x.VoidCookie
- func CreateRadialGradient(conn *x.Conn, picture Picture, inner, outer PointFixed, ...)
- func CreateRadialGradientChecked(conn *x.Conn, picture Picture, inner, outer PointFixed, ...) x.VoidCookie
- func CreateSolidFill(conn *x.Conn, pid Picture, color Color)
- func CreateSolidFillChecked(conn *x.Conn, pid Picture, color Color) x.VoidCookie
- func Ext() *x.Extension
- func FillRectangles(conn *x.Conn, op uint8, dst Picture, color Color, rects []x.Rectangle)
- func FillRectanglesChecked(conn *x.Conn, op uint8, dst Picture, color Color, rects []x.Rectangle) x.VoidCookie
- func FreeGlyphSet(conn *x.Conn, glyphSet GlyphSet)
- func FreeGlyphSetChecked(conn *x.Conn, glyphSet GlyphSet) x.VoidCookie
- func FreeGlyphs(conn *x.Conn, glyphSet GlyphSet, glyphs []Glyph)
- func FreeGlyphsChecked(conn *x.Conn, glyphSet GlyphSet, glyphs []Glyph) x.VoidCookie
- func FreePicture(conn *x.Conn, picture Picture)
- func FreePictureChecked(conn *x.Conn, picture Picture) x.VoidCookie
- func ReferenceGlyphSet(conn *x.Conn, gsId, existing GlyphSet)
- func ReferenceGlyphSetChecked(conn *x.Conn, gsId, existing GlyphSet) x.VoidCookie
- func SetPictureClipRectangles(conn *x.Conn, picture Picture, clipXOrigin, clipYOrigin int16, ...)
- func SetPictureClipRectanglesChecked(conn *x.Conn, picture Picture, clipXOrigin, clipYOrigin int16, ...) x.VoidCookie
- func SetPictureFilter(conn *x.Conn, picture Picture, filter string, values []Fixed)
- func SetPictureFilterChecked(conn *x.Conn, picture Picture, filter string, values []Fixed) x.VoidCookie
- func SetPictureTransform(conn *x.Conn, picture Picture, transform *Transform)
- func SetPictureTransformChecked(conn *x.Conn, picture Picture, transform *Transform) x.VoidCookie
- func Trapezoids(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, ...)
- func TrapezoidsChecked(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, ...) x.VoidCookie
- func TriFan(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, ...)
- func TriFanChecked(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, ...) x.VoidCookie
- func TriStrip(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, ...)
- func TriStripChecked(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, ...) x.VoidCookie
- func Triangles(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, ...)
- func TrianglesChecked(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, ...) x.VoidCookie
- type AnimCursorElt
- type Color
- type DirectFormat
- type Fixed
- type Glyph
- type GlyphInfo
- type GlyphSet
- type IndexValue
- type LineFixed
- type PictDepth
- type PictFormat
- type PictFormatInfo
- type PictScreen
- type PictVisual
- type Picture
- type PointFixed
- type QueryFiltersCookie
- type QueryFiltersReply
- type QueryPictFormatsCookie
- type QueryPictFormatsReply
- type QueryPictIndexValuesCookie
- type QueryPictIndexValuesReply
- type QueryVersionCookie
- type QueryVersionReply
- type SpanFixed
- type Transform
- type Trap
- type Trapezoid
- type Triangle
Constants ¶
View Source
const ( PictTypeIndexed = 0 PictTypeDirect = 1 )
enum PictType
View Source
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 )
enum PictOp
View Source
const ( PolyEdgeSharp = 0 PolyEdgeSmooth = 1 )
enum PolyEdge
View Source
const ( PolyModePrecise = 0 PolyModeImprecise = 1 )
enum PolyMode
View Source
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 )
enum CP
View Source
const ( SubPixelUnknown = 0 SubPixelHorizontalRGB = 1 SubPixelHorizontalBGR = 2 SubPixelVerticalRGB = 3 SubPixelVerticalBGR = 4 SubPixelNone = 5 )
enum SubPixel
View Source
const ( RepeatNone = 0 RepeatNormal = 1 RepeatPad = 2 RepeatReflect = 3 )
enum Repeat
View Source
const AddGlyphsOpcode = 20
View Source
const AddTrapsOpcode = 32
View Source
const ChangePictureOpcode = 5
View Source
const CompositeGlyphs16Opcode = 24
View Source
const CompositeGlyphs32Opcode = 25
View Source
const CompositeGlyphs8Opcode = 23
View Source
const CompositeOpcode = 8
View Source
const CreateAnimCursorOpcode = 31
View Source
const CreateConicalGradientOpcode = 36
View Source
const CreateCursorOpcode = 27
View Source
const CreateGlyphSetOpcode = 17
View Source
const CreateLinearGradientOpcode = 34
View Source
const CreatePictureOpcode = 4
View Source
const CreateRadialGradientOpcode = 35
View Source
const CreateSolidFillOpcode = 33
View Source
const FillRectanglesOpcode = 26
View Source
const FreeGlyphSetOpcode = 19
View Source
const FreeGlyphsOpcode = 22
View Source
const FreePictureOpcode = 7
View Source
const GlyphErrorCode = 4
View Source
const GlyphSetErrorCode = 3
View Source
const MajorVersion = 0
_ns.ext_name: Render
View Source
const MinorVersion = 11
View Source
const PictFormatErrorCode = 0
View Source
const PictOpErrorCode = 2
View Source
const PictureErrorCode = 1
View Source
const (
PictureNone = 0
)
enum Picture
View Source
const QueryFiltersOpcode = 29
View Source
const QueryPictFormatsOpcode = 1
View Source
const QueryPictIndexValuesOpcode = 2
View Source
const QueryVersionOpcode = 0
View Source
const ReferenceGlyphSetOpcode = 18
View Source
const SetPictureClipRectanglesOpcode = 6
View Source
const SetPictureFilterOpcode = 30
View Source
const SetPictureTransformOpcode = 28
View Source
const TrapezoidsOpcode = 10
View Source
const TriFanOpcode = 13
View Source
const TriStripOpcode = 12
View Source
const TrianglesOpcode = 11
Variables ¶
This section is empty.
Functions ¶
func AddGlyphsChecked ¶
func AddTrapsChecked ¶
func ChangePicture ¶
func ChangePictureChecked ¶
func CompositeChecked ¶
func CompositeGlyphs16 ¶
func CompositeGlyphs16Checked ¶
func CompositeGlyphs16Checked(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, glyphSet GlyphSet, srcX, srcY int16, glyphCmds []byte) x.VoidCookie
func CompositeGlyphs32 ¶
func CompositeGlyphs32Checked ¶
func CompositeGlyphs32Checked(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, glyphSet GlyphSet, srcX, srcY int16, glyphCmds []byte) x.VoidCookie
func CompositeGlyphs8 ¶
func CompositeGlyphs8Checked ¶
func CompositeGlyphs8Checked(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, glyphSet GlyphSet, srcX, srcY int16, glyphCmds []byte) x.VoidCookie
func CreateAnimCursor ¶
func CreateAnimCursor(conn *x.Conn, cid x.Cursor, cursors []AnimCursorElt)
func CreateAnimCursorChecked ¶
func CreateAnimCursorChecked(conn *x.Conn, cid x.Cursor, cursors []AnimCursorElt) x.VoidCookie
func CreateConicalGradient ¶
func CreateConicalGradientChecked ¶
func CreateConicalGradientChecked(conn *x.Conn, picture Picture, center PointFixed, angle Fixed, stops []Fixed, colors []Color) x.VoidCookie
func CreateCursorChecked ¶
func CreateGlyphSet ¶
func CreateGlyphSet(conn *x.Conn, gsId GlyphSet, format PictFormat)
func CreateGlyphSetChecked ¶
func CreateGlyphSetChecked(conn *x.Conn, gsId GlyphSet, format PictFormat) x.VoidCookie
func CreateLinearGradient ¶
func CreateLinearGradientChecked ¶
func CreateLinearGradientChecked(conn *x.Conn, picture Picture, p1, p2 PointFixed, stops []Fixed, colors []Color) x.VoidCookie
func CreatePicture ¶
func CreatePictureChecked ¶
func CreatePictureChecked(conn *x.Conn, pid Picture, drawable x.Drawable, format PictFormat, valueMask uint32, valueList []uint32) x.VoidCookie
func CreateRadialGradient ¶
func CreateRadialGradientChecked ¶
func CreateRadialGradientChecked(conn *x.Conn, picture Picture, inner, outer PointFixed, innerRadius, outerRadius Fixed, stops []Fixed, colors []Color) x.VoidCookie
func CreateSolidFillChecked ¶
func FillRectangles ¶
func FillRectanglesChecked ¶
func FreeGlyphSet ¶
func FreeGlyphSetChecked ¶
func FreeGlyphSetChecked(conn *x.Conn, glyphSet GlyphSet) x.VoidCookie
func FreeGlyphsChecked ¶
func FreePicture ¶
func FreePictureChecked ¶
func FreePictureChecked(conn *x.Conn, picture Picture) x.VoidCookie
func ReferenceGlyphSet ¶
func ReferenceGlyphSetChecked ¶
func ReferenceGlyphSetChecked(conn *x.Conn, gsId, existing GlyphSet) x.VoidCookie
func SetPictureFilter ¶
func SetPictureFilterChecked ¶
func SetPictureTransform ¶
func Trapezoids ¶
func TrapezoidsChecked ¶
func TrapezoidsChecked(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, srcX, srcY int16, traps []Trapezoid) x.VoidCookie
func TriFan ¶
func TriFan(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, srcX, srcY int16, points []PointFixed)
func TriFanChecked ¶
func TriFanChecked(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, srcX, srcY int16, points []PointFixed) x.VoidCookie
func TriStrip ¶
func TriStrip(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, srcX, srcY int16, points []PointFixed)
func TriStripChecked ¶
func TriStripChecked(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, srcX, srcY int16, points []PointFixed) x.VoidCookie
func TrianglesChecked ¶
func TrianglesChecked(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, srcX, srcY int16, triangles []Triangle) x.VoidCookie
Types ¶
type DirectFormat ¶
type DirectFormat struct { RedShift uint16 RedMask uint16 GreenShift uint16 GreenMask uint16 BlueShift uint16 BlueMask uint16 AlphaShift uint16 AlphaMask uint16 }
size: 4 * 4b
type IndexValue ¶
size: 3 * 4b
type PictDepth ¶
type PictDepth struct { Depth uint8 Visuals []PictVisual }
type PictFormatInfo ¶
type PictFormatInfo struct { Id PictFormat Type uint8 Depth uint8 Direct DirectFormat Colormap x.Colormap }
size: 7 * 4b
type PictScreen ¶
type PictScreen struct { Fallback PictFormat Depths []PictDepth }
type QueryFiltersCookie ¶
func QueryFilters ¶
func QueryFilters(conn *x.Conn, drawable x.Drawable) QueryFiltersCookie
func (QueryFiltersCookie) Reply ¶
func (cookie QueryFiltersCookie) Reply(conn *x.Conn) (*QueryFiltersReply, error)
type QueryFiltersReply ¶
type QueryPictFormatsCookie ¶
func QueryPictFormats ¶
func QueryPictFormats(conn *x.Conn) QueryPictFormatsCookie
func (QueryPictFormatsCookie) Reply ¶
func (cookie QueryPictFormatsCookie) Reply(conn *x.Conn) (*QueryPictFormatsReply, error)
type QueryPictFormatsReply ¶
type QueryPictFormatsReply struct { Formats []PictFormatInfo Screens []PictScreen NumDepths uint32 NumVisuals uint32 SubPixels []uint32 }
type QueryPictIndexValuesCookie ¶
func QueryPictIndexValues ¶
func QueryPictIndexValues(conn *x.Conn, format PictFormat) QueryPictIndexValuesCookie
func (QueryPictIndexValuesCookie) Reply ¶
func (cookie QueryPictIndexValuesCookie) Reply(conn *x.Conn) (*QueryPictIndexValuesReply, error)
type QueryPictIndexValuesReply ¶
type QueryPictIndexValuesReply struct {
Values []IndexValue
}
type QueryVersionCookie ¶
func QueryVersion ¶
func QueryVersion(conn *x.Conn, majorVersion, minorVersion uint32) QueryVersionCookie
func (QueryVersionCookie) Reply ¶
func (cookie QueryVersionCookie) Reply(conn *x.Conn) (*QueryVersionReply, error)
type QueryVersionReply ¶
type QueryVersionReply struct {
MajorVersion, MinorVersion uint32
}
type Transform ¶
type Transform struct { Matrix11 Fixed Matrix12 Fixed Matrix13 Fixed Matrix21 Fixed Matrix22 Fixed Matrix23 Fixed Matrix31 Fixed Matrix32 Fixed Matrix33 Fixed }
size: 9 * 4b
Click to show internal directories.
Click to hide internal directories.