package vendor:x11/xrender

⌘K
Ctrl+K
or
/

    Index

    Constants (59)
    Variables (0)

    This section is empty.

    Procedures (46)
    Procedure Groups (0)

    This section is empty.

    Types

    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

    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, 
    }

    SubPixelOrder ¶

    SubPixelOrder :: enum i32 {
    	Unknown       = 0, 
    	HorizontalRGB = 1, 
    	HorizontalBGR = 2, 
    	VerticalRGB   = 3, 
    	VerticalBGR   = 4, 
    	None          = 5, 
    }
     

    Subpixel orders included in 0.6

    XAnimCursor ¶

    XAnimCursor :: struct {
    	// Existing cursor. 
    	cursor: xlib.XID,
    	// Animation delay. 
    	delay:  u64,
    }
     

    A single cursor frame.

    XCircle ¶

    XCircle :: struct {
    	x:      i32,
    	y:      i32,
    	radius: i32,
    }
     

    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

    XDouble ¶

    XDouble :: f64
     

    Floating-point number.

    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.

    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 ¶

    XPointDouble :: struct {
    	x: f64,
    	y: f64,
    }
     

    Point coordinates stored as floats.

    XPointFixed ¶

    XPointFixed :: struct {
    	x: i32,
    	y: i32,
    }
     

    Point coordinates as integers.

    Related Procedures With Parameters

    XRadialGradient ¶

    XRadialGradient :: struct {
    	inner: XCircle,
    	outer: XCircle,
    }
     

    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

    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 ¶

    XSpanFix :: struct {
    	left:  i32,
    	right: i32,
    	y:     i32,
    }
     

    An horizontal line.

    XTransform ¶

    XTransform :: struct {
    	raw_matrix: [3][3]i32,
    }
     

    A transform matrix.

    XTrap ¶

    XTrap :: struct {
    	top:    XSpanFix,
    	bottom: XSpanFix,
    }
     

    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

    FilterBilinear ¶

    FilterBilinear :: "bilinear"

    FilterConvolution ¶

    FilterConvolution :: "convolution"
     

    Filters included in 0.10

    FilterNearest ¶

    FilterNearest :: "nearest"
     

    Filters included in 0.6

    RENDER_NAME ¶

    RENDER_NAME :: "RENDER"

    RepeatNone ¶

    RepeatNone :: 0
     

    Extended repeat attributes included in 0.10

    X_RenderAddTraps ¶

    X_RenderAddTraps :: 32
     

    0.9

    X_RenderCreateAnimCursor ¶

    X_RenderCreateAnimCursor :: 31
     

    0.8

    X_RenderCreateConicalGradient ¶

    X_RenderCreateConicalGradient :: 36

    X_RenderCreateCursor ¶

    X_RenderCreateCursor :: 27
     

    0.5

    X_RenderCreateGlyphSet ¶

    X_RenderCreateGlyphSet :: 17
     

    X_RenderTransform :: 16

    X_RenderCreateSolidFill ¶

    X_RenderCreateSolidFill :: 33
     

    0.10

    X_RenderQueryPictIndexValues ¶

    X_RenderQueryPictIndexValues :: 2
     

    0.7

    X_RenderSetPictureClipRectangles ¶

    X_RenderSetPictureClipRectangles :: 6

    X_RenderSetPictureTransform ¶

    X_RenderSetPictureTransform :: 28
     

    0.6

    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 images byte 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: traps array 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: attributes fields 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 src origin offset
    • src_y: Vertical src origin offset
    • mask_x: Horizontal mask origin offset
    • mask_y: Vertical mask origin offset
    • dst_x: Horizontal dst origin offset
    • dst_y: Vertical dst origin 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 src origin offset
    • ySrc: Vertical src origin offset
    • xDst: Horizontal dst origin offset
    • yDst: Vertical dst origin offset
    • fpoints: Array of DoublePoints to create a Polygon with
    • npoints: points array 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 src origin offset
    • ySrc: Vertical src origin offset
    • xDst: Horizontal dst origin offset
    • yDst: Vertical dst origin 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 src origin offset
    • ySrc: Vertical src origin offset
    • xDst: Horizontal dst origin offset
    • yDst: Vertical dst origin 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 src origin offset
    • ySrc: Vertical src origin offset
    • xDst: Horizontal dst origin offset
    • yDst: Vertical dst origin 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 src origin offset
    • ySrc: Vertical src origin offset
    • xDst: Horizontal dst origin offset
    • yDst: Vertical dst origin 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 src origin offset
    • ySrc: Vertical src origin offset
    • xDst: Horizontal dst origin offset
    • yDst: Vertical dst origin 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 src origin offset
    • ySrc: Vertical src origin offset
    • xDst: Horizontal dst origin offset
    • yDst: Vertical dst origin 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 src origin offset
    • ySrc: Vertical src origin offset
    • traps: Array of Trapezoids to clip with
    • ntrap: traps Array 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 src origin offset
    • ySrc: Vertical src origin offset
    • points: Array of Points to create Triangles with
    • npoint: points array 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 src origin offset
    • ySrc: Vertical src origin offset
    • points: Array of Points to create Triangles with
    • npoint: points array 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 src origin offset
    • ySrc: Vertical src origin offset
    • triangles: Array of Triangles to clip with
    • ntriangle: triangles array 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: attributes fields 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: rectangles array 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: templ fields mask to use
    • templ: Requested Picture format template
    • count: Skip count formats

    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

    RenderFreeGlyphSet :: proc "c" (dpy: ^xlib.Display, glyphset: xlib.XID) ---
     

    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

    RenderFreePicture :: proc "c" (dpy: ^xlib.Display, picture: xlib.XID) ---
     

    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

    • true on 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

    RenderQueryFilters :: proc "c" (dpy: ^xlib.Display, drawable: xlib.XID) -> ^XFilters ---
     

    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

    RenderQueryFormats :: proc "c" (dpy: ^xlib.Display) -> b32 ---
     

    Check for and cache compatible picture formats.

    Input

    • dpy: Connection to the X server

    Output

    • true on 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

    • true on success.

    RenderReferenceGlyphSet ¶
    C · XRenderReferenceGlyphSetSource · Xrender.odin:598

    RenderReferenceGlyphSet :: proc "c" (dpy: ^xlib.Display, existing: xlib.XID) -> xlib.XID ---
     

    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: rects array size

    RenderSetPictureClipRegion ¶
    C · XRenderSetPictureClipRegionSource · Xrender.odin:530

    RenderSetPictureClipRegion :: proc "c" (dpy: ^xlib.Display, picture: xlib.XID, r: xlib.Region) ---
     

    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: params array 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 ¶

    XDoubleToFixed :: proc(f: f64) -> i32 {…}
     

    Turn XDouble into XFixed.

    XFixedToDouble ¶

    XFixedToDouble :: proc(f: i32) -> f64 {…}
     

    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