1// Package gdk was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gdk
3
4import (
5 "github.com/bnema/puregotk/v4/gobject/types"
6)
7
8const (
9 // Defines all possible DND actions.
10 //
11 // This can be used in [method@Gdk.Drop.status] messages when any drop
12 // can be accepted or a more specific drop method is not yet known.
13 ACTION_ALL int = 7
14 // A mask covering all entries in `GdkModifierType`.
15 MODIFIER_MASK int = 469769999
16)
17
18// Flags describing the current capabilities of a device/tool.
19type AxisFlags int
20
21var xAxisFlagsGLibType func() types.GType
22
23func AxisFlagsGLibType() types.GType {
24 return xAxisFlagsGLibType()
25}
26
27const (
28
29 // X axis is present
30 AxisFlagXValue AxisFlags = 2
31 // Y axis is present
32 AxisFlagYValue AxisFlags = 4
33 // Scroll X delta axis is present
34 AxisFlagDeltaXValue AxisFlags = 8
35 // Scroll Y delta axis is present
36 AxisFlagDeltaYValue AxisFlags = 16
37 // Pressure axis is present
38 AxisFlagPressureValue AxisFlags = 32
39 // X tilt axis is present
40 AxisFlagXtiltValue AxisFlags = 64
41 // Y tilt axis is present
42 AxisFlagYtiltValue AxisFlags = 128
43 // Wheel axis is present
44 AxisFlagWheelValue AxisFlags = 256
45 // Distance axis is present
46 AxisFlagDistanceValue AxisFlags = 512
47 // Z-axis rotation is present
48 AxisFlagRotationValue AxisFlags = 1024
49 // Slider axis is present
50 AxisFlagSliderValue AxisFlags = 2048
51)
52
53// Used in `GdkDrop` and `GdkDrag` to indicate the actions that the
54// destination can and should do with the dropped data.
55type DragAction int
56
57var xDragActionGLibType func() types.GType
58
59func DragActionGLibType() types.GType {
60 return xDragActionGLibType()
61}
62
63const (
64
65 // No action.
66 ActionNoneValue DragAction = 0
67 // Copy the data.
68 ActionCopyValue DragAction = 1
69 // Move the data, i.e. first copy it, then delete
70 // it from the source using the DELETE target of the X selection protocol.
71 ActionMoveValue DragAction = 2
72 // Add a link to the data. Note that this is only
73 // useful if source and destination agree on what it means, and is not
74 // supported on all platforms.
75 ActionLinkValue DragAction = 4
76 // Ask the user what to do with the data.
77 ActionAskValue DragAction = 8
78)
79
80// The list of the different APIs that GdkGLContext can potentially support.
81type GLAPI int
82
83var xGLAPIGLibType func() types.GType
84
85func GLAPIGLibType() types.GType {
86 return xGLAPIGLibType()
87}
88
89const (
90
91 // The OpenGL API
92 GlApiGlValue GLAPI = 1
93 // The OpenGL ES API
94 GlApiGlesValue GLAPI = 2
95)
96
97// Flags to indicate the state of modifier keys and mouse buttons
98// in events.
99//
100// Typical modifier keys are Shift, Control, Meta, Super, Hyper, Alt, Compose,
101// Apple, CapsLock or ShiftLock.
102//
103// Note that GDK may add internal values to events which include values outside
104// of this enumeration. Your code should preserve and ignore them. You can use
105// %GDK_MODIFIER_MASK to remove all private values.
106type ModifierType int
107
108var xModifierTypeGLibType func() types.GType
109
110func ModifierTypeGLibType() types.GType {
111 return xModifierTypeGLibType()
112}
113
114const (
115
116 // No modifier.
117 NoModifierMaskValue ModifierType = 0
118 // the Shift key.
119 ShiftMaskValue ModifierType = 1
120 // a Lock key (depending on the Windowing System configuration,
121 // this may either be <kbd>CapsLock</kbd> or <kbd>ShiftLock</kbd>).
122 LockMaskValue ModifierType = 2
123 // the Control key.
124 ControlMaskValue ModifierType = 4
125 // the fourth modifier key (it depends on the Windowing System
126 // configuration which key is interpreted as this modifier, but normally it
127 // is the <kbd>Alt</kbd> key).
128 AltMaskValue ModifierType = 8
129 // the first mouse button.
130 Button1MaskValue ModifierType = 256
131 // the second mouse button.
132 Button2MaskValue ModifierType = 512
133 // the third mouse button.
134 Button3MaskValue ModifierType = 1024
135 // the fourth mouse button.
136 Button4MaskValue ModifierType = 2048
137 // the fifth mouse button.
138 Button5MaskValue ModifierType = 4096
139 // the Super modifier.
140 SuperMaskValue ModifierType = 67108864
141 // the Hyper modifier.
142 HyperMaskValue ModifierType = 134217728
143 // the Meta modifier. Maps to Command on macOS.
144 MetaMaskValue ModifierType = 268435456
145)
146
147// Defines how device axes are interpreted by GTK.
148//
149// Note that the X and Y axes are not really needed; pointer devices
150// report their location via the x/y members of events regardless. Whether
151// X and Y are present as axes depends on the GDK backend.
152type AxisUse int
153
154var xAxisUseGLibType func() types.GType
155
156func AxisUseGLibType() types.GType {
157 return xAxisUseGLibType()
158}
159
160const (
161
162 // the axis is ignored.
163 AxisIgnoreValue AxisUse = 0
164 // the axis is used as the x axis.
165 AxisXValue AxisUse = 1
166 // the axis is used as the y axis.
167 AxisYValue AxisUse = 2
168 // the axis is used as the scroll x delta
169 AxisDeltaXValue AxisUse = 3
170 // the axis is used as the scroll y delta
171 AxisDeltaYValue AxisUse = 4
172 // the axis is used for pressure information.
173 AxisPressureValue AxisUse = 5
174 // the axis is used for x tilt information.
175 AxisXtiltValue AxisUse = 6
176 // the axis is used for y tilt information.
177 AxisYtiltValue AxisUse = 7
178 // the axis is used for wheel information.
179 AxisWheelValue AxisUse = 8
180 // the axis is used for pen/tablet distance information
181 AxisDistanceValue AxisUse = 9
182 // the axis is used for pen rotation information
183 AxisRotationValue AxisUse = 10
184 // the axis is used for pen slider information
185 AxisSliderValue AxisUse = 11
186 // a constant equal to the numerically highest axis value.
187 AxisLastValue AxisUse = 12
188)
189
190// Error enumeration for `GdkDmabufTexture`.
191type DmabufError int
192
193var xDmabufErrorGLibType func() types.GType
194
195func DmabufErrorGLibType() types.GType {
196 return xDmabufErrorGLibType()
197}
198
199const (
200
201 // Dmabuf support is not available, because the OS
202 // is not Linux, or it was explicitly disabled at compile- or runtime
203 DmabufErrorNotAvailableValue DmabufError = 0
204 // The requested format is not supported
205 DmabufErrorUnsupportedFormatValue DmabufError = 1
206 // GTK failed to create the resource for other
207 // reasons
208 DmabufErrorCreationFailedValue DmabufError = 2
209)
210
211// Error enumeration for `GdkGLContext`.
212type GLError int
213
214var xGLErrorGLibType func() types.GType
215
216func GLErrorGLibType() types.GType {
217 return xGLErrorGLibType()
218}
219
220const (
221
222 // OpenGL support is not available
223 GlErrorNotAvailableValue GLError = 0
224 // The requested visual format is not supported
225 GlErrorUnsupportedFormatValue GLError = 1
226 // The requested profile is not supported
227 GlErrorUnsupportedProfileValue GLError = 2
228 // The shader compilation failed
229 GlErrorCompilationFailedValue GLError = 3
230 // The shader linking failed
231 GlErrorLinkFailedValue GLError = 4
232)
233
234// Defines the reference point of a surface and is used in `GdkPopupLayout`.
235type Gravity int
236
237var xGravityGLibType func() types.GType
238
239func GravityGLibType() types.GType {
240 return xGravityGLibType()
241}
242
243const (
244
245 // the reference point is at the top left corner.
246 GravityNorthWestValue Gravity = 1
247 // the reference point is in the middle of the top edge.
248 GravityNorthValue Gravity = 2
249 // the reference point is at the top right corner.
250 GravityNorthEastValue Gravity = 3
251 // the reference point is at the middle of the left edge.
252 GravityWestValue Gravity = 4
253 // the reference point is at the center of the surface.
254 GravityCenterValue Gravity = 5
255 // the reference point is at the middle of the right edge.
256 GravityEastValue Gravity = 6
257 // the reference point is at the lower left corner.
258 GravitySouthWestValue Gravity = 7
259 // the reference point is at the middle of the lower edge.
260 GravitySouthValue Gravity = 8
261 // the reference point is at the lower right corner.
262 GravitySouthEastValue Gravity = 9
263 // the reference point is at the top left corner of the
264 // surface itself, ignoring window manager decorations.
265 GravityStaticValue Gravity = 10
266)
267
268// Describes formats that image data can have in memory.
269//
270// It describes formats by listing the contents of the memory passed to it.
271// So `GDK_MEMORY_A8R8G8B8` will be 1 byte (8 bits) of alpha, followed by a
272// byte each of red, green and blue. It is not endian-dependent, so
273// `CAIRO_FORMAT_ARGB32` is represented by different `GdkMemoryFormats`
274// on architectures with different endiannesses.
275//
276// Its naming is modelled after
277// [VkFormat](https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.html#VkFormat)
278// for details).
279type MemoryFormat int
280
281var xMemoryFormatGLibType func() types.GType
282
283func MemoryFormatGLibType() types.GType {
284 return xMemoryFormatGLibType()
285}
286
287const (
288
289 // 4 bytes; for blue, green, red, alpha.
290 // The color values are premultiplied with the alpha value.
291 MemoryB8g8r8a8PremultipliedValue MemoryFormat = 0
292 // 4 bytes; for alpha, red, green, blue.
293 // The color values are premultiplied with the alpha value.
294 MemoryA8r8g8b8PremultipliedValue MemoryFormat = 1
295 // 4 bytes; for red, green, blue, alpha
296 // The color values are premultiplied with the alpha value.
297 MemoryR8g8b8a8PremultipliedValue MemoryFormat = 2
298 // 4 bytes; for blue, green, red, alpha.
299 MemoryB8g8r8a8Value MemoryFormat = 3
300 // 4 bytes; for alpha, red, green, blue.
301 MemoryA8r8g8b8Value MemoryFormat = 4
302 // 4 bytes; for red, green, blue, alpha.
303 MemoryR8g8b8a8Value MemoryFormat = 5
304 // 4 bytes; for alpha, blue, green, red.
305 MemoryA8b8g8r8Value MemoryFormat = 6
306 // 3 bytes; for red, green, blue. The data is opaque.
307 MemoryR8g8b8Value MemoryFormat = 7
308 // 3 bytes; for blue, green, red. The data is opaque.
309 MemoryB8g8r8Value MemoryFormat = 8
310 // 3 guint16 values; for red, green, blue.
311 MemoryR16g16b16Value MemoryFormat = 9
312 // 4 guint16 values; for red, green, blue, alpha. The color values are
313 // premultiplied with the alpha value.
314 MemoryR16g16b16a16PremultipliedValue MemoryFormat = 10
315 // 4 guint16 values; for red, green, blue, alpha.
316 MemoryR16g16b16a16Value MemoryFormat = 11
317 // 3 half-float values; for red, green, blue. The data is opaque.
318 MemoryR16g16b16FloatValue MemoryFormat = 12
319 // 4 half-float values; for red, green, blue and alpha. The color values are
320 // premultiplied with the alpha value.
321 MemoryR16g16b16a16FloatPremultipliedValue MemoryFormat = 13
322 // 4 half-float values; for red, green, blue and alpha.
323 MemoryR16g16b16a16FloatValue MemoryFormat = 14
324 // 3 float values; for red, green, blue.
325 MemoryR32g32b32FloatValue MemoryFormat = 15
326 // 4 float values; for red, green, blue and alpha. The color values are
327 // premultiplied with the alpha value.
328 MemoryR32g32b32a32FloatPremultipliedValue MemoryFormat = 16
329 // 4 float values; for red, green, blue and alpha.
330 MemoryR32g32b32a32FloatValue MemoryFormat = 17
331 // 2 bytes; for grayscale, alpha. The color values are premultiplied with the
332 // alpha value.
333 MemoryG8a8PremultipliedValue MemoryFormat = 18
334 // 2 bytes; for grayscale, alpha.
335 MemoryG8a8Value MemoryFormat = 19
336 // One byte; for grayscale. The data is opaque.
337 MemoryG8Value MemoryFormat = 20
338 // 2 guint16 values; for grayscale, alpha. The color values are premultiplied
339 // with the alpha value.
340 MemoryG16a16PremultipliedValue MemoryFormat = 21
341 // 2 guint16 values; for grayscale, alpha.
342 MemoryG16a16Value MemoryFormat = 22
343 // One guint16 value; for grayscale. The data is opaque.
344 MemoryG16Value MemoryFormat = 23
345 // One byte; for alpha.
346 MemoryA8Value MemoryFormat = 24
347 // One guint16 value; for alpha.
348 MemoryA16Value MemoryFormat = 25
349 // One half-float value; for alpha.
350 MemoryA16FloatValue MemoryFormat = 26
351 // One float value; for alpha.
352 MemoryA32FloatValue MemoryFormat = 27
353 // 4 bytes; for alpha, blue, green, red, The color values are premultiplied with
354 // the alpha value.
355 MemoryA8b8g8r8PremultipliedValue MemoryFormat = 28
356 // 4 bytes; for blue, green, red, unused.
357 MemoryB8g8r8x8Value MemoryFormat = 29
358 // 4 bytes; for unused, red, green, blue.
359 MemoryX8r8g8b8Value MemoryFormat = 30
360 // 4 bytes; for red, green, blue, unused.
361 MemoryR8g8b8x8Value MemoryFormat = 31
362 // 4 bytes; for unused, blue, green, red.
363 MemoryX8b8g8r8Value MemoryFormat = 32
364 // Multiplane format with 2 planes.
365 //
366 // The first plane contains the first channel, usually containing
367 // luma values.
368 // The second plane with interleaved chroma values, Cb followed by Cr.
369 // Subsampled in both the X and Y direction.
370 //
371 // Commonly known by the fourcc "NV12".
372 MemoryG8B8r8420Value MemoryFormat = 33
373 // Multiplane format with 2 planes.
374 //
375 // The first plane contains the first channel, usually containing
376 // luma values.
377 // The second plane with interleaved chroma values, Cr followed by Cb.
378 // Subsampled in both the X and Y direction.
379 //
380 // Commonly known by the fourcc "NV21".
381 MemoryG8R8b8420Value MemoryFormat = 34
382 // Multiplane format with 2 planes.
383 //
384 // The first plane contains the first channel, usually containing
385 // luma values.
386 // The second plane with interleaved chroma values, Cb followed by Cr.
387 // Subsampled in the X direction.
388 //
389 // Commonly known by the fourcc "NV16".
390 MemoryG8B8r8422Value MemoryFormat = 35
391 // Multiplane format with 2 planes.
392 //
393 // The first plane contains the first channel, usually containing
394 // luma values.
395 // The second plane with interleaved chroma values, Cr followed by Cb.
396 // Subsampled in the X direction.
397 //
398 // Commonly known by the fourcc "NV61".
399 MemoryG8R8b8422Value MemoryFormat = 36
400 // Multiplane format with 2 planes.
401 //
402 // The first plane contains the first channel, usually containing
403 // luma values.
404 // The second plane with interleaved chroma values, Cb followed by Cr.
405 // This format is not subsampled.
406 //
407 // Commonly known by the fourcc "NV24".
408 MemoryG8B8r8444Value MemoryFormat = 37
409 // Multiplane format with 2 planes.
410 //
411 // The first plane contains the first channel, usually containing
412 // luma values.
413 // The second plane with interleaved chroma values, Cr followed by Cb.
414 // This format is not subsampled.
415 //
416 // Commonly known by the fourcc "NV42".
417 MemoryG8R8b8444Value MemoryFormat = 38
418 // Multiplane format with 2 planes.
419 //
420 // Each channel is a 16 bit integer, but only the highest 10 bits are used.
421 //
422 // The first plane contains the first channel, usually containing
423 // luma values.
424 // The second plane with interleaved chroma values, Cr followed by Cb.
425 // This format is not subsampled.
426 //
427 // Commonly known by the fourcc "P010".
428 MemoryG10x6B10x6r10x6420Value MemoryFormat = 39
429 // Multiplane format with 2 planes.
430 //
431 // Each channel is a 16 bit integer, but only the highest 10 bits are used.
432 //
433 // The first plane contains the first channel, usually containing
434 // luma values.
435 // The second plane with interleaved chroma values, Cr followed by Cb.
436 // This format is not subsampled.
437 //
438 // Commonly known by the fourcc "P012".
439 MemoryG12x4B12x4r12x4420Value MemoryFormat = 40
440 // Multiplane format with 2 planes.
441 //
442 // Each channel is a 16 bit integer.
443 //
444 // The first plane contains the first channel, usually containing
445 // luma values.
446 // The second plane with interleaved chroma values, Cr followed by Cb.
447 // This format is not subsampled.
448 //
449 // Commonly known by the fourcc "P016".
450 MemoryG16B16r16420Value MemoryFormat = 41
451 // Multiplane format with 3 planes.
452 //
453 // Each channel is a 8 bit integer.
454 //
455 // The first plane usually contains the luma channel. It is mapped
456 // into the 2nd channel.
457 //
458 // The second plane usually contains the first chroma chanel.
459 // Subsampled in both the X and Y direction with 4:1 ratio. It is
460 // mapped into the 3rd channel.
461 //
462 // The third plane usually contains the second chroma channel.
463 // Subsampled in both the X and Y direction with 4:1 ratio. It is
464 // mapped into the 1st channel.
465 //
466 // Commonly known by the fourcc "YUV410".
467 MemoryG8B8R8410Value MemoryFormat = 42
468 // Multiplane format with 3 planes.
469 //
470 // Each channel is a 8 bit integer.
471 //
472 // The first plane usually contains the luma channel. It is mapped
473 // into the 2nd channel.
474 //
475 // The second plane usually contains the second chroma chanel.
476 // Subsampled in both the X and Y direction with 4:1 ratio. It is
477 // mapped into the 1st channel.
478 //
479 // The third plane usually contains the first chroma channel.
480 // Subsampled in both the X and Y direction with 4:1 ratio. It is
481 // mapped into the 3rd channel.
482 //
483 // Commonly known by the fourcc "YVU410".
484 MemoryG8R8B8410Value MemoryFormat = 43
485 // Multiplane format with 3 planes.
486 //
487 // Each channel is a 8 bit integer.
488 //
489 // The first plane usually contains the luma channel. It is mapped
490 // into the 2nd channel.
491 //
492 // The second plane usually contains the first chroma chanel.
493 // Subsampled in the X direction with 4:1 ratio. It is
494 // mapped into the 3rd channel.
495 //
496 // The third plane usually contains the second chroma channel.
497 // Subsampled in the X direction with 4:1 ratio. It is
498 // mapped into the 1st channel.
499 //
500 // Commonly known by the fourcc "YUV411".
501 MemoryG8B8R8411Value MemoryFormat = 44
502 // Multiplane format with 3 planes.
503 //
504 // Each channel is a 8 bit integer.
505 //
506 // The first plane usually contains the luma channel. It is mapped
507 // into the 2nd channel.
508 //
509 // The second plane usually contains the second chroma chanel.
510 // Subsampled in the X direction with 4:1 ratio. It is
511 // mapped into the 1st channel.
512 //
513 // The third plane usually contains the first chroma channel.
514 // Subsampled in the X direction with 4:1 ratio. It is
515 // mapped into the 3rd channel.
516 //
517 // Commonly known by the fourcc "YVU411".
518 MemoryG8R8B8411Value MemoryFormat = 45
519 // Multiplane format with 3 planes.
520 //
521 // Each channel is a 8 bit integer.
522 //
523 // The first plane usually contains the luma channel. It is mapped
524 // into the 2nd channel.
525 //
526 // The second plane usually contains the first chroma chanel.
527 // Subsampled in both the X and Y direction. It is mapped into the
528 // 3rd channel.
529 //
530 // The third plane usually contains the second chroma channel.
531 // Subsampled in both the X and Y direction. It is mapped into the
532 // 1st channel.
533 //
534 // Commonly known by the fourcc "YUV420".
535 MemoryG8B8R8420Value MemoryFormat = 46
536 // Multiplane format with 3 planes.
537 //
538 // Each channel is a 8 bit integer.
539 //
540 // The first plane usually contains the luma channel. It is mapped
541 // into the 2nd channel.
542 //
543 // The second plane usually contains the second chroma chanel.
544 // Subsampled in both the X and Y direction. It is mapped into the
545 // 1st channel.
546 //
547 // The third plane usually contains the first chroma channel.
548 // Subsampled in both the X and Y direction. It is mapped into the
549 // 3rd channel.
550 //
551 // Commonly known by the fourcc "YVU420".
552 MemoryG8R8B8420Value MemoryFormat = 47
553 // Multiplane format with 3 planes.
554 //
555 // Each channel is a 8 bit integer.
556 //
557 // The first plane usually contains the luma channel. It is mapped
558 // into the 2nd channel.
559 //
560 // The second plane usually contains the first chroma chanel.
561 // Subsampled in the X direction. It is mapped into the 3rd channel.
562 //
563 // The third plane usually contains the second chroma channel.
564 // Subsampled in the X direction. It is mapped into the 1st channel.
565 //
566 // Commonly known by the fourcc "YUV422".
567 MemoryG8B8R8422Value MemoryFormat = 48
568 // Multiplane format with 3 planes.
569 //
570 // Each channel is a 8 bit integer.
571 //
572 // The first plane usually contains the luma channel. It is mapped
573 // into the 2nd channel.
574 //
575 // The second plane usually contains the second chroma chanel.
576 // Subsampled in the X direction. It is mapped into the 1st channel.
577 //
578 // The third plane usually contains the first chroma channel.
579 // Subsampled in the X direction. It is mapped into the 3rd channel.
580 //
581 // Commonly known by the fourcc "YVU422".
582 MemoryG8R8B8422Value MemoryFormat = 49
583 // Multiplane format with 3 planes.
584 //
585 // Each channel is a 8 bit integer.
586 //
587 // The first plane usually contains the luma channel. It is mapped
588 // into the 2nd channel.
589 //
590 // The second plane usually contains the first chroma chanel. It is
591 // mapped into the 3rd channel.
592 //
593 // The third plane usually contains the second chroma channel. It is
594 // mapped into the 1st channel.
595 //
596 // Commonly known by the fourcc "YUV444".
597 MemoryG8B8R8444Value MemoryFormat = 50
598 // Multiplane format with 3 planes.
599 //
600 // Each channel is a 8 bit integer.
601 //
602 // The first plane usually contains the luma channel. It is mapped
603 // into the 2nd channel.
604 //
605 // The second plane usually contains the second chroma chanel.
606 // Subsampled in the X direction. It is mapped into the 1st channel.
607 //
608 // The third plane usually contains the first chroma channel.
609 // Subsampled in the X direction. It is mapped into the 3rd channel.
610 //
611 // Commonly known by the fourcc "YVU444".
612 MemoryG8R8B8444Value MemoryFormat = 51
613 // Packed format with subsampled channels.
614 //
615 // Each channel is a 8 bit integer. The red and blue/chroma channels
616 // are subsampled and interleaved with the green/luma channel.
617 //
618 // Each block contains 2 pixels, so the width must be a multiple of
619 // 2.
620 //
621 // Commonly known by the fourcc "YUYV".
622 MemoryG8b8g8r8422Value MemoryFormat = 52
623 // Packed format with subsampled channels.
624 //
625 // Each channel is a 8 bit integer. The red and blue/chroma channels
626 // are subsampled and interleaved with the green/luma channel.
627 //
628 // Each block contains 2 pixels, so the width must be a multiple of
629 // 2.
630 //
631 // Commonly known by the fourcc "YVYU".
632 MemoryG8r8g8b8422Value MemoryFormat = 53
633 // Packed format with subsampled channels.
634 //
635 // Each channel is a 8 bit integer. The red and blue/chroma channels
636 // are subsampled and interleaved with the green/luma channel.
637 //
638 // Each block contains 2 pixels, so the width must be a multiple of
639 // 2.
640 //
641 // Commonly known by the fourcc "VYUY".
642 MemoryR8g8b8g8422Value MemoryFormat = 54
643 // Packed format with subsampled channels.
644 //
645 // Each channel is a 8 bit integer. The red and blue/chroma channels
646 // are subsampled and interleaved with the green/luma channel.
647 //
648 // Each block contains 2 pixels, so the width must be a multiple of
649 // 2.
650 //
651 // Commonly known by the fourcc "UYVY".
652 MemoryB8g8r8g8422Value MemoryFormat = 55
653 // Multiplane format with 3 planes.
654 //
655 // Each channel is a 16 bit integer.
656 //
657 // Only the 10 lower bits are used. The remaining ones must be set to 0 by the
658 // producer.
659 //
660 // The first plane usually contains the luma channel. It is mapped
661 // into the 2nd channel.
662 //
663 // The second plane usually contains the first chroma chanel.
664 // Subsampled in both the X and Y direction. It is mapped into the
665 // 3rd channel.
666 //
667 // The third plane usually contains the second chroma channel.
668 // Subsampled in both the X and Y direction. It is mapped into the
669 // 1st channel.
670 //
671 // Commonly known by the fourcc "S010".
672 MemoryX6g10X6b10X6r10420Value MemoryFormat = 56
673 // Multiplane format with 3 planes.
674 //
675 // Each channel is a 16 bit integer.
676 //
677 // Only the 10 lower bits are used. The remaining ones must be set to 0 by the
678 // producer.
679 //
680 // The first plane usually contains the luma channel. It is mapped
681 // into the 2nd channel.
682 //
683 // The second plane usually contains the first chroma chanel.
684 // Subsampled in the X direction. It is mapped into the 3rd channel.
685 //
686 // The third plane usually contains the second chroma channel.
687 // Subsampled in the X direction. It is mapped into the 1st channel.
688 //
689 // Commonly known by the fourcc "S210".
690 MemoryX6g10X6b10X6r10422Value MemoryFormat = 57
691 // Multiplane format with 3 planes.
692 //
693 // Each channel is a 16 bit integer.
694 //
695 // Only the 10 lower bits are used. The remaining ones must be set to 0 by the
696 // producer.
697 //
698 // The first plane usually contains the luma channel. It is mapped
699 // into the 2nd channel.
700 //
701 // The second plane usually contains the first chroma chanel. It is
702 // mapped into the 3rd channel.
703 //
704 // The third plane usually contains the second chroma channel. It is
705 // mapped into the 1st channel.
706 //
707 // Commonly known by the fourcc "S410".
708 MemoryX6g10X6b10X6r10444Value MemoryFormat = 58
709 // Multiplane format with 3 planes.
710 //
711 // Each channel is a 16 bit integer.
712 //
713 // Only the 12 lower bits are used. The remaining ones must be set to 0 by the
714 // producer.
715 //
716 // The first plane usually contains the luma channel. It is mapped
717 // into the 2nd channel.
718 //
719 // The second plane usually contains the first chroma chanel.
720 // Subsampled in both the X and Y direction. It is mapped into the
721 // 3rd channel.
722 //
723 // The third plane usually contains the second chroma channel.
724 // Subsampled in both the X and Y direction. It is mapped into the
725 // 1st channel.
726 //
727 // Commonly known by the fourcc "S012".
728 MemoryX4g12X4b12X4r12420Value MemoryFormat = 59
729 // Multiplane format with 3 planes.
730 //
731 // Each channel is a 16 bit integer.
732 //
733 // Only the 12 lower bits are used. The remaining ones must be set to 0 by the
734 // producer.
735 //
736 // The first plane usually contains the luma channel. It is mapped
737 // into the 2nd channel.
738 //
739 // The second plane usually contains the first chroma chanel.
740 // Subsampled in the X direction. It is mapped into the 3rd channel.
741 //
742 // The third plane usually contains the second chroma channel.
743 // Subsampled in the X direction. It is mapped into the 1st channel.
744 //
745 // Commonly known by the fourcc "S212".
746 MemoryX4g12X4b12X4r12422Value MemoryFormat = 60
747 // Multiplane format with 3 planes.
748 //
749 // Each channel is a 16 bit integer.
750 //
751 // Only the 12 lower bits are used. The remaining ones must be set to 0 by the
752 // producer.
753 //
754 // The first plane usually contains the luma channel. It is mapped
755 // into the 2nd channel.
756 //
757 // The second plane usually contains the first chroma chanel. It is
758 // mapped into the 3rd channel.
759 //
760 // The third plane usually contains the second chroma channel. It is
761 // mapped into the 1st channel.
762 //
763 // Commonly known by the fourcc "S412".
764 MemoryX4g12X4b12X4r12444Value MemoryFormat = 61
765 // Multiplane format with 3 planes.
766 //
767 // Each channel is a 16 bit integer.
768 //
769 // The first plane usually contains the luma channel. It is mapped
770 // into the 2nd channel.
771 //
772 // The second plane usually contains the first chroma chanel.
773 // Subsampled in both the X and Y direction. It is mapped into the
774 // 3rd channel.
775 //
776 // The third plane usually contains the second chroma channel.
777 // Subsampled in both the X and Y direction. It is mapped into the
778 // 1st channel.
779 //
780 // Commonly known by the fourcc "S016".
781 MemoryG16B16R16420Value MemoryFormat = 62
782 // Multiplane format with 3 planes.
783 //
784 // Each channel is a 16 bit integer.
785 //
786 // The first plane usually contains the luma channel. It is mapped
787 // into the 2nd channel.
788 //
789 // The second plane usually contains the first chroma chanel.
790 // Subsampled in the X direction. It is mapped into the 3rd channel.
791 //
792 // The third plane usually contains the second chroma channel.
793 // Subsampled in the X direction. It is mapped into the 1st channel.
794 //
795 // Commonly known by the fourcc "S216".
796 MemoryG16B16R16422Value MemoryFormat = 63
797 // Multiplane format with 3 planes.
798 //
799 // Each channel is a 16 bit integer.
800 //
801 // The first plane usually contains the luma channel. It is mapped
802 // into the 2nd channel.
803 //
804 // The second plane usually contains the first chroma chanel. It is
805 // mapped into the 3rd channel.
806 //
807 // The third plane usually contains the second chroma channel. It is
808 // mapped into the 1st channel.
809 //
810 // Commonly known by the fourcc "S416".
811 MemoryG16B16R16444Value MemoryFormat = 64
812 // The number of formats. This value will change as
813 // more formats get added, so do not rely on its concrete integer.
814 MemoryNFormatsValue MemoryFormat = 65
815)
816
817// Used in scroll events, to announce the direction relative
818// to physical motion.
819type ScrollRelativeDirection int
820
821var xScrollRelativeDirectionGLibType func() types.GType
822
823func ScrollRelativeDirectionGLibType() types.GType {
824 return xScrollRelativeDirectionGLibType()
825}
826
827const (
828
829 // Physical motion and event motion are the same
830 ScrollRelativeDirectionIdenticalValue ScrollRelativeDirection = 0
831 // Physical motion is inverted relative to event motion
832 ScrollRelativeDirectionInvertedValue ScrollRelativeDirection = 1
833 // Relative motion is unknown on this device or backend
834 ScrollRelativeDirectionUnknownValue ScrollRelativeDirection = 2
835)
836
837// Error enumeration for `GdkVulkanContext`.
838type VulkanError int
839
840var xVulkanErrorGLibType func() types.GType
841
842func VulkanErrorGLibType() types.GType {
843 return xVulkanErrorGLibType()
844}
845
846const (
847
848 // Vulkan is not supported on this backend or has not been
849 // compiled in.
850 VulkanErrorUnsupportedValue VulkanError = 0
851 // Vulkan support is not available on this Surface
852 VulkanErrorNotAvailableValue VulkanError = 1
853)