render

package
v0.0.0-...-7ad2634 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

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 AddGlyphs

func AddGlyphs(conn *x.Conn, glyphSet GlyphSet, glyphIds []uint32, glyphs []GlyphInfo, data []byte)

func AddGlyphsChecked

func AddGlyphsChecked(conn *x.Conn, glyphSet GlyphSet, glyphIds []uint32, glyphs []GlyphInfo, data []byte) x.VoidCookie

func AddTraps

func AddTraps(conn *x.Conn, picture Picture, xOff, yOff int16, traps []Trap)

func AddTrapsChecked

func AddTrapsChecked(conn *x.Conn, picture Picture, xOff, yOff int16, traps []Trap) x.VoidCookie

func ChangePicture

func ChangePicture(conn *x.Conn, picture Picture, valueMask uint32, valueList []uint32)

func ChangePictureChecked

func ChangePictureChecked(conn *x.Conn, picture Picture, valueMask uint32, valueList []uint32) x.VoidCookie

func Composite

func Composite(conn *x.Conn, op uint8, src, mask, dst Picture, srcX, srcY, maskX, maskY, dstX, dstY int16, width, height uint16)

func CompositeChecked

func CompositeChecked(conn *x.Conn, op uint8, src, mask, dst Picture, srcX, srcY, maskX, maskY, dstX, dstY int16, width, height uint16) x.VoidCookie

func CompositeGlyphs16

func CompositeGlyphs16(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, glyphSet GlyphSet, srcX, srcY int16, glyphCmds []byte)

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 CompositeGlyphs32(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, glyphSet GlyphSet, srcX, srcY int16, glyphCmds []byte)

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 CompositeGlyphs8(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, glyphSet GlyphSet, srcX, srcY int16, glyphCmds []byte)

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 CreateConicalGradient(conn *x.Conn, picture Picture, center PointFixed, angle Fixed, stops []Fixed, colors []Color)

func CreateConicalGradientChecked

func CreateConicalGradientChecked(conn *x.Conn, picture Picture, center PointFixed, angle Fixed, stops []Fixed, colors []Color) x.VoidCookie

func CreateCursor

func CreateCursor(conn *x.Conn, cid x.Cursor, source Picture, X, y uint16)

func CreateCursorChecked

func CreateCursorChecked(conn *x.Conn, cid x.Cursor, source Picture, X, y uint16) x.VoidCookie

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 CreateLinearGradient(conn *x.Conn, picture Picture, p1, p2 PointFixed, stops []Fixed, colors []Color)

func CreateLinearGradientChecked

func CreateLinearGradientChecked(conn *x.Conn, picture Picture, p1, p2 PointFixed, stops []Fixed, colors []Color) x.VoidCookie

func CreatePicture

func CreatePicture(conn *x.Conn, pid Picture, drawable x.Drawable, format PictFormat, valueMask uint32, valueList []uint32)

func CreatePictureChecked

func CreatePictureChecked(conn *x.Conn, pid Picture, drawable x.Drawable, format PictFormat, valueMask uint32, valueList []uint32) x.VoidCookie

func CreateRadialGradient

func CreateRadialGradient(conn *x.Conn, picture Picture, inner, outer PointFixed, innerRadius, outerRadius Fixed, stops []Fixed, colors []Color)

func CreateRadialGradientChecked

func CreateRadialGradientChecked(conn *x.Conn, picture Picture, inner, outer PointFixed, innerRadius, outerRadius Fixed, stops []Fixed, colors []Color) x.VoidCookie

func CreateSolidFill

func CreateSolidFill(conn *x.Conn, pid Picture, color Color)

func CreateSolidFillChecked

func CreateSolidFillChecked(conn *x.Conn, pid Picture, color Color) x.VoidCookie

func Ext

func Ext() *x.Extension

func FillRectangles

func FillRectangles(conn *x.Conn, op uint8, dst Picture, color Color, rects []x.Rectangle)

func FillRectanglesChecked

func FillRectanglesChecked(conn *x.Conn, op uint8, dst Picture, color Color, rects []x.Rectangle) x.VoidCookie

func FreeGlyphSet

func FreeGlyphSet(conn *x.Conn, glyphSet GlyphSet)

func FreeGlyphSetChecked

func FreeGlyphSetChecked(conn *x.Conn, glyphSet GlyphSet) x.VoidCookie

func FreeGlyphs

