package vendor:x11/xrender
Index
Types (37)
- Glyph
- GlyphSet
- PictFormat
- PictOp
- PictStandardFormat
- PictType
- Picture
- SubPixelOrder
- XAnimCursor
- XCircle
- XConicalGradient
- XCreatePictFlag
- XCreatePictFlags
- XDouble
- XFilters
- XFixed
- XGlyphElt16
- XGlyphElt32
- XGlyphElt8
- XGlyphInfo
- XIndexValue
- XLineFixed
- XLinearGradient
- XPictFormatTemplateFlag
- XPictFormatTemplateFlags
- XPointDouble
- XPointFixed
- XRadialGradient
- XRenderColor
- XRenderDirectFormat
- XRenderPictFormat
- XRenderPictureAttributes
- XSpanFix
- XTransform
- XTrap
- XTrapezoid
- XTriangle
Constants (59)
- BadGlyph
- BadGlyphSet
- BadPictFormat
- BadPictOp
- BadPicture
- FilterAliasNone
- FilterBest
- FilterBilinear
- FilterConvolution
- FilterFast
- FilterGood
- FilterNearest
- PolyEdgeSharp
- PolyEdgeSmooth
- PolyModeImprecise
- PolyModePrecise
RENDER_… (3)
- RepeatNone
- RepeatNormal
- RepeatPad
- RepeatReflect
X_… (36)
- X_RenderAddGlyphs
- X_RenderAddGlyphsFromPicture
- X_RenderAddTraps
- X_RenderChangePicture
- X_RenderColorTrapezoids
- X_RenderColorTriangles
- X_RenderComposite
- X_RenderCompositeGlyphs16
- X_RenderCompositeGlyphs32
- X_RenderCompositeGlyphs8
- X_RenderCreateAnimCursor
- X_RenderCreateConicalGradient
- X_RenderCreateCursor
- X_RenderCreateGlyphSet
- X_RenderCreateLinearGradient
- X_RenderCreatePicture
- X_RenderCreateRadialGradient
- X_RenderCreateSolidFill
- X_RenderFillRectangles
- X_RenderFreeGlyphSet
- X_RenderFreeGlyphs
- X_RenderFreePicture
- X_RenderQueryDithers
- X_RenderQueryFilters
- X_RenderQueryPictFormats
- X_RenderQueryPictIndexValues
- X_RenderQueryVersion
- X_RenderReferenceGlyphSet
- X_RenderScale
- X_RenderSetPictureClipRectangles
- X_RenderSetPictureFilter
- X_RenderSetPictureTransform
- X_RenderTrapezoids
- X_RenderTriFan
- X_RenderTriStrip
- X_RenderTriangles
Variables (0)
This section is empty.
Procedures (46)
- RenderAddGlyphs
- RenderAddTraps
- RenderChangePicture
- RenderComposite
- RenderCompositeDoublePoly
- RenderCompositeString16
- RenderCompositeString32
- RenderCompositeString8
- RenderCompositeText16
- RenderCompositeText32
- RenderCompositeText8
- RenderCompositeTrapezoids
- RenderCompositeTriFan
- RenderCompositeTriStrip
- RenderCompositeTriangles
- RenderCreateAnimCursor
- RenderCreateConicalGradient
- RenderCreateCursor
- RenderCreateGlyphSet
- RenderCreateLinearGradient
- RenderCreatePicture
- RenderCreateRadialGradient
- RenderCreateSolidFill
- RenderFillRectangle
- RenderFillRectangles
- RenderFindFormat
- RenderFindStandardFormat
- RenderFindVisualFormat
- RenderFreeGlyphSet
- RenderFreeGlyphs
- RenderFreePicture
- RenderParseColor
- RenderQueryExtension
- RenderQueryFilters
- RenderQueryFormats
- RenderQueryPictIndexValues
- RenderQuerySubpixelOrder
- RenderQueryVersion
- RenderReferenceGlyphSet
- RenderSetPictureClipRectangles
- RenderSetPictureClipRegion
- RenderSetPictureFilter
- RenderSetPictureTransform
- RenderSetSubpixelOrder
- XDoubleToFixed
- XFixedToDouble
Procedure Groups (0)
This section is empty.
Types
Glyph ¶
Glyph :: xlib.XID
Related Procedures With Parameters
- RenderAddGlyphs
- RenderAddTraps
- RenderChangePicture
- RenderComposite
- RenderCompositeDoublePoly
- RenderCompositeString16
- RenderCompositeString32
- RenderCompositeString8
- RenderCompositeText16
- RenderCompositeText32
- RenderCompositeText8
- RenderCompositeTrapezoids
- RenderCompositeTriFan
- RenderCompositeTriStrip
- RenderCompositeTriangles
- RenderCreateCursor
- RenderCreatePicture
- RenderFillRectangle
- RenderFillRectangles
- RenderFreeGlyphSet
- RenderFreeGlyphs
- RenderFreePicture
- RenderQueryFilters
- RenderReferenceGlyphSet
- RenderSetPictureClipRectangles
- RenderSetPictureClipRegion
- RenderSetPictureFilter
- RenderSetPictureTransform
Related Procedures With Returns
GlyphSet ¶
GlyphSet :: xlib.XID
Related Procedures With Parameters
- RenderAddGlyphs
- RenderAddTraps
- RenderChangePicture
- RenderComposite
- RenderCompositeDoublePoly
- RenderCompositeString16
- RenderCompositeString32
- RenderCompositeString8
- RenderCompositeText16
- RenderCompositeText32
- RenderCompositeText8
- RenderCompositeTrapezoids
- RenderCompositeTriFan
- RenderCompositeTriStrip
- RenderCompositeTriangles
- RenderCreateCursor
- RenderCreatePicture
- RenderFillRectangle
- RenderFillRectangles
- RenderFreeGlyphSet
- RenderFreeGlyphs
- RenderFreePicture
- RenderQueryFilters
- RenderReferenceGlyphSet
- RenderSetPictureClipRectangles
- RenderSetPictureClipRegion
- RenderSetPictureFilter
- RenderSetPictureTransform
Related Procedures With Returns
PictFormat ¶
PictFormat :: xlib.XID
Related Procedures With Parameters
- RenderAddGlyphs
- RenderAddTraps
- RenderChangePicture
- RenderComposite
- RenderCompositeDoublePoly
- RenderCompositeString16
- RenderCompositeString32
- RenderCompositeString8
- RenderCompositeText16
- RenderCompositeText32
- RenderCompositeText8
- RenderCompositeTrapezoids
- RenderCompositeTriFan
- RenderCompositeTriStrip
- RenderCompositeTriangles
- RenderCreateCursor
- RenderCreatePicture
- RenderFillRectangle
- RenderFillRectangles
- RenderFreeGlyphSet
- RenderFreeGlyphs
- RenderFreePicture
- RenderQueryFilters
- RenderReferenceGlyphSet
- RenderSetPictureClipRectangles
- RenderSetPictureClipRegion
- RenderSetPictureFilter
- RenderSetPictureTransform
Related Procedures With Returns
PictOp ¶
PictOp :: enum i32 { Clear = 0, Src = 1, Dst = 2, Over = 3, OverReverse = 4, In = 5, InReverse = 6, Out = 7, OutReverse = 8, Atop = 9, AtopReverse = 10, Xor = 11, Add = 12, Saturate = 13, DisjointClear = 0x10, DisjointSrc = 0x11, DisjointDst = 0x12, DisjointOver = 0x13, DisjointOverReverse = 0x14, DisjointIn = 0x15, DisjointInReverse = 0x16, DisjointOut = 0x17, DisjointOutReverse = 0x18, DisjointAtop = 0x19, DisjointAtopReverse = 0x1a, DisjointXor = 0x1b, ConjointClear = 0x20, ConjointSrc = 0x21, ConjointDst = 0x22, ConjointOver = 0x23, ConjointOverReverse = 0x24, ConjointIn = 0x25, ConjointInReverse = 0x26, ConjointOut = 0x27, ConjointOutReverse = 0x28, ConjointAtop = 0x29, ConjointAtopReverse = 0x2a, ConjointXor = 0x2b, Multiply = 0x30, Screen = 0x31, Overlay = 0x32, Darken = 0x33, Lighten = 0x34, ColorDodge = 0x35, ColorBurn = 0x36, HardLight = 0x37, SoftLight = 0x38, Difference = 0x39, Exclusion = 0x3a, HSLHue = 0x3b, HSLSaturation = 0x3c, HSLColor = 0x3d, HSLLuminosity = 0x3e, }
Related Procedures With Parameters
- RenderComposite
- RenderCompositeDoublePoly
- RenderCompositeString16
- RenderCompositeString32
- RenderCompositeString8
- RenderCompositeText16
- RenderCompositeText32
- RenderCompositeText8
- RenderCompositeTrapezoids
- RenderCompositeTriFan
- RenderCompositeTriStrip
- RenderCompositeTriangles
- RenderFillRectangle
- RenderFillRectangles
PictStandardFormat ¶
PictStandardFormat :: enum i32 { // 8-bit RGB with Alpha. ARGB32 = 0, // 8-bit RGB. RGB24 = 1, // 8-bit Alpha map. A8 = 2, // 4-bit Alpha map. A4 = 3, // 1-bit Alpha map. A1 = 4, }
Standard format specifiers.
PictType ¶
PictType :: enum i32 { Indexed = 0, Direct = 1, }
Picture ¶
Picture :: xlib.XID
Related Procedures With Parameters
- RenderAddGlyphs
- RenderAddTraps
- RenderChangePicture
- RenderComposite
- RenderCompositeDoublePoly
- RenderCompositeString16
- RenderCompositeString32
- RenderCompositeString8
- RenderCompositeText16
- RenderCompositeText32
- RenderCompositeText8
- RenderCompositeTrapezoids
- RenderCompositeTriFan
- RenderCompositeTriStrip
- RenderCompositeTriangles
- RenderCreateCursor
- RenderCreatePicture
- RenderFillRectangle
- RenderFillRectangles
- RenderFreeGlyphSet
- RenderFreeGlyphs
- RenderFreePicture
- RenderQueryFilters
- RenderReferenceGlyphSet
- RenderSetPictureClipRectangles
- RenderSetPictureClipRegion
- RenderSetPictureFilter
- RenderSetPictureTransform
Related Procedures With Returns
SubPixelOrder ¶
SubPixelOrder :: enum i32 { Unknown = 0, HorizontalRGB = 1, HorizontalBGR = 2, VerticalRGB = 3, VerticalBGR = 4, None = 5, }
Subpixel orders included in 0.6
XAnimCursor ¶
A single cursor frame.
XCircle ¶
Circle described by it's center point and a radius.
XConicalGradient ¶
XConicalGradient :: struct { center: XPointFixed, // in degrees angle: i32, }
Conical gradient shape.
XCreatePictFlag ¶
XCreatePictFlag :: enum u64 { CPRepeat = 0, CPAlphaMap = 1, CPAlphaXOrigin = 2, CPAlphaYOrigin = 3, CPClipXOrigin = 4, CPClipYOrigin = 5, CPClipMask = 6, CPGraphicsExposure = 7, CPSubwindowMode = 8, CPPolyEdge = 9, CPPolyMode = 10, CPDither = 11, CPComponentAlpha = 12, }
XCreatePictFlags ¶
XCreatePictFlags :: distinct bit_set[XCreatePictFlag; u64]
Related Procedures With Parameters
XFilters ¶
XFilters :: struct { // Filter names count. nfilter: i32, // Filter names array. filter: [^]cstring, // Aliases array count. nalias: i32, // Array of indices into `filter` of each alias's filter, or 0xffff. alias: [^]i16, }
Group filters and filter aliases.
XFixed ¶
XFixed :: i32
Fixed-point number.
Related Procedures With Parameters
- RenderAddGlyphs
- RenderAddTraps
- RenderComposite
- RenderCompositeDoublePoly
- RenderCompositeString16
- RenderCompositeString32
- RenderCompositeString8
- RenderCompositeText16
- RenderCompositeText32
- RenderCompositeText8
- RenderCompositeTrapezoids
- RenderCompositeTriFan
- RenderCompositeTriStrip
- RenderCompositeTriangles
- RenderCreateAnimCursor
- RenderCreateConicalGradient
- RenderCreateLinearGradient
- RenderCreateRadialGradient
- RenderFillRectangle
- RenderFillRectangles
- RenderFindFormat
- RenderFreeGlyphs
- RenderQueryExtension
- RenderQueryPictIndexValues
- RenderQuerySubpixelOrder
- RenderQueryVersion
- RenderSetPictureClipRectangles
- RenderSetPictureFilter
- RenderSetSubpixelOrder
- XFixedToDouble
XGlyphElt16 ¶
XGlyphElt16 :: struct { // Set of available glyphs. glyphset: xlib.XID, // 16-bit glyph id array. chars: [^]u16, // Glyph array size. nchars: i32, // Horizontal offset. x_off: i32, // Vertical offset. y_off: i32, }
16-bit Glyph Element.
XGlyphElt32 ¶
XGlyphElt32 :: struct { // Set of available glyphs. glyphset: xlib.XID, // 32-bit glyph id array. chars: [^]u32, // Glyph array size. nchars: i32, // Horizontal offset. x_off: i32, // Vertical offset. y_off: i32, }
32-bit Glyph Element.
XGlyphElt8 ¶
XGlyphElt8 :: struct { // Set of available glyphs. glyphset: xlib.XID, // 8-bit glyph id array. chars: [^]u8, // Glyph array size. nchars: i32, // Horizontal offset. x_off: i32, // Vertical offset. y_off: i32, }
8-bit Glyph Element.
XGlyphInfo ¶
XGlyphInfo :: struct { // Glyph width. width: u16, // Glyph height. height: u16, // Horizontal Glyph center offset relative to the upper-left corner. x: i16, // Vertical Glyph center offset relative to the upper-left corner. y: i16, // Horizontal margin to the next Glyph. x_off: i16, // Vertical margin to the next Glyph. y_off: i16, }
Glyph positioning and sizing information. A glyph is positioned by taking the requested position and substracting the center offset.
XIndexValue ¶
XIndexValue :: struct { // Index ID. pixel: u64, // Color components. red: u16, green: u16, blue: u16, alpha: u16, }
The value of an indexed color.
XLineFixed ¶
XLineFixed :: struct { p1: XPointFixed, p2: XPointFixed, }
Line described by two points.
XLinearGradient ¶
XLinearGradient :: struct { p1: XPointFixed, p2: XPointFixed, }
Linear gradient shape.
XPictFormatTemplateFlag ¶
XPictFormatTemplateFlag :: enum u64 { // Include ID field. PictFormatID = 0, // Include Type field. PictFormatType = 1, // Include Depth field. PictFormatDepth = 2, // Include Direct->Red field. PictFormatRed = 3, // Include Direct->RedMask field. PictFormatRedMask = 4, // Include Direct->Green field. PictFormatGreen = 5, // Include Direct->GreenMask field. PictFormatGreenMask = 6, // Include Direct->Blue field. PictFormatBlue = 7, // Include Direct->BlueMask field. PictFormatBlueMask = 8, // Include Direct->Alpha field. PictFormatAlpha = 9, // Include Direct->AlphaMask field. PictFormatAlphaMask = 10, // Include Colormap field. PictFormatColormap = 11, }
XPictFormatTemplateFlags ¶
XPictFormatTemplateFlags :: distinct bit_set[XPictFormatTemplateFlag; u64]
XRenderPictFormat template field masks.
XPointDouble ¶
Point coordinates stored as floats.
XRadialGradient ¶
Radial gradient shape.
XRenderColor ¶
XRenderColor :: struct { // Red color channel. red: u16, // Green color channel. green: u16, // Blue color channel. blue: u16, // Alpha color channel. alpha: u16, }
An alpha-blended color with premultiplied components. Values are in the range from 0 to 65535 inclusive, scaled down to the right hardware values by the server. Colors must be premultiplied by alpha by the client in all cases but gradient operations.
Related Procedures With Parameters
XRenderDirectFormat ¶
XRenderDirectFormat :: struct { // Red component binary displacement. red: i16, // Red component bit mask. red_mask: i16, // Green component binary displacement. green: i16, // Green component bit mask. green_mask: i16, // Blue component binary displacement. blue: i16, // Blue component bit mask. blue_mask: i16, // Alpha component binary displacement. alpha: i16, // Alpha component bit mask. alpha_mask: i16, }
The direct component of a PictFormat.
It contains a binary description of the color format used by the Picture.
- A Zero bit alphaMask is declared to have an opaque alpha everywhere.
- A Zero bit redMask, greenMask and blueMask is declared to have red, green, blue == 0 everywhere.
If any of redMask, greenMask or blueMask are zero, all other masks are zero.
XRenderPictFormat ¶
XRenderPictFormat :: struct { // XID of this structure server instance. id: xlib.XID, // Color management type. type: PictType, // Pixel bit depth. depth: i32, // Color component description. direct: XRenderDirectFormat, // XID of the map of indexed colors on the server. colormap: xlib.XID, }
A Picture pixel format description. It describes the format used by the server to display colors.
There are two types:
- Direct: Doesn't have a Colormap and the DirectFormat structure describes the pixel format.
- Indexed: Has a Colormap and it's DirectFormat structure is filled with zeros.
Related Procedures With Parameters
- RenderCompositeDoublePoly
- RenderCompositeString16
- RenderCompositeString32
- RenderCompositeString8
- RenderCompositeText16
- RenderCompositeText32
- RenderCompositeText8
- RenderCompositeTrapezoids
- RenderCompositeTriFan
- RenderCompositeTriStrip
- RenderCompositeTriangles
- RenderCreateGlyphSet
- RenderCreatePicture
- RenderFindFormat
- RenderQueryPictIndexValues
Related Procedures With Returns
XRenderPictureAttributes ¶
XRenderPictureAttributes :: struct { // How to repeat the picture. repeat: i32, // A replacement alpha-map. Must be a pixmap-containing Picture. alpha_map: xlib.XID, // Horizontal displacement of the replacement alpha-map. alpha_x_origin: i32, // Vertical displacement of the replacement alpha-map. alpha_y_origin: i32, // Horizontal displacement of the clip mask. clip_x_origin: i32, // Vertical displacement of the clip mask. clip_y_origin: i32, // A r/w restriction to the drawable. clip_mask: xlib.XID, // Whether to receive GraphicsExpose events. // Marked as an ignored field. graphics_exposures: b32, // How to clip pixels on subwindow overlap. subwindow_mode: i32, // Alpha mask generation mode. poly_edge: i32, // Alpha value rasterization mode. poly_mode: i32, // Dithering mode. // Marked as an ignored field. dither: xlib.Atom, // Treat alpha channels independently. component_alpha: b32, }
Picture rendering attributes.
Related Procedures With Parameters
XSpanFix ¶
An horizontal line.
XTrap ¶
A trapezoid defined by two lines.
XTrapezoid ¶
XTrapezoid :: struct { top: i32, bottom: i32, left: XLineFixed, right: XLineFixed, }
A trapezoid. Deprecated: Use XTrap instead.
XTriangle ¶
XTriangle :: struct { p1: XPointFixed, p2: XPointFixed, p3: XPointFixed, }
Triangle described by it's vertices.
Constants
BadGlyph ¶
BadGlyph :: 4
BadGlyphSet ¶
BadGlyphSet :: 3
BadPictFormat ¶
BadPictFormat :: 0
BadPictOp ¶
BadPictOp :: 2
BadPicture ¶
BadPicture :: 1
FilterAliasNone ¶
FilterAliasNone :: -1
FilterBest ¶
FilterBest :: "best"
FilterBilinear ¶
FilterBilinear :: "bilinear"
FilterFast ¶
FilterFast :: "fast"
FilterGood ¶
FilterGood :: "good"
PolyEdgeSharp ¶
PolyEdgeSharp :: 0
PolyEdgeSmooth ¶
PolyEdgeSmooth :: 1
PolyModeImprecise ¶
PolyModeImprecise :: 1
PolyModePrecise ¶
PolyModePrecise :: 0
RENDER_MAJOR ¶
RENDER_MAJOR :: 0
RENDER_MINOR ¶
RENDER_MINOR :: 11
RENDER_NAME ¶
RENDER_NAME :: "RENDER"
RepeatNormal ¶
RepeatNormal :: 1
RepeatPad ¶
RepeatPad :: 2
RepeatReflect ¶
RepeatReflect :: 3
X_RenderAddGlyphs ¶
X_RenderAddGlyphs :: 20
X_RenderAddGlyphsFromPicture ¶
X_RenderAddGlyphsFromPicture :: 21
X_RenderChangePicture ¶
X_RenderChangePicture :: 5
X_RenderColorTrapezoids ¶
X_RenderColorTrapezoids :: 14
X_RenderColorTriangles ¶
X_RenderColorTriangles :: 15
X_RenderComposite ¶
X_RenderComposite :: 8
X_RenderCompositeGlyphs16 ¶
X_RenderCompositeGlyphs16 :: 24
X_RenderCompositeGlyphs32 ¶
X_RenderCompositeGlyphs32 :: 25
X_RenderCompositeGlyphs8 ¶
X_RenderCompositeGlyphs8 :: 23
X_RenderCreateConicalGradient ¶
X_RenderCreateConicalGradient :: 36
X_RenderCreateLinearGradient ¶
X_RenderCreateLinearGradient :: 34
X_RenderCreatePicture ¶
X_RenderCreatePicture :: 4
X_RenderCreateRadialGradient ¶
X_RenderCreateRadialGradient :: 35
X_RenderFillRectangles ¶
X_RenderFillRectangles :: 26
X_RenderFreeGlyphSet ¶
X_RenderFreeGlyphSet :: 19
X_RenderFreeGlyphs ¶
X_RenderFreeGlyphs :: 22
X_RenderFreePicture ¶
X_RenderFreePicture :: 7
X_RenderQueryDithers ¶
X_RenderQueryDithers :: 3
X_RenderQueryFilters ¶
X_RenderQueryFilters :: 29
X_RenderQueryPictFormats ¶
X_RenderQueryPictFormats :: 1
X_RenderQueryVersion ¶
X_RenderQueryVersion :: 0
X_RenderReferenceGlyphSet ¶
X_RenderReferenceGlyphSet :: 18
X_RenderScale ¶
X_RenderScale :: 9
X_RenderSetPictureClipRectangles ¶
X_RenderSetPictureClipRectangles :: 6
X_RenderSetPictureFilter ¶
X_RenderSetPictureFilter :: 30
X_RenderTrapezoids ¶
X_RenderTrapezoids :: 10
X_RenderTriFan ¶
X_RenderTriFan :: 13
X_RenderTriStrip ¶
X_RenderTriStrip :: 12
X_RenderTriangles ¶
X_RenderTriangles :: 11
Variables
This section is empty.
Procedures
RenderAddGlyphs ¶C · XRenderAddGlyphsSource · Xrender.odin:623
RenderAddGlyphs :: proc "c" ( dpy: ^xlib.Display, glyphset: xlib.XID, gids: [^]xlib.XID, glyphs: [^]XGlyphInfo, nglyphs: i32, images: [^]u8, nbyte_images: i32, ) ---
Add new Glyphs to a GlyphSet.
Inputs
- dpy: Connection to the X server
- glyphset: Glyph storage destination
- gids: Array of ids for the new Glyphs
- glyphs: Array of new Glyphs info
- nglyphs: Number of Glyphs to add
- images: Byte array containing the Glyphs graphics
- nbyte_images: Size of the
imagesbyte array
RenderAddTraps ¶C · XRenderAddTrapsSource · Xrender.odin:1062
RenderAddTraps :: proc "c" ( dpy: ^xlib.Display, picture: xlib.XID, xOff: i32, yOff: i32, traps: [^]XTrap, ntrap: i32, ) ---
Add the given Trapezoids to a single-channel Picture.
Inputs
- dpy: Connection to the X server
- picture: An alpha-only Picture
- xOff: Horizontal offset
- yOff: Vertical offset
- traps: Array of trapezoids
- ntrap:
trapsarray size
RenderChangePicture ¶C · XRenderChangePictureSource · Xrender.odin:507
RenderChangePicture :: proc "c" ( dpy: ^xlib.Display, picture: xlib.XID, valuemask: XCreatePictFlags, attributes: ^XRenderPictureAttributes, ) ---
Change a Picture's attributes structure.
Inputs
- dpy: Connection to the X server
- picture: Target Picture
- valuemask:
attributesfields mask to use - attributes: Desired attributes for the Picture
RenderComposite ¶C · XRenderCompositeSource · Xrender.odin:560
RenderComposite :: proc "c" ( dpy: ^xlib.Display, op: PictOp, src: xlib.XID, mask: xlib.XID, dst: xlib.XID, src_x: i32, src_y: i32, mask_x: i32, mask_y: i32, dst_x: i32, dst_y: i32, width: u32, height: u32, ) ---
Combines two Pictures with the specified compositing operation.
Inputs
- dpy: Connection to the X server
- op: Compositing operation to perform
- src: Picture to combine with
- mask: Composition mask
- dst: Picture to combine into
- src_x: Horizontal
srcorigin offset - src_y: Vertical
srcorigin offset - mask_x: Horizontal
maskorigin offset - mask_y: Vertical
maskorigin offset - dst_x: Horizontal
dstorigin offset - dst_y: Vertical
dstorigin offset - width: Maximum composition width
- height: Maximum composition height
RenderCompositeDoublePoly ¶C · XRenderCompositeDoublePolySource · Xrender.odin:971
RenderCompositeDoublePoly :: proc "c" ( dpy: ^xlib.Display, op: PictOp, src: xlib.XID, dst: xlib.XID, maskFormat: ^XRenderPictFormat, xSrc: i32, ySrc: i32, xDst: i32, yDst: i32, fpoints: [^]XPointDouble, npoints: i32, winding: i32, ) ---
Combine two Pictures using a Polygon as the mask.
Inputs
- dpy: Connection to the X server
- op: Compositing operation to perform
- src: Picture to combine with
- dst: Picture to combine into
- maskFormat: Picture format of the generated Picture mask
- xSrc: Horizontal
srcorigin offset - ySrc: Vertical
srcorigin offset - xDst: Horizontal
dstorigin offset - yDst: Vertical
dstorigin offset - fpoints: Array of DoublePoints to create a Polygon with
- npoints:
pointsarray size - winding: Unused
RenderCompositeString16 ¶C · XRenderCompositeString16Source · Xrender.odin:685
RenderCompositeString16 :: proc "c" ( dpy: ^xlib.Display, op: PictOp, src: xlib.XID, dst: xlib.XID, maskFormat: ^XRenderPictFormat, glyphset: xlib.XID, xSrc: i32, ySrc: i32, xDst: i32, yDst: i32, string: [^]u16, nchar: i32, ) ---
Draw a 16-bit character string into a Picture.
Inputs
- dpy: Connection to the X server
- op: Compositing operation to perform
- src: Picture to combine with
- dst: Picture to combine into
- maskFormat: Picture format of the generated Picture mask
- glyphset: Glyph Source
- xSrc: Horizontal
srcorigin offset - ySrc: Vertical
srcorigin offset - xDst: Horizontal
dstorigin offset - yDst: Vertical
dstorigin offset - string: String to clip to
- nchar: String length
RenderCompositeString32 ¶C · XRenderCompositeString32Source · Xrender.odin:717
RenderCompositeString32 :: proc "c" ( dpy: ^xlib.Display, op: PictOp, src: xlib.XID, dst: xlib.XID, maskFormat: ^XRenderPictFormat, glyphset: xlib.XID, xSrc: i32, ySrc: i32, xDst: i32, yDst: i32, string: [^]u32, nchar: i32, ) ---
Draw a 32-bit character string into a Picture.
Inputs
- dpy: Connection to the X server
- op: Compositing operation to perform
- src: Picture to combine with
- dst: Picture to combine into
- maskFormat: Picture format of the generated Picture mask
- glyphset: Glyph Source
- xSrc: Horizontal
srcorigin offset - ySrc: Vertical
srcorigin offset - xDst: Horizontal
dstorigin offset - yDst: Vertical
dstorigin offset - string: String to clip to
- nchar: String length
RenderCompositeString8 ¶C · XRenderCompositeString8Source · Xrender.odin:653
RenderCompositeString8 :: proc "c" ( dpy: ^xlib.Display, op: PictOp, src: xlib.XID, dst: xlib.XID, maskFormat: ^XRenderPictFormat, glyphset: xlib.XID, xSrc: i32, ySrc: i32, xDst: i32, yDst: i32, string: [^]u8, nchar: i32, ) ---
Draw a 8-bit character string into a Picture.
Inputs
- dpy: Connection to the X server
- op: Compositing operation to perform
- src: Picture to combine with
- dst: Picture to combine into
- maskFormat: Picture format of the generated Picture mask
- glyphset: Glyph Source
- xSrc: Horizontal
srcorigin offset - ySrc: Vertical
srcorigin offset - xDst: Horizontal
dstorigin offset - yDst: Vertical
dstorigin offset - string: String to clip to
- nchar: String length
RenderCompositeText16 ¶C · XRenderCompositeText16Source · Xrender.odin:778
RenderCompositeText16 :: proc "c" ( dpy: ^xlib.Display, op: PictOp, src: xlib.XID, dst: xlib.XID, maskFormat: ^XRenderPictFormat, xSrc: i32, ySrc: i32, xDst: i32, yDst: i32, elts: [^]XGlyphElt16, nelt: i32, ) ---
Draw several 16-bit Glyph Elements into a Picture.
Inputs
- dpy: Connection to the X server
- op: Compositing operation to perform
- src: Picture to combine with
- dst: Picture to combine into
- maskFormat: Picture format of the generated Picture mask
- xSrc: Horizontal
srcorigin offset - ySrc: Vertical
srcorigin offset - xDst: Horizontal
dstorigin offset - yDst: Vertical
dstorigin offset - elts: Glyph Elements array to clip with
- nelt: Glyph Elements array size
RenderCompositeText32 ¶C · XRenderCompositeText32Source · Xrender.odin:808
RenderCompositeText32 :: proc "c" ( dpy: ^xlib.Display, op: PictOp, src: xlib.XID, dst: xlib.XID, maskFormat: ^XRenderPictFormat, xSrc: i32, ySrc: i32, xDst: i32, yDst: i32, elts: [^]XGlyphElt32, nelt: i32, ) ---
Draw several 32-bit Glyph Elements into a Picture.
Input
- dpy: Connection to the X server
- op: Compositing operation to perform
- src: Picture to combine with
- dst: Picture to combine into
- maskFormat: Picture format of the generated Picture mask
- xSrc: Horizontal
srcorigin offset - ySrc: Vertical
srcorigin offset - xDst: Horizontal
dstorigin offset - yDst: Vertical
dstorigin offset - elts: Glyph Elements to clip with
- nelt: Glyph Elements array size
RenderCompositeText8 ¶C · XRenderCompositeText8Source · Xrender.odin:748
RenderCompositeText8 :: proc "c" ( dpy: ^xlib.Display, op: PictOp, src: xlib.XID, dst: xlib.XID, maskFormat: ^XRenderPictFormat, xSrc: i32, ySrc: i32, xDst: i32, yDst: i32, elts: [^]XGlyphElt8, nelt: i32, ) ---
Draw several 8-bit Glyph Elements into a Picture.
Inputs
- dpy: Connection to the X server
- op: Compositing operation to perform
- src: Picture to combine with
- dst: Picture to combine into
- maskFormat: Picture format of the generated Picture mask
- xSrc: Horizontal
srcorigin offset - ySrc: Vertical
srcorigin offset - xDst: Horizontal
dstorigin offset - yDst: Vertical
dstorigin offset - elts: Glyph Elements array to clip with
- nelt: Glyph Elements array size
RenderCompositeTrapezoids ¶C · XRenderCompositeTrapezoidsSource · Xrender.odin:864
RenderCompositeTrapezoids :: proc "c" ( dpy: ^xlib.Display, op: PictOp, src: xlib.XID, dst: xlib.XID, maskFormat: ^XRenderPictFormat, xSrc: i32, ySrc: i32, traps: [^]XTrapezoid, ntrap: i32, ) ---
Combine two Pictures using a bunch of Trapezoids as the mask.
Input
- dpy: Connection to the X server
- op: Compositing operation to perform
- src: Picture to combine with
- dst: Picture to combine into
- maskFormat: Picture format of the generated Picture mask
- xSrc: Horizontal
srcorigin offset - ySrc: Vertical
srcorigin offset - traps: Array of Trapezoids to clip with
- ntrap:
trapsArray size
RenderCompositeTriFan ¶C · XRenderCompositeTriFanSource · Xrender.odin:942
RenderCompositeTriFan :: proc "c" ( dpy: ^xlib.Display, op: PictOp, src: xlib.XID, dst: xlib.XID, maskFormat: ^XRenderPictFormat, xSrc: i32, ySrc: i32, points: [^]XPointFixed, npoint: i32, ) ---
Combine two Pictures using a Triangle Fan as the mask.
Inputs
- dpy: Connection to the X server
- op: Compositing operation to perform
- src: Picture to combine with
- dst: Picture to combine into
- maskFormat: Picture format of the generated Picture mask
- xSrc: Horizontal
srcorigin offset - ySrc: Vertical
srcorigin offset - points: Array of Points to create Triangles with
- npoint:
pointsarray size
RenderCompositeTriStrip ¶C · XRenderCompositeTriStripSource · Xrender.odin:916
RenderCompositeTriStrip :: proc "c" ( dpy: ^xlib.Display, op: PictOp, src: xlib.XID, dst: xlib.XID, maskFormat: ^XRenderPictFormat, xSrc: i32, ySrc: i32, points: [^]XPointFixed, npoint: i32, ) ---
Combine two Pictures using a Triangle Strip as the mask.
Inputs
- dpy: Connection to the X server
- op: Compositing operation to perform
- src: Picture to combine with
- dst: Picture to combine into
- maskFormat: Picture format of the generated Picture mask
- xSrc: Horizontal
srcorigin offset - ySrc: Vertical
srcorigin offset - points: Array of Points to create Triangles with
- npoint:
pointsarray size
RenderCompositeTriangles ¶C · XRenderCompositeTrianglesSource · Xrender.odin:890
RenderCompositeTriangles :: proc "c" ( dpy: ^xlib.Display, op: PictOp, src: xlib.XID, dst: xlib.XID, maskFormat: ^XRenderPictFormat, xSrc: i32, ySrc: i32, triangles: [^]XTriangle, ntriangle: i32, ) ---
Combine two Pictures using a bunch of Triangles as the mask.
Inputs
- dpy: Connection to the X server
- op: Compositing operation to perform
- src: Picture to combine with
- dst: Picture to combine into
- maskFormat: Picture format of the generated Picture mask
- xSrc: Horizontal
srcorigin offset - ySrc: Vertical
srcorigin offset - triangles: Array of Triangles to clip with
- ntriangle:
trianglesarray size
RenderCreateAnimCursor ¶C · XRenderCreateAnimCursorSource · Xrender.odin:1049
RenderCreateAnimCursor :: proc "c" ( dpy: ^xlib.Display, ncursor: i32, cursors: [^]XAnimCursor, ) -> xlib.XID ---
Create an animated Cursor from the given Cursor frames.
Inputs
- dpy: Connection to the X server
- ncursor: Cursor frames count
- cursors: Cursor frames array
Outputs
- An animated Cursor.
RenderCreateConicalGradient ¶C · XRenderCreateConicalGradientSource · Xrender.odin:1119
RenderCreateConicalGradient :: proc "c" ( dpy: ^xlib.Display, gradient: ^XConicalGradient, stops: [^]i32, colors: [^]XRenderColor, nstops: i32, ) -> xlib.XID ---
Create a Picture filled with a Conical Gradient.
Inputs
- dpy: Connection to the X server
- gradient: Gradient geometry
- stops: Stop sections
- colors: Stop colors
- nstops: Stops count
Outputs
- A Picture filled with a Conical Gradient.
RenderCreateCursor ¶C · XRenderCreateCursorSource · Xrender.odin:1011
RenderCreateCursor :: proc "c" ( dpy: ^xlib.Display, source: xlib.XID, x: u32, y: u32, ) -> xlib.XID ---
Creates a cursor looking like a Picture.
Inputs
- dpy: Connection to the X server
- source: Picture defining the cursor look
- x: Horizontal offset
- y: Vertical offset
Outputs
- A Cursor.
RenderCreateGlyphSet ¶C · XRenderCreateGlyphSetSource · Xrender.odin:586
RenderCreateGlyphSet :: proc "c" (dpy: ^xlib.Display, format: ^XRenderPictFormat) -> xlib.XID ---
Create a Glyph Set.
Inputs
- dpy: Connection to the X server
- format: Desired format for the Glyphs Picture
Outputs
- A GlyphSet.
RenderCreateLinearGradient ¶C · XRenderCreateLinearGradientSource · Xrender.odin:1089
RenderCreateLinearGradient :: proc "c" ( dpy: ^xlib.Display, gradient: ^XLinearGradient, stops: [^]i32, colors: [^]XRenderColor, nstops: i32, ) -> xlib.XID ---
Create a Picture filled with a Linear Gradient.
Inputs
- dpy: Connection to the X server
- gradient: Gradient geometry
- stops: Stop sections
- colors: Stop colors
- nstops: Stops count
Outputs
- A Picture filled with a Linear Gradient.
RenderCreatePicture ¶C · XRenderCreatePictureSource · Xrender.odin:480
RenderCreatePicture :: proc "c" ( dpy: ^xlib.Display, drawable: xlib.XID, format: ^XRenderPictFormat, valuemask: XCreatePictFlags, attributes: ^XRenderPictureAttributes, ) -> xlib.XID ---
Creates a Picture for a drawable.
Inputs
- dpy: Connection to the X server
- drawable: Target Drawable
- format: Format for the Picture
- valuemask:
attributesfields mask to use - attributes: Desired attributes for the Picture
Outputs
- A Picture tied to the drawable.
RenderCreateRadialGradient ¶C · XRenderCreateRadialGradientSource · Xrender.odin:1104
RenderCreateRadialGradient :: proc "c" ( dpy: ^xlib.Display, gradient: ^XRadialGradient, stops: [^]i32, colors: [^]XRenderColor, nstops: i32, ) -> xlib.XID ---
Create a Picture filled with a Radial Gradient.
Inputs
- dpy: Connection to the X server
- gradient: Gradient geometry
- stops: Stop sections
- colors: Stop colors
- nstops: Stops count
Outputs
- A Picture filled with a Radial Gradient.
RenderCreateSolidFill ¶C · XRenderCreateSolidFillSource · Xrender.odin:1074
RenderCreateSolidFill :: proc "c" (dpy: ^xlib.Display, color: ^XRenderColor) -> xlib.XID ---
Create a Picture filled with a single Color.
Inputs
- dpy: Connection to the X server
- color: Desired filling
Outputs
- A single Color Picture.
RenderFillRectangle ¶C · XRenderFillRectangleSource · Xrender.odin:835
RenderFillRectangle :: proc "c" ( dpy: ^xlib.Display, op: PictOp, dst: xlib.XID, color: ^XRenderColor, x: i32, y: i32, width: u32, height: u32, ) ---
Fill a Rectangle with the given color.
Input
- dpy: Connection to the X server
- op: Compositing operation to perform
- dst: Picture to draw into
- color: Color to fill with
- x: Horizontal offset
- y: Vertical offset
- width: Rectangle width
- height: Rectangle height
RenderFillRectangles ¶C · XRenderFillRectanglesSource · Xrender.odin:848
RenderFillRectangles :: proc "c" ( dpy: ^xlib.Display, op: PictOp, dst: xlib.XID, color: ^XRenderColor, rectangles: [^]xlib.XRectangle, n_rects: i32, ) ---
Fill a bunch of Rectangle with the given color.
Input
- dpy: Connection to the X server
- op: Compositing operation to perform
- dst: Picture to draw into
- color: Color to fill with
- rectangles: Array of Rectangles to fill
- n_rects:
rectanglesarray size
RenderFindFormat ¶C · XRenderFindFormatSource · Xrender.odin:439
RenderFindFormat :: proc "c" ( dpy: ^xlib.Display, mask: XPictFormatTemplateFlags, templ: ^XRenderPictFormat, count: i32, ) -> ^XRenderPictFormat ---
Ask for matching Picture formats from a template.
Input
- dpy: Connection to the X server
- mask:
templfields mask to use - templ: Requested Picture format template
- count: Skip
countformats
Output
- nil if no matching format found, else a Picture format.
RenderFindStandardFormat ¶C · XRenderFindStandardFormatSource · Xrender.odin:452
RenderFindStandardFormat :: proc "c" ( dpy: ^xlib.Display, format: PictStandardFormat, ) -> ^XRenderPictFormat ---
Ask for a predefined standard picture format. This is a shorthand to XRenderFindFormat for finding common formats.
Inputs
- dpy: Connection to the X server
- format: Desired format specifier
Outputs
- nil if no matching format found, else a Picture format.
RenderFindVisualFormat ¶C · XRenderFindVisualFormatSource · Xrender.odin:425
RenderFindVisualFormat :: proc "c" ( dpy: ^xlib.Display, visual: ^xlib.Visual, ) -> ^XRenderPictFormat ---
Ask for the Picture format for a Visual.
Inputs
- dpy: Connection to the X server
- visual: Reference Visual object
Outputs
- The requested Picture format.
RenderFreeGlyphSet ¶C · XRenderFreeGlyphSetSource · Xrender.odin:609
Free allocated structures for a GlyphSet. If there's more references to the underlying GlyphSet structures, this will remove only the specified GlyphSet reference. A freed GlyphSet shouldn't be used again.
Inputs
- dpy: Connection to the X server
- glyphset: Target GlyphSet
RenderFreeGlyphs ¶C · XRenderFreeGlyphsSource · Xrender.odin:634
RenderFreeGlyphs :: proc "c" ( dpy: ^xlib.Display, glyphset: xlib.XID, gids: [^]xlib.XID, nglyphs: i32, ) ---
Free allocated Glyphs.
Inputs
- dpy: Connection to the X server
- glyphset: GlyphSet storing the Glyphs
- gids: Identifier array of the Glyphs to deallocate
- nglyphs: Glyph count
RenderFreePicture ¶C · XRenderFreePictureSource · Xrender.odin:496
Free allocated structures for a Picture. A freed Picture shouldn't be used again.
Inputs
- dpy: Connection to the X server
- picture: Target Picture
RenderParseColor ¶C · XRenderParseColorSource · Xrender.odin:997
RenderParseColor :: proc "c" (dpy: ^xlib.Display, spec: cstring, def: ^XRenderColor) -> b32 ---
Parse a color string.
Inputs
- dpy: Connection to the X server
- spec: Null-terminated string
- def: out-param - Parsing result
Outputs
trueon success.
RenderQueryExtension ¶C · XRenderQueryExtensionSource · Xrender.odin:364
RenderQueryExtension :: proc "c" ( dpy: ^xlib.Display, event_basep: ^i32, error_basep: ^i32, ) -> b32 ---
Ask for the Render extension presence and its base numbers.
Inputs
- dpy: Connection to the X server
- event_basep: out-param - first event number for the extension
- error_basep: out-param - first error number for the extension
Outputs
- True if Render is present.
RenderQueryFilters ¶C · XRenderQueryFiltersSource · Xrender.odin:1023
Ask for Filters applicable to some Drawable.
Inputs
- dpy: Connection to the X server
- drawable: Target Drawable
Outputs
- Available Filters and Aliases.
RenderQueryFormats ¶C · XRenderQueryFormatsSource · Xrender.odin:388
Check for and cache compatible picture formats.
Input
- dpy: Connection to the X server
Output
trueon success.
RenderQueryPictIndexValues ¶C · XRenderQueryPictIndexValuesSource · Xrender.odin:465
RenderQueryPictIndexValues :: proc "c" ( dpy: ^xlib.Display, format: ^XRenderPictFormat, num: ^i32, ) -> [^]XIndexValue ---
Ask for the indexed colors of a Picture format.
Inputs
- dpy: Connection to the X server
- format: Queried picture format
- num: out-param - Size of the output array
Outputs
- An array of XIndexValue.
RenderQuerySubpixelOrder ¶C · XRenderQuerySubpixelOrderSource · Xrender.odin:400
RenderQuerySubpixelOrder :: proc "c" (dpy: ^xlib.Display, screen: i32) -> SubPixelOrder ---
Ask for the current subpixel order of a screen.
Input
- dpy: Connection to the X server
- screen: Target screen number
Output
- SubPixelUnknown on error, else a subpixel order.
RenderQueryVersion ¶C · XRenderQueryVersionSource · Xrender.odin:377
RenderQueryVersion :: proc "c" ( dpy: ^xlib.Display, major_versionp: ^i32, minor_versionp: ^i32, ) -> b32 ---
Ask for the extension version.
Inputs
- dpy: Connection to the X server
- major_versionp: out-param - Extension's major version
- minor_versionp: out-param - Extension's minor version
Outputs
trueon success.
RenderReferenceGlyphSet ¶C · XRenderReferenceGlyphSetSource · Xrender.odin:598
Generate a new reference for an existing Glyph Set.
Inputs
- dpy: Connection to the X server
- existing: Target Glyph Set
Outputs
- A GlyphSet identical to
existing.
RenderSetPictureClipRectangles ¶C · XRenderSetPictureClipRectanglesSource · Xrender.odin:520
RenderSetPictureClipRectangles :: proc "c" ( dpy: ^xlib.Display, picture: xlib.XID, x_origin: i32, y_origin: i32, rects: [^]xlib.XRectangle, n: i32, ) ---
Change a Picture's clip mask to the specified rectangles.
Inputs
- dpy: Connection to the X server
- picture: Target Picture
- x_origin: Horizontal mask origin
- y_origin: Vertical mask origin
- rects: Array of rectangles to clip with
- n:
rectsarray size
RenderSetPictureClipRegion ¶C · XRenderSetPictureClipRegionSource · Xrender.odin:530
Change a Picture's clip mask to the specified Region.
Inputs
- dpy: Connection to the X server
- picture: Target Picture
- r: Region to clip with
RenderSetPictureFilter ¶C · XRenderSetPictureFilterSource · Xrender.odin:1036
RenderSetPictureFilter :: proc "c" ( dpy: ^xlib.Display, picture: xlib.XID, filter: cstring, params: [^]i32, nparams: i32, ) ---
Set the current filter of a Picture.
On Picture creation, the Nearest filter is set by default.
Inputs
- dpy: Connection to the X server
- picture: Target
- filter: Filter name
- params: Filter parameters array
- nparams:
paramsarray size
RenderSetPictureTransform ¶C · XRenderSetPictureTransformSource · Xrender.odin:540
RenderSetPictureTransform :: proc "c" ( dpy: ^xlib.Display, picture: xlib.XID, transform: ^XTransform, ) ---
Change a Picture's Transform matrix.
Inputs
- dpy: Connection to the X server
- picture: Target Picture
- transform: Transform matrix to use
RenderSetSubpixelOrder ¶C · XRenderSetSubpixelOrderSource · Xrender.odin:413
RenderSetSubpixelOrder :: proc "c" ( dpy: ^xlib.Display, screen: i32, subpixel: SubPixelOrder, ) -> b32 ---
Change the subpixel order of a screen.
Input
- dpy: Connection to the X server
- screen: Target screen number
- subpixel: Requested subpixel order
Output
- True if the operation was successful.
XDoubleToFixed ¶
Turn XDouble into XFixed.
XFixedToDouble ¶
Turn XFixed into XDouble.
Procedure Groups
This section is empty.
Source Files
Generation Information
Generated with odin version dev-2026-12 (vendor "odin") Windows_amd64 @ 2026-12-01 21:06:57.407532700 +0000 UTC