1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241
|
// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later
package render
import x "github.com/linuxdeepin/go-x11-client"
// _ns.ext_name: Render
const MajorVersion = 0
const MinorVersion = 11
var _ext *x.Extension
func Ext() *x.Extension {
return _ext
}
// enum PictType
const (
PictTypeIndexed = 0
PictTypeDirect = 1
)
// enum Picture
const (
PictureNone = 0
)
// enum PictOp
const (
PictOpClear = 0
PictOpSrc = 1
PictOpDst = 2
PictOpOver = 3
PictOpOverReverse = 4
PictOpIn = 5
PictOpInReverse = 6
PictOpOut = 7
PictOpOutReverse = 8
PictOpAtop = 9
PictOpAtopReverse = 10
PictOpXor = 11
PictOpAdd = 12
PictOpSaturate = 13
PictOpDisjointClear = 16
PictOpDisjointSrc = 17
PictOpDisjointDst = 18
PictOpDisjointOver = 19
PictOpDisjointOverReverse = 20
PictOpDisjointIn = 21
PictOpDisjointInReverse = 22
PictOpDisjointOut = 23
PictOpDisjointOutReverse = 24
PictOpDisjointAtop = 25
PictOpDisjointAtopReverse = 26
PictOpDisjointXor = 27
PictOpConjointClear = 32
PictOpConjointSrc = 33
PictOpConjointDst = 34
PictOpConjointOver = 35
PictOpConjointOverReverse = 36
PictOpConjointIn = 37
PictOpConjointInReverse = 38
PictOpConjointOut = 39
PictOpConjointOutReverse = 40
PictOpConjointAtop = 41
PictOpConjointAtopReverse = 42
PictOpConjointXor = 43
PictOpMultiply = 48
PictOpScreen = 49
PictOpOverlay = 50
PictOpDarken = 51
PictOpLighten = 52
PictOpColorDodge = 53
PictOpColorBurn = 54
PictOpHardLight = 55
PictOpSoftLight = 56
PictOpDifference = 57
PictOpExclusion = 58
PictOpHSLHue = 59
PictOpHSLSaturation = 60
PictOpHSLColor = 61
PictOpHSLLuminosity = 62
)
// enum PolyEdge
const (
PolyEdgeSharp = 0
PolyEdgeSmooth = 1
)
// enum PolyMode
const (
PolyModePrecise = 0
PolyModeImprecise = 1
)
// enum CP
const (
CPRepeat = 1
CPAlphaMap = 2
CPAlphaXOrigin = 4
CPAlphaYOrigin = 8
CPClipXOrigin = 16
CPClipYOrigin = 32
CPClipMask = 64
CPGraphicsExposure = 128
CPSubwindowMode = 256
CPPolyEdge = 512
CPPolyMode = 1024
CPDither = 2048
CPComponentAlpha = 4096
)
// enum SubPixel
const (
SubPixelUnknown = 0
SubPixelHorizontalRGB = 1
SubPixelHorizontalBGR = 2
SubPixelVerticalRGB = 3
SubPixelVerticalBGR = 4
SubPixelNone = 5
)
// enum Repeat
const (
RepeatNone = 0
RepeatNormal = 1
RepeatPad = 2
RepeatReflect = 3
)
// simple ('xcb', 'Render', 'GLYPH')
type Glyph uint32
// simple ('xcb', 'Render', 'GLYPHSET')
type GlyphSet uint32
// simple ('xcb', 'Render', 'PICTURE')
type Picture uint32
// simple ('xcb', 'Render', 'PICTFORMAT')
type PictFormat uint32
// simple ('xcb', 'Render', 'FIXED')
type Fixed int32
const PictFormatErrorCode = 0
const PictureErrorCode = 1
const PictOpErrorCode = 2
const GlyphSetErrorCode = 3
const GlyphErrorCode = 4
const QueryVersionOpcode = 0
type QueryVersionCookie x.SeqNum
const QueryPictFormatsOpcode = 1
type QueryPictFormatsCookie x.SeqNum
const QueryPictIndexValuesOpcode = 2
type QueryPictIndexValuesCookie x.SeqNum
const CreatePictureOpcode = 4
const ChangePictureOpcode = 5
const SetPictureClipRectanglesOpcode = 6
const FreePictureOpcode = 7
const CompositeOpcode = 8
const TrapezoidsOpcode = 10
const TrianglesOpcode = 11
const TriStripOpcode = 12
const TriFanOpcode = 13
const CreateGlyphSetOpcode = 17
const ReferenceGlyphSetOpcode = 18
const FreeGlyphSetOpcode = 19
const AddGlyphsOpcode = 20
const FreeGlyphsOpcode = 22
const CompositeGlyphs8Opcode = 23
const CompositeGlyphs16Opcode = 24
const CompositeGlyphs32Opcode = 25
const FillRectanglesOpcode = 26
const CreateCursorOpcode = 27
const SetPictureTransformOpcode = 28
const QueryFiltersOpcode = 29
type QueryFiltersCookie x.SeqNum
const SetPictureFilterOpcode = 30
const CreateAnimCursorOpcode = 31
const AddTrapsOpcode = 32
const CreateSolidFillOpcode = 33
const CreateLinearGradientOpcode = 34
const CreateRadialGradientOpcode = 35
const CreateConicalGradientOpcode = 36
var errorCodeNameMap = map[uint8]string{
PictFormatErrorCode: "BadPictFormat",
PictureErrorCode: "BadPicture",
PictOpErrorCode: "BadPictOp",
GlyphSetErrorCode: "BadGlyphSet",
GlyphErrorCode: "BadGlyph",
}
var requestOpcodeNameMap = map[uint]string{
QueryVersionOpcode: "QueryVersion",
QueryPictFormatsOpcode: "QueryPictFormats",
QueryPictIndexValuesOpcode: "QueryPictIndexValues",
CreatePictureOpcode: "CreatePicture",
ChangePictureOpcode: "ChangePicture",
SetPictureClipRectanglesOpcode: "SetPictureClipRectangles",
FreePictureOpcode: "FreePicture",
CompositeOpcode: "Composite",
TrapezoidsOpcode: "Trapezoids",
TrianglesOpcode: "Triangles",
TriStripOpcode: "TriStrip",
TriFanOpcode: "TriFan",
CreateGlyphSetOpcode: "CreateGlyphSet",
ReferenceGlyphSetOpcode: "ReferenceGlyphSet",
FreeGlyphSetOpcode: "FreeGlyphSet",
AddGlyphsOpcode: "AddGlyphs",
FreeGlyphsOpcode: "FreeGlyphs",
CompositeGlyphs8Opcode: "CompositeGlyphs8",
CompositeGlyphs16Opcode: "CompositeGlyphs16",
CompositeGlyphs32Opcode: "CompositeGlyphs32",
FillRectanglesOpcode: "FillRectangles",
CreateCursorOpcode: "CreateCursor",
SetPictureTransformOpcode: "SetPictureTransform",
QueryFiltersOpcode: "QueryFilters",
SetPictureFilterOpcode: "SetPictureFilter",
CreateAnimCursorOpcode: "CreateAnimCursor",
AddTrapsOpcode: "AddTraps",
CreateSolidFillOpcode: "CreateSolidFill",
CreateLinearGradientOpcode: "CreateLinearGradient",
CreateRadialGradientOpcode: "CreateRadialGradient",
CreateConicalGradientOpcode: "CreateConicalGradient",
}
func init() {
_ext = x.NewExtension("RENDER", 4, errorCodeNameMap, requestOpcodeNameMap)
}
|