func FreeGlyphs(conn *x.Conn, glyphSet GlyphSet, glyphs []Glyph)

func FreeGlyphsChecked

func FreeGlyphsChecked(conn *x.Conn, glyphSet GlyphSet, glyphs []Glyph) x.VoidCookie

func FreePicture

func FreePicture(conn *x.Conn, picture Picture)

func FreePictureChecked

func FreePictureChecked(conn *x.Conn, picture Picture) x.VoidCookie

func ReferenceGlyphSet

func ReferenceGlyphSet(conn *x.Conn, gsId, existing GlyphSet)

func ReferenceGlyphSetChecked

func ReferenceGlyphSetChecked(conn *x.Conn, gsId, existing GlyphSet) x.VoidCookie

func SetPictureClipRectangles

func SetPictureClipRectangles(conn *x.Conn, picture Picture, clipXOrigin, clipYOrigin int16, rectangles []x.Rectangle)

func SetPictureClipRectanglesChecked

func SetPictureClipRectanglesChecked(conn *x.Conn, picture Picture, clipXOrigin, clipYOrigin int16, rectangles []x.Rectangle) x.VoidCookie

func SetPictureFilter

func SetPictureFilter(conn *x.Conn, picture Picture, filter string, values []Fixed)

func SetPictureFilterChecked

func SetPictureFilterChecked(conn *x.Conn, picture Picture, filter string, values []Fixed) x.VoidCookie

func SetPictureTransform

func SetPictureTransform(conn *x.Conn, picture Picture, transform *Transform)

func SetPictureTransformChecked

func SetPictureTransformChecked(conn *x.Conn, picture Picture, transform *Transform) x.VoidCookie

func Trapezoids

func Trapezoids(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, srcX, srcY int16, traps []Trapezoid)

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 Triangles

func Triangles(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, srcX, srcY int16, triangles []Triangle)

func TrianglesChecked

func TrianglesChecked(conn *x.Conn, op uint8, src, dst Picture, maskFormat PictFormat, srcX, srcY int16, triangles []Triangle) x.VoidCookie

Types

type AnimCursorElt

type AnimCursorElt struct {
	Cursor x.Cursor
	Delay  uint32
}

size: 2 * 4b

type Color

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

size: 2 * 4b

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 Fixed

type Fixed int32

simple ('xcb', 'Render', 'FIXED')

type Glyph

type Glyph uint32

simple ('xcb', 'Render', 'GLYPH')

type GlyphInfo

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

size: 3 * 4b

type GlyphSet

type GlyphSet uint32

simple ('xcb', 'Render', 'GLYPHSET')

type IndexValue

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

size: 3 * 4b

type LineFixed

type LineFixed struct {
	P1 PointFixed
	P2 PointFixed
}

size: 4 * 4b

type PictDepth

type PictDepth struct {
	Depth   uint8
	Visuals []PictVisual
}

type PictFormat

type PictFormat uint32

simple ('xcb', 'Render', 'PICTFORMAT')

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 PictVisual

type PictVisual struct {
	Visual x.VisualID
	Format PictFormat
}

size: 2 * 4b

type Picture

type Picture uint32

simple ('xcb', 'Render', 'PICTURE')

type PointFixed

type PointFixed struct {
	X Fixed
	Y Fixed
}

size: 2 * 4b

type QueryFiltersCookie

type QueryFiltersCookie x.SeqNum

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 QueryFiltersReply struct {
	Aliases []uint16
	Filters []string
}

type QueryPictFormatsCookie

type QueryPictFormatsCookie x.SeqNum

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

type QueryPictIndexValuesCookie x.SeqNum

func QueryPictIndexValues

func QueryPictIndexValues(conn *x.Conn, format PictFormat) QueryPictIndexValuesCookie

func (QueryPictIndexValuesCookie) Reply

type QueryPictIndexValuesReply

type QueryPictIndexValuesReply struct {
	Values []IndexValue
}

type QueryVersionCookie

type QueryVersionCookie x.SeqNum

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 SpanFixed

type SpanFixed struct {
	L, R, Y Fixed
}

size: 3 * 4b

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

type Trap

type Trap struct {
	Top SpanFixed
	Bot SpanFixed
}

size: 6 * 4b

type Trapezoid

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

size: 10 * 4b

type Triangle

type Triangle struct {
	P1 PointFixed
	P2 PointFixed
	P3 PointFixed
}

size: 6 * 4b

Jump to

Keyboard shortcuts

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