diff options
Diffstat (limited to 'src/render.xml')
-rw-r--r-- | src/render.xml | 544 |
1 files changed, 544 insertions, 0 deletions
diff --git a/src/render.xml b/src/render.xml new file mode 100644 index 0000000..88e9a40 --- /dev/null +++ b/src/render.xml @@ -0,0 +1,544 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2002-2004 Carl D. Worth, Jamey Sharp, Bart Massey, Josh Triplett +All Rights Reserved. See the file COPYING in this directory +for licensing information. +--> +<xcb header="render" extension-xname="RENDER" extension-name="Render"> + <!-- supports version 0.10 --> + + <import>xproto</import> + + <enum name="PictType"> + <item name="Indexed" /> + <item name="Direct" /> + </enum> + + <!-- Disjoint* and Conjoint* are new in version 0.2 --> + <enum name="PictOp"> + <item name="Clear" /> + <item name="Src" /> + <item name="Dst" /> + <item name="Over" /> + <item name="OverReverse" /> + <item name="In" /> + <item name="InReverse" /> + <item name="Out" /> + <item name="OutReverse" /> + <item name="Atop" /> + <item name="AtopReverse" /> + <item name="Xor" /> + <item name="Add" /> + <item name="Saturate" /> + + <item name="DisjointClear"><value>0x10</value></item> + <item name="DisjointSrc" /> + <item name="DisjointDst" /> + <item name="DisjointOver" /> + <item name="DisjointOverReverse" /> + <item name="DisjointIn" /> + <item name="DisjointInReverse" /> + <item name="DisjointOut" /> + <item name="DisjointOutReverse" /> + <item name="DisjointAtop" /> + <item name="DisjointAtopReverse" /> + <item name="DisjointXor" /> + + <item name="ConjointClear"><value>0x20</value></item> + <item name="ConjointSrc" /> + <item name="ConjointDst" /> + <item name="ConjointOver" /> + <item name="ConjointOverReverse" /> + <item name="ConjointIn" /> + <item name="ConjointInReverse" /> + <item name="ConjointOut" /> + <item name="ConjointOutReverse" /> + <item name="ConjointAtop" /> + <item name="ConjointAtopReverse" /> + <item name="ConjointXor" /> + </enum> + + <enum name="PolyEdge"> + <item name="Sharp" /> + <item name="Smooth" /> + </enum> + + <enum name="PolyMode"> + <item name="Precise" /> + <item name="Imprecise" /> + </enum> + + <enum name="CP"> + <item name="Repeat"> <bit>0</bit></item> + <item name="AlphaMap"> <bit>1</bit></item> + <item name="AlphaXOrigin"> <bit>2</bit></item> + <item name="AlphaYOrigin"> <bit>3</bit></item> + <item name="ClipXOrigin"> <bit>4</bit></item> + <item name="ClipYOrigin"> <bit>5</bit></item> + <item name="ClipMask"> <bit>6</bit></item> + <item name="GraphicsExposure"><bit>7</bit></item> + <item name="SubwindowMode"> <bit>8</bit></item> + <item name="PolyEdge"> <bit>9</bit></item> + <item name="PolyMode"> <bit>10</bit></item> + <item name="Dither"> <bit>11</bit></item> + <item name="ComponentAlpha"> <bit>12</bit></item> + </enum> + + <enum name="SubPixel"> + <item name="Unknown" /> + <item name="HorizontalRGB" /> + <item name="HorizontalBGR" /> + <item name="VerticalRGB" /> + <item name="VerticalBGR" /> + <item name="None" /> + </enum> + + <!-- Extended repeat attributes introduced in 0.10 --> + <enum name="Repeat"> + <item name="None" /> + <item name="Normal" /> + <item name="Pad" /> + <item name="Reflect" /> + </enum> + + <typedef oldname="CARD32" newname="GLYPH" /> + <xidtype name="GLYPHSET" /> + + <xidtype name="PICTURE" /> + <xidtype name="PICTFORMAT" /> + + <typedef oldname="INT32" newname="FIXED" /> + + <error name="PictFormat" number="0" /> + <error name="Picture" number="1" /> + <error name="PictOp" number="2" /> + <error name="GlyphSet" number="3" /> + <error name="Glyph" number="4" /> + + <struct name="DIRECTFORMAT"> + <field type="CARD16" name="red_shift" /> + <field type="CARD16" name="red_mask" /> + <field type="CARD16" name="green_shift" /> + <field type="CARD16" name="green_mask" /> + <field type="CARD16" name="blue_shift" /> + <field type="CARD16" name="blue_mask" /> + <field type="CARD16" name="alpha_shift" /> + <field type="CARD16" name="alpha_mask" /> + </struct> + + <struct name="PICTFORMINFO"> + <field type="PICTFORMAT" name="id" /> + <field type="CARD8" name="type" /> + <field type="CARD8" name="depth" /> + <pad bytes="2" /> + <field type="DIRECTFORMAT" name="direct" /> + <field type="COLORMAP" name="colormap" /> + </struct> + + <struct name="PICTVISUAL"> + <field type="VISUALID" name="visual" /> + <field type="PICTFORMAT" name="format" /> + </struct> + + <struct name="PICTDEPTH"> + <field type="CARD8" name="depth" /> + <pad bytes="1" /> + <field type="CARD16" name="num_visuals" /> + <pad bytes="4" /> + <list type="PICTVISUAL" name="visuals"> + <fieldref>num_visuals</fieldref> + </list> + </struct> + + <struct name="PICTSCREEN"> + <field type="CARD32" name="num_depths" /> + <field type="PICTFORMAT" name="fallback" /> + <list type="PICTDEPTH" name="depths"> + <fieldref>num_depths</fieldref> + </list> + </struct> + + <struct name="INDEXVALUE"> + <field type="CARD32" name="pixel" /> + <field type="CARD16" name="red" /> + <field type="CARD16" name="green" /> + <field type="CARD16" name="blue" /> + <field type="CARD16" name="alpha" /> + </struct> + + <struct name="COLOR"> + <field type="CARD16" name="red" /> + <field type="CARD16" name="green" /> + <field type="CARD16" name="blue" /> + <field type="CARD16" name="alpha" /> + </struct> + + <struct name="POINTFIX"> + <field type="FIXED" name="x" /> + <field type="FIXED" name="y" /> + </struct> + + <struct name="LINEFIX"> + <field type="POINTFIX" name="p1" /> + <field type="POINTFIX" name="p2" /> + </struct> + + <struct name="TRIANGLE"> + <field type="POINTFIX" name="p1" /> + <field type="POINTFIX" name="p2" /> + <field type="POINTFIX" name="p3" /> + </struct> + + <struct name="TRAPEZOID"> + <field type="FIXED" name="top" /> + <field type="FIXED" name="bottom" /> + <field type="LINEFIX" name="left" /> + <field type="LINEFIX" name="right" /> + </struct> + + <struct name="GLYPHINFO"> + <field type="CARD16" name="width" /> + <field type="CARD16" name="height" /> + <field type="INT16" name="x" /> + <field type="INT16" name="y" /> + <field type="INT16" name="x_off" /> + <field type="INT16" name="y_off" /> + </struct> + + + <request name="QueryVersion" opcode="0"> + <field type="CARD32" name="client_major_version" /> + <field type="CARD32" name="client_minor_version" /> + <reply> + <pad bytes="1" /> + <field type="CARD32" name="major_version" /> + <field type="CARD32" name="minor_version" /> + <pad bytes="16" /> + </reply> + </request> + + <request name="QueryPictFormats" opcode="1"> + <reply> + <pad bytes="1" /> + <field type="CARD32" name="num_formats" /> + <field type="CARD32" name="num_screens" /> + <field type="CARD32" name="num_depths" /> + <field type="CARD32" name="num_visuals" /> + <field type="CARD32" name="num_subpixel" /> <!-- new in version 0.6 --> + <pad bytes="4" /> + <list type="PICTFORMINFO" name="formats"> + <fieldref>num_formats</fieldref> + </list> + <list type="PICTSCREEN" name="screens"> + <fieldref>num_screens</fieldref> + </list> + <list type="CARD32" name="subpixels"> + <fieldref>num_subpixel</fieldref> + </list> + </reply> + </request> + + <!-- from version 0.7 --> + <request name="QueryPictIndexValues" opcode="2"> + <field type="PICTFORMAT" name="format" /> + <reply> + <pad bytes="1" /> + <field type="CARD32" name="num_values" /> + <pad bytes="20" /> + <list type="INDEXVALUE" name="values"> + <fieldref>num_values</fieldref> + </list> + </reply> + </request> + + <!-- opcode 3 reserved for QueryDithers --> + + <request name="CreatePicture" opcode="4"> + <field type="PICTURE" name="pid" /> + <field type="DRAWABLE" name="drawable" /> + <field type="PICTFORMAT" name="format" /> + <valueparam value-mask-type="CARD32" + value-mask-name="value_mask" + value-list-name="value_list" /> + </request> + + <request name="ChangePicture" opcode="5"> + <field type="PICTURE" name="picture" /> + <valueparam value-mask-type="CARD32" + value-mask-name="value_mask" + value-list-name="value_list" /> + </request> + + <request name="SetPictureClipRectangles" opcode="6"> + <field type="PICTURE" name="picture" /> + <field type="INT16" name="clip_x_origin" /> + <field type="INT16" name="clip_y_origin" /> + <list type="RECTANGLE" name="rectangles" /> + </request> + + <request name="FreePicture" opcode="7"> + <field type="PICTURE" name="picture" /> + </request> + + <request name="Composite" opcode="8"> + <field type="CARD8" name="op" /> + <pad bytes="3" /> + <field type="PICTURE" name="src" /> + <field type="PICTURE" name="mask" /> + <field type="PICTURE" name="dst" /> + <field type="INT16" name="src_x" /> + <field type="INT16" name="src_y" /> + <field type="INT16" name="mask_x" /> + <field type="INT16" name="mask_y" /> + <field type="INT16" name="dst_x" /> + <field type="INT16" name="dst_y" /> + <field type="CARD16" name="width" /> + <field type="CARD16" name="height" /> + </request> + + <!-- opcode 9 reserved for Scale --> + + <request name="Trapezoids" opcode="10"> + <field type="CARD8" name="op" /> + <pad bytes="3" /> + <field type="PICTURE" name="src" /> + <field type="PICTURE" name="dst" /> + <field type="PICTFORMAT" name="mask_format" /> + <field type="INT16" name="src_x" /> + <field type="INT16" name="src_y" /> + <list type="TRAPEZOID" name="traps" /> + </request> + + <request name="Triangles" opcode="11"> + <field type="CARD8" name="op" /> + <pad bytes="3" /> + <field type="PICTURE" name="src" /> + <field type="PICTURE" name="dst" /> + <field type="PICTFORMAT" name="mask_format" /> + <field type="INT16" name="src_x" /> + <field type="INT16" name="src_y" /> + <list type="TRIANGLE" name="triangles" /> + </request> + + <request name="TriStrip" opcode="12"> + <field type="CARD8" name="op" /> + <pad bytes="3" /> + <field type="PICTURE" name="src" /> + <field type="PICTURE" name="dst" /> + <field type="PICTFORMAT" name="mask_format" /> + <field type="INT16" name="src_x" /> + <field type="INT16" name="src_y" /> + <list type="POINTFIX" name="points" /> + </request> + + <request name="TriFan" opcode="13"> + <field type="CARD8" name="op" /> + <pad bytes="3" /> + <field type="PICTURE" name="src" /> + <field type="PICTURE" name="dst" /> + <field type="PICTFORMAT" name="mask_format" /> + <field type="INT16" name="src_x" /> + <field type="INT16" name="src_y" /> + <list type="POINTFIX" name="points" /> + </request> + + <!-- opcode 14 reserved for ColorTrapezoids --> + + <!-- opcode 15 reserved for ColorTriangles --> + + <!-- opcode 16 reserved for Transform --> + + <request name="CreateGlyphSet" opcode="17"> + <field type="GLYPHSET" name="gsid" /> + <field type="PICTFORMAT" name="format" /> + </request> + + <request name="ReferenceGlyphSet" opcode="18"> + <field type="GLYPHSET" name="gsid" /> + <field type="GLYPHSET" name="existing" /> + </request> + + <request name="FreeGlyphSet" opcode="19"> + <field type="GLYPHSET" name="glyphset" /> + </request> + + <request name="AddGlyphs" opcode="20"> + <field type="GLYPHSET" name="glyphset" /> + <field type="CARD32" name="glyphs_len" /> + <list type="CARD32" name="glyphids"> + <fieldref>glyphs_len</fieldref> + </list> + <list type="GLYPHINFO" name="glyphs"> + <fieldref>glyphs_len</fieldref> + </list> + <list type="BYTE" name="data" /> + </request> + + <!-- opcode 21 reserved for AddGlyphsFromPicture --> + + <request name="FreeGlyphs" opcode="22"> + <field type="GLYPHSET" name="glyphset" /> + <list type="GLYPH" name="glyphs" /> + </request> + + <request name="CompositeGlyphs8" opcode="23"> + <field type="CARD8" name="op" /> + <pad bytes="3" /> + <field type="PICTURE" name="src" /> + <field type="PICTURE" name="dst" /> + <field type="PICTFORMAT" name="mask_format" /> + <field type="GLYPHSET" name="glyphset" /> + <field type="INT16" name="src_x" /> + <field type="INT16" name="src_y" /> + <list type="BYTE" name="glyphcmds" /> + </request> + + <request name="CompositeGlyphs16" opcode="24"> + <field type="CARD8" name="op" /> + <pad bytes="3" /> + <field type="PICTURE" name="src" /> + <field type="PICTURE" name="dst" /> + <field type="PICTFORMAT" name="mask_format" /> + <field type="GLYPHSET" name="glyphset" /> + <field type="INT16" name="src_x" /> + <field type="INT16" name="src_y" /> + <list type="BYTE" name="glyphcmds" /> + </request> + + <request name="CompositeGlyphs32" opcode="25"> + <field type="CARD8" name="op" /> + <pad bytes="3" /> + <field type="PICTURE" name="src" /> + <field type="PICTURE" name="dst" /> + <field type="PICTFORMAT" name="mask_format" /> + <field type="GLYPHSET" name="glyphset" /> + <field type="INT16" name="src_x" /> + <field type="INT16" name="src_y" /> + <list type="BYTE" name="glyphcmds" /> + </request> + + <!-- new in version 0.1 --> + + <request name="FillRectangles" opcode="26"> + <field type="CARD8" name="op" /> + <pad bytes="3" /> + <field type="PICTURE" name="dst" /> + <field type="COLOR" name="color" /> + <list type="RECTANGLE" name="rects" /> + </request> + + <!-- new in version 0.5 --> + + <request name="CreateCursor" opcode="27"> + <field type="CURSOR" name="cid" /> + <field type="PICTURE" name="source" /> + <field type="CARD16" name="x" /> + <field type="CARD16" name="y" /> + </request> + + <!-- new in version 0.6 --> + + <struct name="TRANSFORM"> + <field type="FIXED" name="matrix11" /> + <field type="FIXED" name="matrix12" /> + <field type="FIXED" name="matrix13" /> + <field type="FIXED" name="matrix21" /> + <field type="FIXED" name="matrix22" /> + <field type="FIXED" name="matrix23" /> + <field type="FIXED" name="matrix31" /> + <field type="FIXED" name="matrix32" /> + <field type="FIXED" name="matrix33" /> + </struct> + + <request name="SetPictureTransform" opcode="28"> + <field type="PICTURE" name="picture" /> + <field type="TRANSFORM" name="transform" /> + </request> + + <request name="QueryFilters" opcode="29"> + <field type="DRAWABLE" name="drawable" /> + <reply> + <pad bytes="1" /> + <field type="CARD32" name="num_aliases" /> + <field type="CARD32" name="num_filters" /> + <pad bytes="16" /> + <list type="CARD16" name="aliases"> + <fieldref>num_aliases</fieldref> + </list> + <list type="STR" name="filters"> + <fieldref>num_filters</fieldref> + </list> + </reply> + </request> + + <request name="SetPictureFilter" opcode="30"> + <field type="PICTURE" name="picture" /> + <field type="CARD16" name="filter_len" /> + <list type="char" name="filter"> + <fieldref>filter_len</fieldref> + </list> + <list type="FIXED" name="values" /> + </request> + + <!-- new in version 0.8 --> + + <struct name="ANIMCURSORELT"> + <field type="CURSOR" name="cursor" /> + <field type="CARD32" name="delay" /> + </struct> + + <request name="CreateAnimCursor" opcode="31"> + <field type="CURSOR" name="cid" /> + <list type="ANIMCURSORELT" name="cursors" /> + </request> + + <!-- new in version 0.9 --> + + <struct name="SPANFIX"> + <field type="FIXED" name="l" /> + <field type="FIXED" name="r" /> + <field type="FIXED" name="y" /> + </struct> + + <struct name="TRAP"> + <field type="SPANFIX" name="top" /> + <field type="SPANFIX" name="bot" /> + </struct> + + <request name="AddTraps" opcode="32"> + <field type="PICTURE" name="picture" /> + <field type="INT16" name="x_off" /> + <field type="INT16" name="y_off" /> + <list type="TRAP" name="traps" /> + </request> + + <!-- new in version 0.10 --> + + <request name="CreateSolidFill" opcode="33"> + <field type="PICTURE" name="picture" /> + <field type="COLOR" name="color" /> + </request> + + <request name="CreateLinearGradient" opcode="34"> + <field type="PICTURE" name="picture" /> + <field type="POINTFIX" name="p1" /> + <field type="POINTFIX" name="p2" /> + <field type="CARD32" name="num_stops" /> + </request> + + <request name="CreateRadialGradient" opcode="35"> + <field type="PICTURE" name="picture" /> + <field type="POINTFIX" name="inner" /> + <field type="POINTFIX" name="outer" /> + <field type="FIXED" name="inner_radius" /> + <field type="FIXED" name="outer_radius" /> + <field type="CARD32" name="num_stops" /> + </request> + + <request name="CreateConicalGradient" opcode="36"> + <field type="PICTURE" name="picture" /> + <field type="POINTFIX" name="center" /> + <field type="FIXED" name="angle" /> <!-- degrees --> + <field type="CARD32" name="num_stops" /> + </request> +</xcb> |