v0.2.1 c0399be

gdktypes.go RawHistoryFolder

1// Package gdk was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gdk
3
4import (
5	"structs"
6	"unsafe"
7
8	"github.com/ebitengine/purego"
9
10	"github.com/bnema/puregotk/pkg/core"
11	"github.com/bnema/puregotk/v4/glib"
12	"github.com/bnema/puregotk/v4/gobject"
13	"github.com/bnema/puregotk/v4/gobject/types"
14)
15
16// Provides information to interpret colors and pixels in a variety of ways.
17//
18// They are also known as
19// [*color spaces*](https://en.wikipedia.org/wiki/Color_space).
20//
21// Crucially, GTK knows how to convert colors from one color
22// state to another.
23//
24// `GdkColorState` objects are immutable and therefore threadsafe.
25type ColorState struct {
26	_ structs.HostLayout
27}
28
29var xColorStateGLibType func() types.GType
30
31func ColorStateGLibType() types.GType {
32	return xColorStateGLibType()
33}
34
35func (x *ColorState) GoPointer() uintptr {
36	return uintptr(unsafe.Pointer(x))
37}
38
39var xColorStateCreateCicpParams func(uintptr) uintptr
40
41// Create a [class@Gdk.CicpParams] representing the colorstate.
42//
43// It is not guaranteed that every `GdkColorState` can be
44// represented with Cicp parameters. If that is the case,
45// this function returns `NULL`.
46func (x *ColorState) CreateCicpParams() *CicpParams {
47	var cls *CicpParams
48
49	cret := xColorStateCreateCicpParams(x.GoPointer())
50
51	if cret == 0 {
52		return nil
53	}
54	cls = &CicpParams{}
55	cls.Ptr = cret
56	return cls
57}
58
59var xColorStateEqual func(uintptr, *ColorState) bool
60
61// Compares two `GdkColorStates` for equality.
62//
63// Note that this function is not guaranteed to be perfect and two objects
64// describing the same color state may compare not equal. However, different
65// color states will never compare equal.
66func (x *ColorState) Equal(OtherVar *ColorState) bool {
67
68	cret := xColorStateEqual(x.GoPointer(), OtherVar)
69	return cret
70}
71
72var xColorStateEquivalent func(uintptr, *ColorState) bool
73
74// Compares two `GdkColorStates` for equivalence.
75//
76// Two objects that represent the same color state should be equivalent,
77// even though they may not be equal in the sense of [method@Gdk.ColorState.equal].
78func (x *ColorState) Equivalent(OtherVar *ColorState) bool {
79
80	cret := xColorStateEquivalent(x.GoPointer(), OtherVar)
81	return cret
82}
83
84var xColorStateRef func(uintptr) *ColorState
85
86// Increase the reference count of @self.
87func (x *ColorState) Ref() *ColorState {
88
89	cret := xColorStateRef(x.GoPointer())
90	return cret
91}
92
93var xColorStateUnref func(uintptr)
94
95// Decrease the reference count of @self.
96//
97// Unless @self is static, it will be freed
98// when the reference count reaches zero.
99func (x *ColorState) Unref() {
100
101	xColorStateUnref(x.GoPointer())
102
103}
104
105// Used to advertise and negotiate the format of content.
106//
107// You will encounter `GdkContentFormats` when interacting with objects
108// controlling operations that pass data between different widgets, window
109// or application, like [class@Gdk.Drag], [class@Gdk.Drop],
110// [class@Gdk.Clipboard] or [class@Gdk.ContentProvider].
111//
112// GDK supports content in 2 forms: `GType` and mime type.
113// Using `GTypes` is meant only for in-process content transfers. Mime types
114// are meant to be used for data passing both in-process and out-of-process.
115// The details of how data is passed is described in the documentation of
116// the actual implementations. To transform between the two forms,
117// [class@Gdk.ContentSerializer] and [class@Gdk.ContentDeserializer] are used.
118//
119// A `GdkContentFormats` describes a set of possible formats content can be
120// exchanged in. It is assumed that this set is ordered. `GTypes` are more
121// important than mime types. Order between different `GTypes` or mime types
122// is the order they were added in, most important first. Functions that
123// care about order, such as [method@Gdk.ContentFormats.union], will describe
124// in their documentation how they interpret that order, though in general the
125// order of the first argument is considered the primary order of the result,
126// followed by the order of further arguments.
127//
128// For debugging purposes, the function [method@Gdk.ContentFormats.to_string]
129// exists. It will print a comma-separated list of formats from most important
130// to least important.
131//
132// `GdkContentFormats` is an immutable struct. After creation, you cannot change
133// the types it represents. Instead, new `GdkContentFormats` have to be created.
134// The [struct@Gdk.ContentFormatsBuilder] structure is meant to help in this
135// endeavor.
136type ContentFormats struct {
137	_ structs.HostLayout
138}
139
140var xContentFormatsGLibType func() types.GType
141
142func ContentFormatsGLibType() types.GType {
143	return xContentFormatsGLibType()
144}
145
146func (x *ContentFormats) GoPointer() uintptr {
147	return uintptr(unsafe.Pointer(x))
148}
149
150var xNewContentFormats func([]string, uint) *ContentFormats
151
152// Creates a new `GdkContentFormats` from an array of mime types.
153//
154// The mime types must be valid and different from each other or the
155// behavior of the return value is undefined. If you cannot guarantee
156// this, use [struct@Gdk.ContentFormatsBuilder] instead.
157func NewContentFormats(MimeTypesVar []string, NMimeTypesVar uint) *ContentFormats {
158
159	cret := xNewContentFormats(MimeTypesVar, NMimeTypesVar)
160	return cret
161}
162
163var xNewContentFormatsForGtype func(types.GType) *ContentFormats
164
165// Creates a new `GdkContentFormats` for a given `GType`.
166func NewContentFormatsForGtype(TypeVar types.GType) *ContentFormats {
167
168	cret := xNewContentFormatsForGtype(TypeVar)
169	return cret
170}
171
172var xContentFormatsContainGtype func(uintptr, types.GType) bool
173
174// Checks if a given `GType` is part of the given @formats.
175func (x *ContentFormats) ContainGtype(TypeVar types.GType) bool {
176
177	cret := xContentFormatsContainGtype(x.GoPointer(), TypeVar)
178	return cret
179}
180
181var xContentFormatsContainMimeType func(uintptr, string) bool
182
183// Checks if a given mime type is part of the given @formats.
184func (x *ContentFormats) ContainMimeType(MimeTypeVar string) bool {
185
186	cret := xContentFormatsContainMimeType(x.GoPointer(), MimeTypeVar)
187	return cret
188}
189
190var xContentFormatsGetGtypes func(uintptr, *uint) uintptr
191
192// Gets the `GType`s included in @formats.
193//
194// Note that @formats may not contain any `GType`s, in particular when
195// they are empty. In that case %NULL will be returned.
196func (x *ContentFormats) GetGtypes(NGtypesVar *uint) uintptr {
197
198	cret := xContentFormatsGetGtypes(x.GoPointer(), NGtypesVar)
199	return cret
200}
201
202var xContentFormatsGetMimeTypes func(uintptr, *uint) []string
203
204// Gets the mime types included in @formats.
205//
206// Note that @formats may not contain any mime types, in particular
207// when they are empty. In that case %NULL will be returned.
208func (x *ContentFormats) GetMimeTypes(NMimeTypesVar *uint) []string {
209
210	cret := xContentFormatsGetMimeTypes(x.GoPointer(), NMimeTypesVar)
211	return cret
212}
213
214var xContentFormatsIsEmpty func(uintptr) bool
215
216// Returns whether the content formats contain any formats.
217func (x *ContentFormats) IsEmpty() bool {
218
219	cret := xContentFormatsIsEmpty(x.GoPointer())
220	return cret
221}
222
223var xContentFormatsMatch func(uintptr, *ContentFormats) bool
224
225// Checks if @first and @second have any matching formats.
226func (x *ContentFormats) Match(SecondVar *ContentFormats) bool {
227
228	cret := xContentFormatsMatch(x.GoPointer(), SecondVar)
229	return cret
230}
231
232var xContentFormatsMatchGtype func(uintptr, *ContentFormats) types.GType
233
234// Finds the first `GType` from @first that is also contained
235// in @second.
236//
237// If no matching `GType` is found, %G_TYPE_INVALID is returned.
238func (x *ContentFormats) MatchGtype(SecondVar *ContentFormats) types.GType {
239
240	cret := xContentFormatsMatchGtype(x.GoPointer(), SecondVar)
241	return cret
242}
243
244var xContentFormatsMatchMimeType func(uintptr, *ContentFormats) string
245
246// Finds the first mime type from @first that is also contained
247// in @second.
248//
249// If no matching mime type is found, %NULL is returned.
250func (x *ContentFormats) MatchMimeType(SecondVar *ContentFormats) string {
251
252	cret := xContentFormatsMatchMimeType(x.GoPointer(), SecondVar)
253	return cret
254}
255
256var xContentFormatsPrint func(uintptr, *glib.String)
257
258// Prints the given @formats into a string for human consumption.
259//
260// The result of this function can later be parsed with
261// [func@Gdk.ContentFormats.parse].
262func (x *ContentFormats) Print(StringVar *glib.String) {
263
264	xContentFormatsPrint(x.GoPointer(), StringVar)
265
266}
267
268var xContentFormatsRef func(uintptr) *ContentFormats
269
270// Increases the reference count of a `GdkContentFormats` by one.
271func (x *ContentFormats) Ref() *ContentFormats {
272
273	cret := xContentFormatsRef(x.GoPointer())
274	return cret
275}
276
277var xContentFormatsToString func(uintptr) string
278
279// Prints the given @formats into a human-readable string.
280//
281// The resulting string can be parsed with [func@Gdk.ContentFormats.parse].
282//
283// This is a small wrapper around [method@Gdk.ContentFormats.print]
284// to help when debugging.
285func (x *ContentFormats) ToString() string {
286
287	cret := xContentFormatsToString(x.GoPointer())
288	return cret
289}
290
291var xContentFormatsUnion func(uintptr, *ContentFormats) *ContentFormats
292
293// Append all missing types from @second to @first, in the order
294// they had in @second.
295func (x *ContentFormats) Union(SecondVar *ContentFormats) *ContentFormats {
296
297	cret := xContentFormatsUnion(x.GoPointer(), SecondVar)
298	return cret
299}
300
301var xContentFormatsUnionDeserializeGtypes func(uintptr) *ContentFormats
302
303// Add GTypes for mime types in @formats for which deserializers are
304// registered.
305func (x *ContentFormats) UnionDeserializeGtypes() *ContentFormats {
306
307	cret := xContentFormatsUnionDeserializeGtypes(x.GoPointer())
308	return cret
309}
310
311var xContentFormatsUnionDeserializeMimeTypes func(uintptr) *ContentFormats
312
313// Add mime types for GTypes in @formats for which deserializers are
314// registered.
315func (x *ContentFormats) UnionDeserializeMimeTypes() *ContentFormats {
316
317	cret := xContentFormatsUnionDeserializeMimeTypes(x.GoPointer())
318	return cret
319}
320
321var xContentFormatsUnionSerializeGtypes func(uintptr) *ContentFormats
322
323// Add GTypes for the mime types in @formats for which serializers are
324// registered.
325func (x *ContentFormats) UnionSerializeGtypes() *ContentFormats {
326
327	cret := xContentFormatsUnionSerializeGtypes(x.GoPointer())
328	return cret
329}
330
331var xContentFormatsUnionSerializeMimeTypes func(uintptr) *ContentFormats
332
333// Add mime types for GTypes in @formats for which serializers are
334// registered.
335func (x *ContentFormats) UnionSerializeMimeTypes() *ContentFormats {
336
337	cret := xContentFormatsUnionSerializeMimeTypes(x.GoPointer())
338	return cret
339}
340
341var xContentFormatsUnref func(uintptr)
342
343// Decreases the reference count of a `GdkContentFormats` by one.
344//
345// If the resulting reference count is zero, frees the formats.
346func (x *ContentFormats) Unref() {
347
348	xContentFormatsUnref(x.GoPointer())
349
350}
351
352// Provides information about supported DMA buffer formats.
353//
354// You can query whether a given format is supported with
355// [method@Gdk.DmabufFormats.contains] and you can iterate
356// over the list of all supported formats with
357// [method@Gdk.DmabufFormats.get_n_formats] and
358// [method@Gdk.DmabufFormats.get_format].
359//
360// The list of supported formats is sorted by preference,
361// with the best formats coming first.
362//
363// The list may contains (format, modifier) pairs where the modifier
364// is `DMA_FORMAT_MOD_INVALID`, indicating that **_implicit modifiers_**
365// may be used with this format.
366//
367// See [class@Gdk.DmabufTextureBuilder] for more information
368// about DMA buffers.
369//
370// Note that DMA buffers only exist on Linux.
371type DmabufFormats struct {
372	_ structs.HostLayout
373}
374
375var xDmabufFormatsGLibType func() types.GType
376
377func DmabufFormatsGLibType() types.GType {
378	return xDmabufFormatsGLibType()
379}
380
381func (x *DmabufFormats) GoPointer() uintptr {
382	return uintptr(unsafe.Pointer(x))
383}
384
385var xDmabufFormatsContains func(uintptr, uint32, uint64) bool
386
387// Returns whether a given format is contained in @formats.
388func (x *DmabufFormats) Contains(FourccVar uint32, ModifierVar uint64) bool {
389
390	cret := xDmabufFormatsContains(x.GoPointer(), FourccVar, ModifierVar)
391	return cret
392}
393
394var xDmabufFormatsEqual func(uintptr, *DmabufFormats) bool
395
396// Returns whether @formats1 and @formats2 contain the
397// same dmabuf formats, in the same order.
398func (x *DmabufFormats) Equal(Formats2Var *DmabufFormats) bool {
399
400	cret := xDmabufFormatsEqual(x.GoPointer(), Formats2Var)
401	return cret
402}
403
404var xDmabufFormatsGetFormat func(uintptr, uint, *uint32, *uint64)
405
406// Gets the fourcc code and modifier for a format
407// that is contained in @formats.
408func (x *DmabufFormats) GetFormat(IdxVar uint, FourccVar *uint32, ModifierVar *uint64) {
409
410	xDmabufFormatsGetFormat(x.GoPointer(), IdxVar, FourccVar, ModifierVar)
411
412}
413
414var xDmabufFormatsGetNFormats func(uintptr) uint
415
416// Returns the number of formats that the @formats object
417// contains.
418//
419// Note that DMA buffers are a Linux concept, so on other
420// platforms, [method@Gdk.DmabufFormats.get_n_formats] will
421// always return zero.
422func (x *DmabufFormats) GetNFormats() uint {
423
424	cret := xDmabufFormatsGetNFormats(x.GoPointer())
425	return cret
426}
427
428var xDmabufFormatsRef func(uintptr) *DmabufFormats
429
430// Increases the reference count of @formats.
431func (x *DmabufFormats) Ref() *DmabufFormats {
432
433	cret := xDmabufFormatsRef(x.GoPointer())
434	return cret
435}
436
437var xDmabufFormatsUnref func(uintptr)
438
439// Decreases the reference count of @formats.
440//
441// When the reference count reaches zero,
442// the object is freed.
443func (x *DmabufFormats) Unref() {
444
445	xDmabufFormatsUnref(x.GoPointer())
446
447}
448
449// Represents a hardware key that can be mapped to a keyval.
450type KeymapKey struct {
451	_ structs.HostLayout
452
453	Keycode uint
454
455	Group int
456
457	Level int
458}
459
460func (x *KeymapKey) GoPointer() uintptr {
461	return uintptr(unsafe.Pointer(x))
462}
463
464// Represents a rectangle.
465//
466// `GdkRectangle` is identical to `cairo_rectangle_t`. Together with Cairo’s
467// `cairo_region_t` data type, these are the central types for representing
468// sets of pixels.
469//
470// The intersection of two rectangles can be computed with
471// [method@Gdk.Rectangle.intersect]; to find the union of two rectangles use
472// [method@Gdk.Rectangle.union].
473//
474// The `cairo_region_t` type provided by Cairo is usually used for managing
475// non-rectangular clipping of graphical operations.
476//
477// The Graphene library has a number of other data types for regions and
478// volumes in 2D and 3D.
479type Rectangle struct {
480	_ structs.HostLayout
481
482	X int
483
484	Y int
485
486	Width int
487
488	Height int
489}
490
491var xRectangleGLibType func() types.GType
492
493func RectangleGLibType() types.GType {
494	return xRectangleGLibType()
495}
496
497func (x *Rectangle) GoPointer() uintptr {
498	return uintptr(unsafe.Pointer(x))
499}
500
501var xRectangleContainsPoint func(uintptr, int, int) bool
502
503// Returns %TRUE if @rect contains the point described by @x and @y.
504func (x *Rectangle) ContainsPoint(XVar int, YVar int) bool {
505
506	cret := xRectangleContainsPoint(x.GoPointer(), XVar, YVar)
507	return cret
508}
509
510var xRectangleEqual func(uintptr, *Rectangle) bool
511
512// Checks if the two given rectangles are equal.
513func (x *Rectangle) Equal(Rect2Var *Rectangle) bool {
514
515	cret := xRectangleEqual(x.GoPointer(), Rect2Var)
516	return cret
517}
518
519var xRectangleIntersect func(uintptr, *Rectangle, *Rectangle) bool
520
521// Calculates the intersection of two rectangles.
522//
523// It is allowed for @dest to be the same as either @src1 or @src2.
524// If the rectangles do not intersect, @dest’s width and height is set
525// to 0 and its x and y values are undefined. If you are only interested
526// in whether the rectangles intersect, but not in the intersecting area
527// itself, pass %NULL for @dest.
528func (x *Rectangle) Intersect(Src2Var *Rectangle, DestVar *Rectangle) bool {
529
530	cret := xRectangleIntersect(x.GoPointer(), Src2Var, DestVar)
531	return cret
532}
533
534var xRectangleUnion func(uintptr, *Rectangle, *Rectangle)
535
536// Calculates the union of two rectangles.
537//
538// The union of rectangles @src1 and @src2 is the smallest rectangle which
539// includes both @src1 and @src2 within it. It is allowed for @dest to be
540// the same as either @src1 or @src2.
541//
542// Note that this function does not ignore 'empty' rectangles (ie. with
543// zero width or height).
544func (x *Rectangle) Union(Src2Var *Rectangle, DestVar *Rectangle) {
545
546	xRectangleUnion(x.GoPointer(), Src2Var, DestVar)
547
548}
549
550// Used to download the contents of a [class@Gdk.Texture].
551//
552// It is intended to be created as a short-term object for a single download,
553// but can be used for multiple downloads of different textures or with different
554// settings.
555//
556// `GdkTextureDownloader` can be used to convert data between different formats.
557// Create a `GdkTexture` for the existing format and then download it in a
558// different format.
559type TextureDownloader struct {
560	_ structs.HostLayout
561}
562
563var xTextureDownloaderGLibType func() types.GType
564
565func TextureDownloaderGLibType() types.GType {
566	return xTextureDownloaderGLibType()
567}
568
569func (x *TextureDownloader) GoPointer() uintptr {
570	return uintptr(unsafe.Pointer(x))
571}
572
573var xNewTextureDownloader func(uintptr) *TextureDownloader
574
575// Creates a new texture downloader for @texture.
576//
577// By default, the downloader will convert the data to
578// the default memory format, and to the sRGB color state.
579func NewTextureDownloader(TextureVar *Texture) *TextureDownloader {
580
581	cret := xNewTextureDownloader(TextureVar.GoPointer())
582	return cret
583}
584
585var xTextureDownloaderCopy func(uintptr) *TextureDownloader
586
587// Creates a copy of the downloader.
588//
589// This function is meant for language bindings.
590func (x *TextureDownloader) Copy() *TextureDownloader {
591
592	cret := xTextureDownloaderCopy(x.GoPointer())
593	return cret
594}
595
596var xTextureDownloaderDownloadBytes func(uintptr, *uint) *glib.Bytes
597
598// Downloads the given texture pixels into a `GBytes`. The rowstride will
599// be stored in the stride value.
600//
601// This function will abort if it tries to download a large texture and
602// fails to allocate memory. If you think that may happen, you should handle
603// memory allocation yourself and use [method@Gdk.TextureDownloader.download_into]
604// once allocation succeeded.
605//
606// This function cannot be used with a multiplanar format. Use
607// [method@Gdk.TextureDownloader.download_bytes_with_planes] for that purpose.
608func (x *TextureDownloader) DownloadBytes(OutStrideVar *uint) *glib.Bytes {
609
610	cret := xTextureDownloaderDownloadBytes(x.GoPointer(), OutStrideVar)
611	return cret
612}
613
614var xTextureDownloaderDownloadBytesWithPlanes func(uintptr, *[4]uint, *[4]uint) *glib.Bytes
615
616// Downloads the given texture pixels into a `GBytes`. The offsets and
617// strides of the resulting buffer will be stored in the respective values.
618//
619// If the format does have less than 4 planes, the remaining offsets and strides will be
620// set to `0`.
621func (x *TextureDownloader) DownloadBytesWithPlanes(OutOffsetsVar *[4]uint, OutStridesVar *[4]uint) *glib.Bytes {
622
623	cret := xTextureDownloaderDownloadBytesWithPlanes(x.GoPointer(), OutOffsetsVar, OutStridesVar)
624	return cret
625}
626
627var xTextureDownloaderDownloadInto func(uintptr, []byte, uint)
628
629// Downloads the @texture into local memory.
630//
631// This function cannot be used with a multiplanar format.
632func (x *TextureDownloader) DownloadInto(DataVar []byte, StrideVar uint) {
633
634	xTextureDownloaderDownloadInto(x.GoPointer(), DataVar, StrideVar)
635
636}
637
638var xTextureDownloaderFree func(uintptr)
639
640// Frees the given downloader and all its associated resources.
641func (x *TextureDownloader) Free() {
642
643	xTextureDownloaderFree(x.GoPointer())
644
645}
646
647var xTextureDownloaderGetColorState func(uintptr) *ColorState
648
649// Gets the color state that the data will be downloaded in.
650func (x *TextureDownloader) GetColorState() *ColorState {
651
652	cret := xTextureDownloaderGetColorState(x.GoPointer())
653	return cret
654}
655
656var xTextureDownloaderGetFormat func(uintptr) MemoryFormat
657
658// Gets the format that the data will be downloaded in.
659func (x *TextureDownloader) GetFormat() MemoryFormat {
660
661	cret := xTextureDownloaderGetFormat(x.GoPointer())
662	return cret
663}
664
665var xTextureDownloaderGetTexture func(uintptr) uintptr
666
667// Gets the texture that the downloader will download.
668func (x *TextureDownloader) GetTexture() *Texture {
669	var cls *Texture
670
671	cret := xTextureDownloaderGetTexture(x.GoPointer())
672
673	if cret == 0 {
674		return nil
675	}
676	gobject.IncreaseRef(cret)
677	cls = &Texture{}
678	cls.Ptr = cret
679	return cls
680}
681
682var xTextureDownloaderSetColorState func(uintptr, *ColorState)
683
684// Sets the color state the downloader will convert the data to.
685//
686// By default, the sRGB colorstate returned by [func@ColorState.get_srgb]
687// is used.
688func (x *TextureDownloader) SetColorState(ColorStateVar *ColorState) {
689
690	xTextureDownloaderSetColorState(x.GoPointer(), ColorStateVar)
691
692}
693
694var xTextureDownloaderSetFormat func(uintptr, MemoryFormat)
695
696// Sets the format the downloader will download.
697//
698// By default, GDK_MEMORY_DEFAULT is set.
699func (x *TextureDownloader) SetFormat(FormatVar MemoryFormat) {
700
701	xTextureDownloaderSetFormat(x.GoPointer(), FormatVar)
702
703}
704
705var xTextureDownloaderSetTexture func(uintptr, uintptr)
706
707// Changes the texture the downloader will download.
708func (x *TextureDownloader) SetTexture(TextureVar *Texture) {
709
710	xTextureDownloaderSetTexture(x.GoPointer(), TextureVar.GoPointer())
711
712}
713
714const (
715	// Represents the current time, and can be used anywhere a time is expected.
716	CURRENT_TIME int = 0
717)
718
719func init() {
720	core.SetPackageName("GDK", "gtk4")
721	core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1"})
722	var libs []uintptr
723	for _, libPath := range core.GetPaths("GDK") {
724		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
725		if err != nil {
726			panic(err)
727		}
728		libs = append(libs, lib)
729	}
730
731	core.PuregoSafeRegister(&xColorStateGLibType, libs, "gdk_color_state_get_type")
732
733	core.PuregoSafeRegister(&xColorStateCreateCicpParams, libs, "gdk_color_state_create_cicp_params")
734	core.PuregoSafeRegister(&xColorStateEqual, libs, "gdk_color_state_equal")
735	core.PuregoSafeRegister(&xColorStateEquivalent, libs, "gdk_color_state_equivalent")
736	core.PuregoSafeRegister(&xColorStateRef, libs, "gdk_color_state_ref")
737	core.PuregoSafeRegister(&xColorStateUnref, libs, "gdk_color_state_unref")
738
739	core.PuregoSafeRegister(&xContentFormatsGLibType, libs, "gdk_content_formats_get_type")
740
741	core.PuregoSafeRegister(&xNewContentFormats, libs, "gdk_content_formats_new")
742	core.PuregoSafeRegister(&xNewContentFormatsForGtype, libs, "gdk_content_formats_new_for_gtype")
743
744	core.PuregoSafeRegister(&xContentFormatsContainGtype, libs, "gdk_content_formats_contain_gtype")
745	core.PuregoSafeRegister(&xContentFormatsContainMimeType, libs, "gdk_content_formats_contain_mime_type")
746	core.PuregoSafeRegister(&xContentFormatsGetGtypes, libs, "gdk_content_formats_get_gtypes")
747	core.PuregoSafeRegister(&xContentFormatsGetMimeTypes, libs, "gdk_content_formats_get_mime_types")
748	core.PuregoSafeRegister(&xContentFormatsIsEmpty, libs, "gdk_content_formats_is_empty")
749	core.PuregoSafeRegister(&xContentFormatsMatch, libs, "gdk_content_formats_match")
750	core.PuregoSafeRegister(&xContentFormatsMatchGtype, libs, "gdk_content_formats_match_gtype")
751	core.PuregoSafeRegister(&xContentFormatsMatchMimeType, libs, "gdk_content_formats_match_mime_type")
752	core.PuregoSafeRegister(&xContentFormatsPrint, libs, "gdk_content_formats_print")
753	core.PuregoSafeRegister(&xContentFormatsRef, libs, "gdk_content_formats_ref")
754	core.PuregoSafeRegister(&xContentFormatsToString, libs, "gdk_content_formats_to_string")
755	core.PuregoSafeRegister(&xContentFormatsUnion, libs, "gdk_content_formats_union")
756	core.PuregoSafeRegister(&xContentFormatsUnionDeserializeGtypes, libs, "gdk_content_formats_union_deserialize_gtypes")
757	core.PuregoSafeRegister(&xContentFormatsUnionDeserializeMimeTypes, libs, "gdk_content_formats_union_deserialize_mime_types")
758	core.PuregoSafeRegister(&xContentFormatsUnionSerializeGtypes, libs, "gdk_content_formats_union_serialize_gtypes")
759	core.PuregoSafeRegister(&xContentFormatsUnionSerializeMimeTypes, libs, "gdk_content_formats_union_serialize_mime_types")
760	core.PuregoSafeRegister(&xContentFormatsUnref, libs, "gdk_content_formats_unref")
761
762	core.PuregoSafeRegister(&xDmabufFormatsGLibType, libs, "gdk_dmabuf_formats_get_type")
763
764	core.PuregoSafeRegister(&xDmabufFormatsContains, libs, "gdk_dmabuf_formats_contains")
765	core.PuregoSafeRegister(&xDmabufFormatsEqual, libs, "gdk_dmabuf_formats_equal")
766	core.PuregoSafeRegister(&xDmabufFormatsGetFormat, libs, "gdk_dmabuf_formats_get_format")
767	core.PuregoSafeRegister(&xDmabufFormatsGetNFormats, libs, "gdk_dmabuf_formats_get_n_formats")
768	core.PuregoSafeRegister(&xDmabufFormatsRef, libs, "gdk_dmabuf_formats_ref")
769	core.PuregoSafeRegister(&xDmabufFormatsUnref, libs, "gdk_dmabuf_formats_unref")
770
771	core.PuregoSafeRegister(&xRectangleGLibType, libs, "gdk_rectangle_get_type")
772
773	core.PuregoSafeRegister(&xRectangleContainsPoint, libs, "gdk_rectangle_contains_point")
774	core.PuregoSafeRegister(&xRectangleEqual, libs, "gdk_rectangle_equal")
775	core.PuregoSafeRegister(&xRectangleIntersect, libs, "gdk_rectangle_intersect")
776	core.PuregoSafeRegister(&xRectangleUnion, libs, "gdk_rectangle_union")
777
778	core.PuregoSafeRegister(&xTextureDownloaderGLibType, libs, "gdk_texture_downloader_get_type")
779
780	core.PuregoSafeRegister(&xNewTextureDownloader, libs, "gdk_texture_downloader_new")
781
782	core.PuregoSafeRegister(&xTextureDownloaderCopy, libs, "gdk_texture_downloader_copy")
783	core.PuregoSafeRegister(&xTextureDownloaderDownloadBytes, libs, "gdk_texture_downloader_download_bytes")
784	core.PuregoSafeRegister(&xTextureDownloaderDownloadBytesWithPlanes, libs, "gdk_texture_downloader_download_bytes_with_planes")
785	core.PuregoSafeRegister(&xTextureDownloaderDownloadInto, libs, "gdk_texture_downloader_download_into")
786	core.PuregoSafeRegister(&xTextureDownloaderFree, libs, "gdk_texture_downloader_free")
787	core.PuregoSafeRegister(&xTextureDownloaderGetColorState, libs, "gdk_texture_downloader_get_color_state")
788	core.PuregoSafeRegister(&xTextureDownloaderGetFormat, libs, "gdk_texture_downloader_get_format")
789	core.PuregoSafeRegister(&xTextureDownloaderGetTexture, libs, "gdk_texture_downloader_get_texture")
790	core.PuregoSafeRegister(&xTextureDownloaderSetColorState, libs, "gdk_texture_downloader_set_color_state")
791	core.PuregoSafeRegister(&xTextureDownloaderSetFormat, libs, "gdk_texture_downloader_set_format")
792	core.PuregoSafeRegister(&xTextureDownloaderSetTexture, libs, "gdk_texture_downloader_set_texture")
793
794}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 102

↑↓ moveenter openesc close