Debian Codegraph @

gsk/gskenums.h

raw symbols SCIP
1 /* GSK - The GTK Scene Kit
2 * Copyright 2016 Endless
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #pragma once
19
20 #if !defined (__GSK_H_INSIDE__cxx . . $ `gsk/gsk.h:20:9`!) && !defined (GTK_COMPILATIONcxx . . $ `<built-in>:420:9`!)
21 #error "Only <gsk/gsk.h> can be included directly."
22 #endif
23
24 /**
25 * GskRenderNodeType:
26 * @GSK_NOT_A_RENDER_NODE: Error type. No node will ever have this type.
27 * @GSK_CONTAINER_NODE: A node containing a stack of children
28 * @GSK_CAIRO_NODE: A node drawing a `cairo_surface_t`
29 * @GSK_COLOR_NODE: A node drawing a single color rectangle
30 * @GSK_LINEAR_GRADIENT_NODE: A node drawing a linear gradient
31 * @GSK_REPEATING_LINEAR_GRADIENT_NODE: A node drawing a repeating linear gradient
32 * @GSK_RADIAL_GRADIENT_NODE: A node drawing a radial gradient
33 * @GSK_REPEATING_RADIAL_GRADIENT_NODE: A node drawing a repeating radial gradient
34 * @GSK_CONIC_GRADIENT_NODE: A node drawing a conic gradient
35 * @GSK_BORDER_NODE: A node stroking a border around an area
36 * @GSK_TEXTURE_NODE: A node drawing a `GdkTexture`
37 * @GSK_INSET_SHADOW_NODE: A node drawing an inset shadow
38 * @GSK_OUTSET_SHADOW_NODE: A node drawing an outset shadow
39 * @GSK_TRANSFORM_NODE: A node that renders its child after applying a matrix transform
40 * @GSK_OPACITY_NODE: A node that changes the opacity of its child
41 * @GSK_COLOR_MATRIX_NODE: A node that applies a color matrix to every pixel
42 * @GSK_REPEAT_NODE: A node that repeats the child's contents
43 * @GSK_CLIP_NODE: A node that clips its child to a rectangular area
44 * @GSK_ROUNDED_CLIP_NODE: A node that clips its child to a rounded rectangle
45 * @GSK_SHADOW_NODE: A node that draws a shadow below its child
46 * @GSK_BLEND_NODE: A node that blends two children together
47 * @GSK_CROSS_FADE_NODE: A node that cross-fades between two children
48 * @GSK_TEXT_NODE: A node containing a glyph string
49 * @GSK_BLUR_NODE: A node that applies a blur
50 * @GSK_DEBUG_NODE: Debug information that does not affect the rendering
51 * @GSK_GL_SHADER_NODE: A node that uses OpenGL fragment shaders to render
52 *
53 * The type of a node determines what the node is rendering.
54 */
55
56 /**
57 * GSK_TEXTURE_SCALE_NODE:
58 *
59 * A node drawing a `GdkTexture` scaled and filtered.
60 *
61 * Since: 4.10
62 */
63
64 /**
65 * GSK_MASK_NODE:
66 *
67 * A node that masks one child with another.
68 *
69 * Since: 4.10
70 */
71
72 /**
73 * GSK_STROKE_NODE:
74 *
75 * A node that strokes a path.
76 *
77 * Since: 4.14
78 */
79
80 /**
81 * GSK_FILL_NODE:
82 *
83 * A node that fills a path.
84 *
85 * Since: 4.14
86 */
87
88 /**
89 * GSK_SUBSURFACE_NODE:
90 *
91 * A node that possibly redirects part of the scene graph to a subsurface.
92 *
93 * Since: 4.14
94 */
95
96 /**
97 * GSK_COMPONENT_TRANSFER_NODE:
98 *
99 * A node that applies some function to each color component.
100 *
101 * Since: 4.20
102 */
103
104 /**
105 * GSK_COPY_NODE:
106 *
107 * A node that copies the rendering canvas to be pasted later.
108 *
109 * Since: 4.22
110 */
111
112 /**
113 * GSK_PASTE_NODE:
114 *
115 * A node that pastes a previously copied canvas.
116 *
117 * Since: 4.22
118 */
119
120 /**
121 * GSK_COMPOSITE_NODE:
122 *
123 * A node that combines a child with the background using Porter/Duff
124 * operations.
125 *
126 * Since: 4.22
127 */
128
129 /**
130 * GSK_ISOLATION_NODE:
131 *
132 * A node that isolated content of its child from previous content.
133 *
134 * Since: 4.22
135 */
136
137 /**
138 * GSK_DISPLACEMENT_NODE:
139 *
140 * A node that displaces content according to some mask.
141 *
142 * Since: 4.22
143 */
144
145 /**
146 * GSK_ARITHMETIC_NODE:
147 *
148 * A node that combines two child nodes in an arithmetic way.
149 *
150 * Since: 4.22
151 */
152
153 typedef enumcxx . . $ $anonymous_type_a0be425e345cdb9_0# {
154 GSK_NOT_A_RENDER_NODEcxx . . $ GSK_NOT_A_RENDER_NODE. = 0,
155 GSK_CONTAINER_NODEcxx . . $ GSK_CONTAINER_NODE.,
156 GSK_CAIRO_NODEcxx . . $ GSK_CAIRO_NODE.,
157 GSK_COLOR_NODEcxx . . $ GSK_COLOR_NODE.,
158 GSK_LINEAR_GRADIENT_NODEcxx . . $ GSK_LINEAR_GRADIENT_NODE.,
159 GSK_REPEATING_LINEAR_GRADIENT_NODEcxx . . $ GSK_REPEATING_LINEAR_GRADIENT_NODE.,
160 GSK_RADIAL_GRADIENT_NODEcxx . . $ GSK_RADIAL_GRADIENT_NODE.,
161 GSK_REPEATING_RADIAL_GRADIENT_NODEcxx . . $ GSK_REPEATING_RADIAL_GRADIENT_NODE.,
162 GSK_CONIC_GRADIENT_NODEcxx . . $ GSK_CONIC_GRADIENT_NODE.,
163 GSK_BORDER_NODEcxx . . $ GSK_BORDER_NODE.,
164 GSK_TEXTURE_NODEcxx . . $ GSK_TEXTURE_NODE.,
165 GSK_INSET_SHADOW_NODEcxx . . $ GSK_INSET_SHADOW_NODE.,
166 GSK_OUTSET_SHADOW_NODEcxx . . $ GSK_OUTSET_SHADOW_NODE.,
167 GSK_TRANSFORM_NODEcxx . . $ GSK_TRANSFORM_NODE.,
168 GSK_OPACITY_NODEcxx . . $ GSK_OPACITY_NODE.,
169 GSK_COLOR_MATRIX_NODEcxx . . $ GSK_COLOR_MATRIX_NODE.,
170 GSK_REPEAT_NODEcxx . . $ GSK_REPEAT_NODE.,
171 GSK_CLIP_NODEcxx . . $ GSK_CLIP_NODE.,
172 GSK_ROUNDED_CLIP_NODEcxx . . $ GSK_ROUNDED_CLIP_NODE.,
173 GSK_SHADOW_NODEcxx . . $ GSK_SHADOW_NODE.,
174 GSK_BLEND_NODEcxx . . $ GSK_BLEND_NODE.,
175 GSK_CROSS_FADE_NODEcxx . . $ GSK_CROSS_FADE_NODE.,
176 GSK_TEXT_NODEcxx . . $ GSK_TEXT_NODE.,
177 GSK_BLUR_NODEcxx . . $ GSK_BLUR_NODE.,
178 GSK_DEBUG_NODEcxx . . $ GSK_DEBUG_NODE.,
179 GSK_GL_SHADER_NODEcxx . . $ GSK_GL_SHADER_NODE.,
180 GSK_TEXTURE_SCALE_NODEcxx . . $ GSK_TEXTURE_SCALE_NODE.,
181 GSK_MASK_NODEcxx . . $ GSK_MASK_NODE.,
182 GSK_FILL_NODEcxx . . $ GSK_FILL_NODE.,
183 GSK_STROKE_NODEcxx . . $ GSK_STROKE_NODE.,
184 GSK_SUBSURFACE_NODEcxx . . $ GSK_SUBSURFACE_NODE.,
185 GSK_COMPONENT_TRANSFER_NODEcxx . . $ GSK_COMPONENT_TRANSFER_NODE.,
186 GSK_COPY_NODEcxx . . $ GSK_COPY_NODE.,
187 GSK_PASTE_NODEcxx . . $ GSK_PASTE_NODE.,
188 GSK_COMPOSITE_NODEcxx . . $ GSK_COMPOSITE_NODE.,
189 GSK_ISOLATION_NODEcxx . . $ GSK_ISOLATION_NODE.,
190 GSK_DISPLACEMENT_NODEcxx . . $ GSK_DISPLACEMENT_NODE.,
191 GSK_ARITHMETIC_NODEcxx . . $ GSK_ARITHMETIC_NODE.,
192 } GskRenderNodeTypecxx . . $ GskRenderNodeType#;
193
194 /**
195 * GskScalingFilter:
196 * @GSK_SCALING_FILTER_LINEAR: linear interpolation filter
197 * @GSK_SCALING_FILTER_NEAREST: nearest neighbor interpolation filter
198 * @GSK_SCALING_FILTER_TRILINEAR: linear interpolation along each axis,
199 * plus mipmap generation, with linear interpolation along the mipmap
200 * levels
201 *
202 * The filters used when scaling texture data.
203 *
204 * The actual implementation of each filter is deferred to the
205 * rendering pipeline.
206 */
207 typedef enumcxx . . $ $anonymous_type_a0be425e345cdb9_1# {
208 GSK_SCALING_FILTER_LINEARcxx . . $ GSK_SCALING_FILTER_LINEAR.,
209 GSK_SCALING_FILTER_NEARESTcxx . . $ GSK_SCALING_FILTER_NEAREST.,
210 GSK_SCALING_FILTER_TRILINEARcxx . . $ GSK_SCALING_FILTER_TRILINEAR.
211 } GskScalingFiltercxx . . $ GskScalingFilter#;
212
213 /**
214 * GskBlendMode:
215 * @GSK_BLEND_MODE_DEFAULT: The default blend mode, which specifies no blending
216 * @GSK_BLEND_MODE_MULTIPLY: The source color is multiplied by the destination
217 * and replaces the destination
218 * @GSK_BLEND_MODE_SCREEN: Multiplies the complements of the destination and source
219 * color values, then complements the result.
220 * @GSK_BLEND_MODE_OVERLAY: Multiplies or screens the colors, depending on the
221 * destination color value. This is the inverse of hard-list
222 * @GSK_BLEND_MODE_DARKEN: Selects the darker of the destination and source colors
223 * @GSK_BLEND_MODE_LIGHTEN: Selects the lighter of the destination and source colors
224 * @GSK_BLEND_MODE_COLOR_DODGE: Brightens the destination color to reflect the source color
225 * @GSK_BLEND_MODE_COLOR_BURN: Darkens the destination color to reflect the source color
226 * @GSK_BLEND_MODE_HARD_LIGHT: Multiplies or screens the colors, depending on the source color value
227 * @GSK_BLEND_MODE_SOFT_LIGHT: Darkens or lightens the colors, depending on the source color value
228 * @GSK_BLEND_MODE_DIFFERENCE: Subtracts the darker of the two constituent colors from the lighter color
229 * @GSK_BLEND_MODE_EXCLUSION: Produces an effect similar to that of the difference mode but lower in contrast
230 * @GSK_BLEND_MODE_COLOR: Creates a color with the hue and saturation of the source color and the luminosity of the destination color
231 * @GSK_BLEND_MODE_HUE: Creates a color with the hue of the source color and the saturation and luminosity of the destination color
232 * @GSK_BLEND_MODE_SATURATION: Creates a color with the saturation of the source color and the hue and luminosity of the destination color
233 * @GSK_BLEND_MODE_LUMINOSITY: Creates a color with the luminosity of the source color and the hue and saturation of the destination color
234 *
235 * The blend modes available for render nodes.
236 *
237 * The implementation of each blend mode is deferred to the
238 * rendering pipeline.
239 *
240 * See <https://www.w3.org/TR/compositing-1/#blending> for more information
241 * on blending and blend modes.
242 */
243 typedef enumcxx . . $ $anonymous_type_a0be425e345cdb9_2# {
244 GSK_BLEND_MODE_DEFAULTcxx . . $ GSK_BLEND_MODE_DEFAULT. = 0,
245
246 GSK_BLEND_MODE_MULTIPLYcxx . . $ GSK_BLEND_MODE_MULTIPLY.,
247 GSK_BLEND_MODE_SCREENcxx . . $ GSK_BLEND_MODE_SCREEN.,
248 GSK_BLEND_MODE_OVERLAYcxx . . $ GSK_BLEND_MODE_OVERLAY.,
249 GSK_BLEND_MODE_DARKENcxx . . $ GSK_BLEND_MODE_DARKEN.,
250 GSK_BLEND_MODE_LIGHTENcxx . . $ GSK_BLEND_MODE_LIGHTEN.,
251 GSK_BLEND_MODE_COLOR_DODGEcxx . . $ GSK_BLEND_MODE_COLOR_DODGE.,
252 GSK_BLEND_MODE_COLOR_BURNcxx . . $ GSK_BLEND_MODE_COLOR_BURN.,
253 GSK_BLEND_MODE_HARD_LIGHTcxx . . $ GSK_BLEND_MODE_HARD_LIGHT.,
254 GSK_BLEND_MODE_SOFT_LIGHTcxx . . $ GSK_BLEND_MODE_SOFT_LIGHT.,
255 GSK_BLEND_MODE_DIFFERENCEcxx . . $ GSK_BLEND_MODE_DIFFERENCE.,
256 GSK_BLEND_MODE_EXCLUSIONcxx . . $ GSK_BLEND_MODE_EXCLUSION.,
257 GSK_BLEND_MODE_COLORcxx . . $ GSK_BLEND_MODE_COLOR.,
258 GSK_BLEND_MODE_HUEcxx . . $ GSK_BLEND_MODE_HUE.,
259 GSK_BLEND_MODE_SATURATIONcxx . . $ GSK_BLEND_MODE_SATURATION.,
260 GSK_BLEND_MODE_LUMINOSITYcxx . . $ GSK_BLEND_MODE_LUMINOSITY.
261 } GskBlendModecxx . . $ GskBlendMode#;
262
263 /**
264 * GskPorterDuff:
265 * GSK_PORTER_DUFF_SOURCE:
266 * GSK_PORTER_DUFF_DEST:
267 * GSK_PORTER_DUFF_SOURCE_OVER_DEST:
268 * GSK_PORTER_DUFF_DEST_OVER_SOURCE:
269 * GSK_PORTER_DUFF_SOURCE_IN_DEST:
270 * GSK_PORTER_DUFF_DEST_IN_SOURCE:
271 * GSK_PORTER_DUFF_SOURCE_OUT_DEST:
272 * GSK_PORTER_DUFF_DEST_OUT_SOURCE:
273 * GSK_PORTER_DUFF_SOURCE_ATOP_DEST:
274 * GSK_PORTER_DUFF_DEST_ATOP_SOURCE:
275 * GSK_PORTER_DUFF_XOR:
276 * GSK_PORTER_DUFF_CLEAR:
277 *
278 * The 12 compositing modes defined by the seminal paper
279 * by Thomas Porter and Tom Duff.
280 *
281 * They are used in SVG, PDF and in Cairo with `cairo_operator_t`.
282 *
283 * Since: 4.22
284 */
285 typedef enumcxx . . $ $anonymous_type_a0be425e345cdb9_3#
286 {
287 GSK_PORTER_DUFF_SOURCEcxx . . $ GSK_PORTER_DUFF_SOURCE.,
288 GSK_PORTER_DUFF_DESTcxx . . $ GSK_PORTER_DUFF_DEST.,
289 GSK_PORTER_DUFF_SOURCE_OVER_DESTcxx . . $ GSK_PORTER_DUFF_SOURCE_OVER_DEST.,
290 GSK_PORTER_DUFF_DEST_OVER_SOURCEcxx . . $ GSK_PORTER_DUFF_DEST_OVER_SOURCE.,
291 GSK_PORTER_DUFF_SOURCE_IN_DESTcxx . . $ GSK_PORTER_DUFF_SOURCE_IN_DEST.,
292 GSK_PORTER_DUFF_DEST_IN_SOURCEcxx . . $ GSK_PORTER_DUFF_DEST_IN_SOURCE.,
293 GSK_PORTER_DUFF_SOURCE_OUT_DESTcxx . . $ GSK_PORTER_DUFF_SOURCE_OUT_DEST.,
294 GSK_PORTER_DUFF_DEST_OUT_SOURCEcxx . . $ GSK_PORTER_DUFF_DEST_OUT_SOURCE.,
295 GSK_PORTER_DUFF_SOURCE_ATOP_DESTcxx . . $ GSK_PORTER_DUFF_SOURCE_ATOP_DEST.,
296 GSK_PORTER_DUFF_DEST_ATOP_SOURCEcxx . . $ GSK_PORTER_DUFF_DEST_ATOP_SOURCE.,
297 GSK_PORTER_DUFF_XORcxx . . $ GSK_PORTER_DUFF_XOR.,
298 GSK_PORTER_DUFF_CLEARcxx . . $ GSK_PORTER_DUFF_CLEAR.
299 } GskPorterDuffcxx . . $ GskPorterDuff#;
300
301 /**
302 * GskCorner:
303 * @GSK_CORNER_TOP_LEFT: The top left corner
304 * @GSK_CORNER_TOP_RIGHT: The top right corner
305 * @GSK_CORNER_BOTTOM_RIGHT: The bottom right corner
306 * @GSK_CORNER_BOTTOM_LEFT: The bottom left corner
307 *
308 * The corner indices used by `GskRoundedRect`.
309 */
310 typedef enumcxx . . $ $anonymous_type_a0be425e345cdb9_4# {
311 GSK_CORNER_TOP_LEFTcxx . . $ GSK_CORNER_TOP_LEFT.,
312 GSK_CORNER_TOP_RIGHTcxx . . $ GSK_CORNER_TOP_RIGHT.,
313 GSK_CORNER_BOTTOM_RIGHTcxx . . $ GSK_CORNER_BOTTOM_RIGHT.,
314 GSK_CORNER_BOTTOM_LEFTcxx . . $ GSK_CORNER_BOTTOM_LEFT.
315 } GskCornercxx . . $ GskCorner#;
316
317 /**
318 * GskFillRule:
319 * @GSK_FILL_RULE_WINDING: If the path crosses the ray from
320 * left-to-right, counts +1. If the path crosses the ray
321 * from right to left, counts -1. (Left and right are determined
322 * from the perspective of looking along the ray from the starting
323 * point.) If the total count is non-zero, the point will be filled.
324 * @GSK_FILL_RULE_EVEN_ODD: Counts the total number of
325 * intersections, without regard to the orientation of the contour. If
326 * the total number of intersections is odd, the point will be
327 * filled.
328 *
329 * Specifies how paths are filled.
330 *
331 * Whether or not a point is included in the fill is determined by taking
332 * a ray from that point to infinity and looking at intersections with the
333 * path. The ray can be in any direction, as long as it doesn't pass through
334 * the end point of a segment or have a tricky intersection such as
335 * intersecting tangent to the path.
336 *
337 * (Note that filling is not actually implemented in this way. This
338 * is just a description of the rule that is applied.)
339 *
340 * New entries may be added in future versions.
341 *
342 * Since: 4.14
343 */
344 typedef enumcxx . . $ $anonymous_type_a0be425e345cdb9_5# {
345 GSK_FILL_RULE_WINDINGcxx . . $ GSK_FILL_RULE_WINDING.,
346 GSK_FILL_RULE_EVEN_ODDcxx . . $ GSK_FILL_RULE_EVEN_ODD.
347 } GskFillRulecxx . . $ GskFillRule#;
348
349 /**
350 * GskIsolation:
351 * @GSK_ISOLATION_NONE: No isolation is defined.
352 * @GSK_ISOLATION_BACKGROUND: If the background should be made available.
353 * If the background is not available, future operations will be rendered
354 * to a transparent background and added to the existing background later.
355 * @GSK_ISOLATION_COPY_PASTE: If copies should be available to paste nodes.
356 * If copies are not available, paste nodes can only paste from copies that
357 * are made inside the isolated contents.
358 * @GSK_ISOLATION_ALL: Isolate everything. This will include features that
359 * are added in the future.
360 *
361 * These flags describe the types of isolations possible with a
362 * [[email protected]].
363 *
364 * More isolation options may be added in the future.
365 *
366 * Since: 4.22
367 */
368 typedef enumcxx . . $ $anonymous_type_a0be425e345cdb9_6# {
369 GSK_ISOLATION_NONEcxx . . $ GSK_ISOLATION_NONE. = 0,
370 GSK_ISOLATION_BACKGROUNDcxx . . $ GSK_ISOLATION_BACKGROUND. = 1 << 0,
371 GSK_ISOLATION_COPY_PASTEcxx . . $ GSK_ISOLATION_COPY_PASTE. = 1 << 1,
372 GSK_ISOLATION_ALLcxx . . $ GSK_ISOLATION_ALL. = -1
373 } GskIsolationcxx . . $ GskIsolation#;
374
375 /**
376 * GskLineCap:
377 * @GSK_LINE_CAP_BUTT: Start and stop the line exactly at the start
378 * and end point
379 * @GSK_LINE_CAP_ROUND: Use a round ending, the center of the circle
380 * is the start or end point
381 * @GSK_LINE_CAP_SQUARE: use squared ending, the center of the square
382 * is the start or end point
383 *
384 * Specifies how to render the start and end points of contours or
385 * dashes when stroking.
386 *
387 * The default line cap style is `GSK_LINE_CAP_BUTT`.
388 *
389 * New entries may be added in future versions.
390 *
391 * <figure>
392 * <picture>
393 * <source srcset="caps-dark.png" media="(prefers-color-scheme: dark)">
394 * <img alt="Line Cap Styles" src="caps-light.png">
395 * </picture>
396 * <figcaption>GSK_LINE_CAP_BUTT, GSK_LINE_CAP_ROUND, GSK_LINE_CAP_SQUARE</figcaption>
397 * </figure>
398 *
399 * Since: 4.14
400 */
401 typedef enumcxx . . $ $anonymous_type_a0be425e345cdb9_7# {
402 GSK_LINE_CAP_BUTTcxx . . $ GSK_LINE_CAP_BUTT.,
403 GSK_LINE_CAP_ROUNDcxx . . $ GSK_LINE_CAP_ROUND.,
404 GSK_LINE_CAP_SQUAREcxx . . $ GSK_LINE_CAP_SQUARE.
405 } GskLineCapcxx . . $ GskLineCap#;
406
407 /**
408 * GskLineJoin:
409 * @GSK_LINE_JOIN_MITER: Use a sharp angled corner
410 * @GSK_LINE_JOIN_ROUND: Use a round join, the center of the circle is
411 * the join point
412 * @GSK_LINE_JOIN_BEVEL: use a cut-off join, the join is cut off at half
413 * the line width from the joint point
414 *
415 * Specifies how to render the junction of two lines when stroking.
416 *
417 * The default line join style is `GSK_LINE_JOIN_MITER`.
418 *
419 * New entries may be added in future versions.
420 *
421 * <figure>
422 * <picture>
423 * <source srcset="join-dark.png" media="(prefers-color-scheme: dark)">
424 * <img alt="Line Join Styles" src="join-light.png">
425 * </picture>
426 * <figcaption>GSK_LINE_JOINT_MITER, GSK_LINE_JOINT_ROUND, GSK_LINE_JOIN_BEVEL</figcaption>
427 * </figure>
428 *
429 * Since: 4.14
430 */
431 typedef enumcxx . . $ $anonymous_type_a0be425e345cdb9_8# {
432 GSK_LINE_JOIN_MITERcxx . . $ GSK_LINE_JOIN_MITER.,
433 GSK_LINE_JOIN_ROUNDcxx . . $ GSK_LINE_JOIN_ROUND.,
434 GSK_LINE_JOIN_BEVELcxx . . $ GSK_LINE_JOIN_BEVEL.,
435 } GskLineJoincxx . . $ GskLineJoin#;
436
437 /**
438 * GskPathOperation:
439 * @GSK_PATH_MOVE: A move-to operation, with 1 point describing the target point.
440 * @GSK_PATH_CLOSE: A close operation ending the current contour with a line back
441 * to the starting point. Two points describe the start and end of the line.
442 * @GSK_PATH_LINE: A line-to operation, with 2 points describing the start and
443 * end point of a straight line.
444 * @GSK_PATH_QUAD: A curve-to operation describing a quadratic Bézier curve
445 * with 3 points describing the start point, the control point and the end
446 * point of the curve.
447 * @GSK_PATH_CUBIC: A curve-to operation describing a cubic Bézier curve with 4
448 * points describing the start point, the two control points and the end point
449 * of the curve.
450 * @GSK_PATH_CONIC: A rational quadratic Bézier curve with 3 points describing
451 * the start point, control point and end point of the curve. A weight for the
452 * curve will be passed, too.
453 *
454 * Describes the segments of a `GskPath`.
455 *
456 * More values may be added in the future.
457 *
458 * Since: 4.14
459 */
460 typedef enumcxx . . $ $anonymous_type_a0be425e345cdb9_9# {
461 GSK_PATH_MOVEcxx . . $ GSK_PATH_MOVE.,
462 GSK_PATH_CLOSEcxx . . $ GSK_PATH_CLOSE.,
463 GSK_PATH_LINEcxx . . $ GSK_PATH_LINE.,
464 GSK_PATH_QUADcxx . . $ GSK_PATH_QUAD.,
465 GSK_PATH_CUBICcxx . . $ GSK_PATH_CUBIC.,
466 GSK_PATH_CONICcxx . . $ GSK_PATH_CONIC.,
467 } GskPathOperationcxx . . $ GskPathOperation#;
468
469 /**
470 * GskPathDirection:
471 * @GSK_PATH_FROM_START: The tangent in path direction of the incoming side
472 * of the path
473 * @GSK_PATH_TO_START: The tangent against path direction of the incoming side
474 * of the path
475 * @GSK_PATH_TO_END: The tangent in path direction of the outgoing side
476 * of the path
477 * @GSK_PATH_FROM_END: The tangent against path direction of the outgoing
478 * side of the path
479 *
480 * Used to pick one of the four tangents at a given point on the path.
481 *
482 * Note that the directions for @GSK_PATH_FROM_START/@GSK_PATH_TO_END and
483 * @GSK_PATH_TO_START/@GSK_PATH_FROM_END will coincide for smooth points.
484 * Only sharp turns will exhibit four different directions.
485 *
486 * <picture>
487 * <source srcset="directions-dark.png" media="(prefers-color-scheme: dark)">
488 * <img alt="Path Tangents" src="directions-light.png">
489 * </picture>
490 *
491 * Since: 4.14
492 */
493 typedef enumcxx . . $ $anonymous_type_a0be425e345cdb9_10# {
494 GSK_PATH_FROM_STARTcxx . . $ GSK_PATH_FROM_START.,
495 GSK_PATH_TO_STARTcxx . . $ GSK_PATH_TO_START.,
496 GSK_PATH_TO_ENDcxx . . $ GSK_PATH_TO_END.,
497 GSK_PATH_FROM_ENDcxx . . $ GSK_PATH_FROM_END.,
498 } GskPathDirectioncxx . . $ GskPathDirection#;
499
500 /**
501 * GskSerializationError:
502 * @GSK_SERIALIZATION_UNSUPPORTED_FORMAT: The format can not be identified
503 * @GSK_SERIALIZATION_UNSUPPORTED_VERSION: The version of the data is not
504 * understood
505 * @GSK_SERIALIZATION_INVALID_DATA: The given data may not exist in
506 * a proper serialization
507 *
508 * Errors that can happen during (de)serialization.
509 */
510 typedef enumcxx . . $ $anonymous_type_a0be425e345cdb9_11# {
511 GSK_SERIALIZATION_UNSUPPORTED_FORMATcxx . . $ GSK_SERIALIZATION_UNSUPPORTED_FORMAT.,
512 GSK_SERIALIZATION_UNSUPPORTED_VERSIONcxx . . $ GSK_SERIALIZATION_UNSUPPORTED_VERSION.,
513 GSK_SERIALIZATION_INVALID_DATAcxx . . $ GSK_SERIALIZATION_INVALID_DATA.
514 } GskSerializationErrorcxx . . $ GskSerializationError#;
515
516 /**
517 * GskTransformCategory:
518 * @GSK_TRANSFORM_CATEGORY_UNKNOWN: The category of the matrix has not been
519 * determined.
520 * @GSK_TRANSFORM_CATEGORY_ANY: Analyzing the matrix concluded that it does
521 * not fit in any other category.
522 * @GSK_TRANSFORM_CATEGORY_3D: The matrix is a 3D matrix. This means that
523 * the w column (the last column) has the values (0, 0, 0, 1).
524 * @GSK_TRANSFORM_CATEGORY_2D: The matrix is a 2D matrix. This is equivalent
525 * to graphene_matrix_is_2d() returning %TRUE. In particular, this
526 * means that Cairo can deal with the matrix.
527 * @GSK_TRANSFORM_CATEGORY_2D_AFFINE: The matrix is a combination of 2D scale
528 * and 2D translation operations. In particular, this means that any
529 * rectangle can be transformed exactly using this matrix.
530 * @GSK_TRANSFORM_CATEGORY_2D_TRANSLATE: The matrix is a 2D translation.
531 * @GSK_TRANSFORM_CATEGORY_IDENTITY: The matrix is the identity matrix.
532 *
533 * The categories of matrices relevant for GSK and GTK.
534 *
535 * Note that any category includes matrices of all later categories.
536 * So if you want to for example check if a matrix is a 2D matrix,
537 * `category >= GSK_TRANSFORM_CATEGORY_2D` is the way to do this.
538 *
539 * Also keep in mind that rounding errors may cause matrices to not
540 * conform to their categories. Otherwise, matrix operations done via
541 * multiplication will not worsen categories. So for the matrix
542 * multiplication `C = A * B`, `category(C) = MIN (category(A), category(B))`.
543 */
544 typedef enumcxx . . $ $anonymous_type_a0be425e345cdb9_12#
545 {
546 GSK_TRANSFORM_CATEGORY_UNKNOWNcxx . . $ GSK_TRANSFORM_CATEGORY_UNKNOWN.,
547 GSK_TRANSFORM_CATEGORY_ANYcxx . . $ GSK_TRANSFORM_CATEGORY_ANY.,
548 GSK_TRANSFORM_CATEGORY_3Dcxx . . $ GSK_TRANSFORM_CATEGORY_3D.,
549 GSK_TRANSFORM_CATEGORY_2Dcxx . . $ GSK_TRANSFORM_CATEGORY_2D.,
550 GSK_TRANSFORM_CATEGORY_2D_AFFINEcxx . . $ GSK_TRANSFORM_CATEGORY_2D_AFFINE.,
551 GSK_TRANSFORM_CATEGORY_2D_TRANSLATEcxx . . $ GSK_TRANSFORM_CATEGORY_2D_TRANSLATE.,
552 GSK_TRANSFORM_CATEGORY_IDENTITYcxx . . $ GSK_TRANSFORM_CATEGORY_IDENTITY.
553 } GskTransformCategorycxx . . $ GskTransformCategory#;
554
555 /**
556 * GskGLUniformType:
557 * @GSK_GL_UNIFORM_TYPE_NONE: No type, used for uninitialized or unspecified values.
558 * @GSK_GL_UNIFORM_TYPE_FLOAT: A float uniform
559 * @GSK_GL_UNIFORM_TYPE_INT: A GLSL int / gint32 uniform
560 * @GSK_GL_UNIFORM_TYPE_UINT: A GLSL uint / guint32 uniform
561 * @GSK_GL_UNIFORM_TYPE_BOOL: A GLSL bool / gboolean uniform
562 * @GSK_GL_UNIFORM_TYPE_VEC2: A GLSL vec2 / graphene_vec2_t uniform
563 * @GSK_GL_UNIFORM_TYPE_VEC3: A GLSL vec3 / graphene_vec3_t uniform
564 * @GSK_GL_UNIFORM_TYPE_VEC4: A GLSL vec4 / graphene_vec4_t uniform
565 *
566 * Defines the types of the uniforms that `GskGLShaders` declare.
567 *
568 * It defines both what the type is called in the GLSL shader
569 * code, and what the corresponding C type is on the Gtk side.
570 *
571 * Deprecated: 4.16
572 */
573 typedef enumcxx . . $ $anonymous_type_a0be425e345cdb9_13#
574 {
575 GSK_GL_UNIFORM_TYPE_NONEcxx . . $ GSK_GL_UNIFORM_TYPE_NONE.,
576 GSK_GL_UNIFORM_TYPE_FLOATcxx . . $ GSK_GL_UNIFORM_TYPE_FLOAT.,
577 GSK_GL_UNIFORM_TYPE_INTcxx . . $ GSK_GL_UNIFORM_TYPE_INT.,
578 GSK_GL_UNIFORM_TYPE_UINTcxx . . $ GSK_GL_UNIFORM_TYPE_UINT.,
579 GSK_GL_UNIFORM_TYPE_BOOLcxx . . $ GSK_GL_UNIFORM_TYPE_BOOL.,
580 GSK_GL_UNIFORM_TYPE_VEC2cxx . . $ GSK_GL_UNIFORM_TYPE_VEC2.,
581 GSK_GL_UNIFORM_TYPE_VEC3cxx . . $ GSK_GL_UNIFORM_TYPE_VEC3.,
582 GSK_GL_UNIFORM_TYPE_VEC4cxx . . $ GSK_GL_UNIFORM_TYPE_VEC4.,
583 } GskGLUniformTypecxx . . $ GskGLUniformType#;
584
585 /**
586 * GskMaskMode:
587 * @GSK_MASK_MODE_ALPHA: Use the alpha channel of the mask
588 * @GSK_MASK_MODE_INVERTED_ALPHA: Use the inverted alpha channel of the mask
589 * @GSK_MASK_MODE_LUMINANCE: Use the luminance of the mask,
590 * multiplied by mask alpha
591 * @GSK_MASK_MODE_INVERTED_LUMINANCE: Use the inverted luminance of the mask,
592 * multiplied by mask alpha
593 *
594 * The mask modes available for mask nodes.
595 *
596 * Since: 4.10
597 */
598 typedef enumcxx . . $ $anonymous_type_a0be425e345cdb9_14#
599 {
600 GSK_MASK_MODE_ALPHAcxx . . $ GSK_MASK_MODE_ALPHA.,
601 GSK_MASK_MODE_INVERTED_ALPHAcxx . . $ GSK_MASK_MODE_INVERTED_ALPHA.,
602 GSK_MASK_MODE_LUMINANCEcxx . . $ GSK_MASK_MODE_LUMINANCE.,
603 GSK_MASK_MODE_INVERTED_LUMINANCEcxx . . $ GSK_MASK_MODE_INVERTED_LUMINANCE.
604 } GskMaskModecxx . . $ GskMaskMode#;