v0.2.2 9100209

gdkdmabuftexturebuilder.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/cairo"
12	"github.com/bnema/puregotk/v4/glib"
13	"github.com/bnema/puregotk/v4/gobject"
14	"github.com/bnema/puregotk/v4/gobject/types"
15)
16
17type DmabufTextureBuilderClass struct {
18	_ structs.HostLayout
19}
20
21func (x *DmabufTextureBuilderClass) GoPointer() uintptr {
22	return uintptr(unsafe.Pointer(x))
23}
24
25// Constructs [class@Gdk.Texture] objects from DMA buffers.
26//
27// DMA buffers are commonly called **_dma-bufs_**.
28//
29// DMA buffers are a feature of the Linux kernel to enable efficient buffer and
30// memory sharing between hardware such as codecs, GPUs, displays, cameras and the
31// kernel drivers controlling them. For example, a decoder may want its output to
32// be directly shared with the display server for rendering without a copy.
33//
34// Any device driver which participates in DMA buffer sharing, can do so as either
35// the exporter or importer of buffers (or both).
36//
37// The memory that is shared via DMA buffers is usually stored in non-system memory
38// (maybe in device's local memory or something else not directly accessible by the
39// CPU), and accessing this memory from the CPU may have higher-than-usual overhead.
40//
41// In particular for graphics data, it is not uncommon that data consists of multiple
42// separate blocks of memory, for example one block for each of the red, green and
43// blue channels. These blocks are called **_planes_**. DMA buffers can have up to
44// four planes. Even if the memory is a single block, the data can be organized in
45// multiple planes, by specifying offsets from the beginning of the data.
46//
47// DMA buffers are exposed to user-space as file descriptors allowing to pass them
48// between processes. If a DMA buffer has multiple planes, there is one file
49// descriptor per plane.
50//
51// The format of the data (for graphics data, essentially its colorspace) is described
52// by a 32-bit integer. These format identifiers are defined in the header file `drm_fourcc.h`
53// and commonly referred to as **_fourcc_** values, since they are identified by 4 ASCII
54// characters. Additionally, each DMA buffer has a **_modifier_**, which is a 64-bit integer
55// that describes driver-specific details of the memory layout, such as tiling or compression.
56//
57// For historical reasons, some producers of dma-bufs don't provide an explicit modifier, but
58// instead return `DMA_FORMAT_MOD_INVALID` to indicate that their modifier is **_implicit_**.
59// GTK tries to accommodate this situation by accepting `DMA_FORMAT_MOD_INVALID` as modifier.
60//
61// The operation of `GdkDmabufTextureBuilder` is quite simple: Create a texture builder,
62// set all the necessary properties, and then call [method@Gdk.DmabufTextureBuilder.build]
63// to create the new texture.
64//
65// The required properties for a dma-buf texture are
66//
67//   - The width and height in pixels
68//
69//   - The `fourcc` code and `modifier` which identify the format and memory layout of the dma-buf
70//
71//   - The file descriptor, offset and stride for each of the planes
72//
73// `GdkDmabufTextureBuilder` can be used for quick one-shot construction of
74// textures as well as kept around and reused to construct multiple textures.
75//
76// # For further information, see
77//
78// * The Linux kernel [documentation](https://docs.kernel.org/driver-api/dma-buf.html)
79//
80// * The header file [drm_fourcc.h](https://gitlab.freedesktop.org/mesa/drm/-/blob/main/include/drm/drm_fourcc.h)
81type DmabufTextureBuilder struct {
82	gobject.Object
83}
84
85var xDmabufTextureBuilderGLibType func() types.GType
86
87func DmabufTextureBuilderGLibType() types.GType {
88	return xDmabufTextureBuilderGLibType()
89}
90
91func DmabufTextureBuilderNewFromInternalPtr(ptr uintptr) *DmabufTextureBuilder {
92	cls := &DmabufTextureBuilder{}
93	cls.Ptr = ptr
94	return cls
95}
96
97var xNewDmabufTextureBuilder func() uintptr
98
99// Creates a new texture builder.
100func NewDmabufTextureBuilder() *DmabufTextureBuilder {
101	var cls *DmabufTextureBuilder
102
103	cret := xNewDmabufTextureBuilder()
104
105	if cret == 0 {
106		return nil
107	}
108	cls = &DmabufTextureBuilder{}
109	cls.Ptr = cret
110	return cls
111}
112
113var xDmabufTextureBuilderBuild func(uintptr, uintptr, uintptr, **glib.Error) uintptr
114
115// Builds a new `GdkTexture` with the values set up in the builder.
116//
117// It is a programming error to call this function if any mandatory property has not been set.
118//
119// Not all formats defined in the `drm_fourcc.h` header are supported. You can use
120// [method@Gdk.Display.get_dmabuf_formats] to get a list of supported formats. If the
121// format is not supported by GTK, %NULL will be returned and @error will be set.
122//
123// The `destroy` function gets called when the returned texture gets released.
124//
125// It is the responsibility of the caller to keep the file descriptors for the planes
126// open until the created texture is no longer used, and close them afterwards (possibly
127// using the @destroy notify).
128//
129// It is possible to call this function multiple times to create multiple textures,
130// possibly with changing properties in between.
131func (x *DmabufTextureBuilder) Build(DestroyVar *glib.DestroyNotify, DataVar uintptr) (*Texture, error) {
132	var cls *Texture
133	var cerr *glib.Error
134
135	var DestroyVarRef uintptr
136	if DestroyVar != nil {
137		DestroyVarPtr := uintptr(unsafe.Pointer(DestroyVar))
138		if cbRefPtr, ok := glib.GetCallback(DestroyVarPtr); ok {
139			DestroyVarRef = cbRefPtr
140		} else {
141			fcb := func(arg0 uintptr) {
142				cbFn := *DestroyVar
143				cbFn(arg0)
144			}
145			DestroyVarRef = purego.NewCallback(fcb)
146			glib.SaveCallbackWithClosure(DestroyVarPtr, DestroyVarRef, DestroyVar)
147		}
148	}
149
150	cret := xDmabufTextureBuilderBuild(x.GoPointer(), DestroyVarRef, DataVar, &cerr)
151
152	if cret == 0 {
153		return nil, cerr
154	}
155	cls = &Texture{}
156	cls.Ptr = cret
157	if cerr == nil {
158		return cls, nil
159	}
160	return cls, cerr
161
162}
163
164var xDmabufTextureBuilderGetColorState func(uintptr) *ColorState
165
166// Gets the color state previously set via gdk_dmabuf_texture_builder_set_color_state().
167func (x *DmabufTextureBuilder) GetColorState() *ColorState {
168
169	cret := xDmabufTextureBuilderGetColorState(x.GoPointer())
170	return cret
171}
172
173var xDmabufTextureBuilderGetDisplay func(uintptr) uintptr
174
175// Returns the display that this texture builder is
176// associated with.
177func (x *DmabufTextureBuilder) GetDisplay() *Display {
178	var cls *Display
179
180	cret := xDmabufTextureBuilderGetDisplay(x.GoPointer())
181
182	if cret == 0 {
183		return nil
184	}
185	gobject.IncreaseRef(cret)
186	cls = &Display{}
187	cls.Ptr = cret
188	return cls
189}
190
191var xDmabufTextureBuilderGetFd func(uintptr, uint) int
192
193// Gets the file descriptor for a plane.
194func (x *DmabufTextureBuilder) GetFd(PlaneVar uint) int {
195
196	cret := xDmabufTextureBuilderGetFd(x.GoPointer(), PlaneVar)
197	return cret
198}
199
200var xDmabufTextureBuilderGetFourcc func(uintptr) uint32
201
202// Gets the format previously set via gdk_dmabuf_texture_builder_set_fourcc()
203// or 0 if the format wasn't set.
204//
205// The format is specified as a fourcc code.
206func (x *DmabufTextureBuilder) GetFourcc() uint32 {
207
208	cret := xDmabufTextureBuilderGetFourcc(x.GoPointer())
209	return cret
210}
211
212var xDmabufTextureBuilderGetHeight func(uintptr) uint
213
214// Gets the height previously set via gdk_dmabuf_texture_builder_set_height() or
215// 0 if the height wasn't set.
216func (x *DmabufTextureBuilder) GetHeight() uint {
217
218	cret := xDmabufTextureBuilderGetHeight(x.GoPointer())
219	return cret
220}
221
222var xDmabufTextureBuilderGetModifier func(uintptr) uint64
223
224// Gets the modifier value.
225func (x *DmabufTextureBuilder) GetModifier() uint64 {
226
227	cret := xDmabufTextureBuilderGetModifier(x.GoPointer())
228	return cret
229}
230
231var xDmabufTextureBuilderGetNPlanes func(uintptr) uint
232
233// Gets the number of planes.
234func (x *DmabufTextureBuilder) GetNPlanes() uint {
235
236	cret := xDmabufTextureBuilderGetNPlanes(x.GoPointer())
237	return cret
238}
239
240var xDmabufTextureBuilderGetOffset func(uintptr, uint) uint
241
242// Gets the offset value for a plane.
243func (x *DmabufTextureBuilder) GetOffset(PlaneVar uint) uint {
244
245	cret := xDmabufTextureBuilderGetOffset(x.GoPointer(), PlaneVar)
246	return cret
247}
248
249var xDmabufTextureBuilderGetPremultiplied func(uintptr) bool
250
251// Whether the data is premultiplied.
252func (x *DmabufTextureBuilder) GetPremultiplied() bool {
253
254	cret := xDmabufTextureBuilderGetPremultiplied(x.GoPointer())
255	return cret
256}
257
258var xDmabufTextureBuilderGetStride func(uintptr, uint) uint
259
260// Gets the stride value for a plane.
261func (x *DmabufTextureBuilder) GetStride(PlaneVar uint) uint {
262
263	cret := xDmabufTextureBuilderGetStride(x.GoPointer(), PlaneVar)
264	return cret
265}
266
267var xDmabufTextureBuilderGetUpdateRegion func(uintptr) *cairo.Region
268
269// Gets the region previously set via gdk_dmabuf_texture_builder_set_update_region() or
270// %NULL if none was set.
271func (x *DmabufTextureBuilder) GetUpdateRegion() *cairo.Region {
272
273	cret := xDmabufTextureBuilderGetUpdateRegion(x.GoPointer())
274	return cret
275}
276
277var xDmabufTextureBuilderGetUpdateTexture func(uintptr) uintptr
278
279// Gets the texture previously set via gdk_dmabuf_texture_builder_set_update_texture() or
280// %NULL if none was set.
281func (x *DmabufTextureBuilder) GetUpdateTexture() *Texture {
282	var cls *Texture
283
284	cret := xDmabufTextureBuilderGetUpdateTexture(x.GoPointer())
285
286	if cret == 0 {
287		return nil
288	}
289	gobject.IncreaseRef(cret)
290	cls = &Texture{}
291	cls.Ptr = cret
292	return cls
293}
294
295var xDmabufTextureBuilderGetWidth func(uintptr) uint
296
297// Gets the width previously set via gdk_dmabuf_texture_builder_set_width() or
298// 0 if the width wasn't set.
299func (x *DmabufTextureBuilder) GetWidth() uint {
300
301	cret := xDmabufTextureBuilderGetWidth(x.GoPointer())
302	return cret
303}
304
305var xDmabufTextureBuilderSetColorState func(uintptr, *ColorState)
306
307// Sets the color state for the texture.
308//
309// By default, the colorstate is `NULL`. In that case, GTK will choose the
310// correct colorstate based on the format.
311// If you don't know what colorstates are, this is probably the right thing.
312func (x *DmabufTextureBuilder) SetColorState(ColorStateVar *ColorState) {
313
314	xDmabufTextureBuilderSetColorState(x.GoPointer(), ColorStateVar)
315
316}
317
318var xDmabufTextureBuilderSetDisplay func(uintptr, uintptr)
319
320// Sets the display that this texture builder is
321// associated with.
322//
323// The display is used to determine the supported
324// dma-buf formats.
325func (x *DmabufTextureBuilder) SetDisplay(DisplayVar *Display) {
326
327	xDmabufTextureBuilderSetDisplay(x.GoPointer(), DisplayVar.GoPointer())
328
329}
330
331var xDmabufTextureBuilderSetFd func(uintptr, uint, int)
332
333// Sets the file descriptor for a plane.
334func (x *DmabufTextureBuilder) SetFd(PlaneVar uint, FdVar int) {
335
336	xDmabufTextureBuilderSetFd(x.GoPointer(), PlaneVar, FdVar)
337
338}
339
340var xDmabufTextureBuilderSetFourcc func(uintptr, uint32)
341
342// Sets the format of the texture.
343//
344// The format is specified as a fourcc code.
345//
346// The format must be set before calling [method@Gdk.DmabufTextureBuilder.build].
347func (x *DmabufTextureBuilder) SetFourcc(FourccVar uint32) {
348
349	xDmabufTextureBuilderSetFourcc(x.GoPointer(), FourccVar)
350
351}
352
353var xDmabufTextureBuilderSetHeight func(uintptr, uint)
354
355// Sets the height of the texture.
356//
357// The height must be set before calling [method@Gdk.DmabufTextureBuilder.build].
358func (x *DmabufTextureBuilder) SetHeight(HeightVar uint) {
359
360	xDmabufTextureBuilderSetHeight(x.GoPointer(), HeightVar)
361
362}
363
364var xDmabufTextureBuilderSetModifier func(uintptr, uint64)
365
366// Sets the modifier.
367func (x *DmabufTextureBuilder) SetModifier(ModifierVar uint64) {
368
369	xDmabufTextureBuilderSetModifier(x.GoPointer(), ModifierVar)
370
371}
372
373var xDmabufTextureBuilderSetNPlanes func(uintptr, uint)
374
375// Sets the number of planes of the texture.
376func (x *DmabufTextureBuilder) SetNPlanes(NPlanesVar uint) {
377
378	xDmabufTextureBuilderSetNPlanes(x.GoPointer(), NPlanesVar)
379
380}
381
382var xDmabufTextureBuilderSetOffset func(uintptr, uint, uint)
383
384// Sets the offset for a plane.
385func (x *DmabufTextureBuilder) SetOffset(PlaneVar uint, OffsetVar uint) {
386
387	xDmabufTextureBuilderSetOffset(x.GoPointer(), PlaneVar, OffsetVar)
388
389}
390
391var xDmabufTextureBuilderSetPremultiplied func(uintptr, bool)
392
393// Sets whether the data is premultiplied.
394//
395// Unless otherwise specified, all formats including alpha channels are assumed
396// to be premultiplied.
397func (x *DmabufTextureBuilder) SetPremultiplied(PremultipliedVar bool) {
398
399	xDmabufTextureBuilderSetPremultiplied(x.GoPointer(), PremultipliedVar)
400
401}
402
403var xDmabufTextureBuilderSetStride func(uintptr, uint, uint)
404
405// Sets the stride for a plane.
406//
407// The stride must be set for all planes before calling [method@Gdk.DmabufTextureBuilder.build].
408func (x *DmabufTextureBuilder) SetStride(PlaneVar uint, StrideVar uint) {
409
410	xDmabufTextureBuilderSetStride(x.GoPointer(), PlaneVar, StrideVar)
411
412}
413
414var xDmabufTextureBuilderSetUpdateRegion func(uintptr, *cairo.Region)
415
416// Sets the region to be updated by this texture. Together with
417// [property@Gdk.DmabufTextureBuilder:update-texture] this describes an
418// update of a previous texture.
419//
420// When rendering animations of large textures, it is possible that
421// consecutive textures are only updating contents in parts of the texture.
422// It is then possible to describe this update via these two properties,
423// so that GTK can avoid rerendering parts that did not change.
424//
425// An example would be a screen recording where only the mouse pointer moves.
426func (x *DmabufTextureBuilder) SetUpdateRegion(RegionVar *cairo.Region) {
427
428	xDmabufTextureBuilderSetUpdateRegion(x.GoPointer(), RegionVar)
429
430}
431
432var xDmabufTextureBuilderSetUpdateTexture func(uintptr, uintptr)
433
434// Sets the texture to be updated by this texture. See
435// [method@Gdk.DmabufTextureBuilder.set_update_region] for an explanation.
436func (x *DmabufTextureBuilder) SetUpdateTexture(TextureVar *Texture) {
437
438	xDmabufTextureBuilderSetUpdateTexture(x.GoPointer(), TextureVar.GoPointer())
439
440}
441
442var xDmabufTextureBuilderSetWidth func(uintptr, uint)
443
444// Sets the width of the texture.
445//
446// The width must be set before calling [method@Gdk.DmabufTextureBuilder.build].
447func (x *DmabufTextureBuilder) SetWidth(WidthVar uint) {
448
449	xDmabufTextureBuilderSetWidth(x.GoPointer(), WidthVar)
450
451}
452
453func (c *DmabufTextureBuilder) GoPointer() uintptr {
454	if c == nil {
455		return 0
456	}
457	return c.Ptr
458}
459
460func (c *DmabufTextureBuilder) SetGoPointer(ptr uintptr) {
461	c.Ptr = ptr
462}
463
464// SetPropertyColorState sets the "color-state" property.
465// The color state of the texture.
466func (x *DmabufTextureBuilder) SetPropertyColorState(value uintptr) {
467	var v gobject.Value
468	v.Init(gobject.TypePointerVal)
469	v.SetPointer(value)
470	x.SetProperty("color-state", &v)
471}
472
473// GetPropertyColorState gets the "color-state" property.
474// The color state of the texture.
475func (x *DmabufTextureBuilder) GetPropertyColorState() uintptr {
476	var v gobject.Value
477	x.GetProperty("color-state", &v)
478	return v.GetPointer()
479}
480
481// SetPropertyFourcc sets the "fourcc" property.
482// The format of the texture, as a fourcc value.
483func (x *DmabufTextureBuilder) SetPropertyFourcc(value uint) {
484	var v gobject.Value
485	v.Init(gobject.TypeUintVal)
486	v.SetUint(value)
487	x.SetProperty("fourcc", &v)
488}
489
490// GetPropertyFourcc gets the "fourcc" property.
491// The format of the texture, as a fourcc value.
492func (x *DmabufTextureBuilder) GetPropertyFourcc() uint {
493	var v gobject.Value
494	x.GetProperty("fourcc", &v)
495	return v.GetUint()
496}
497
498// SetPropertyHeight sets the "height" property.
499// The height of the texture.
500func (x *DmabufTextureBuilder) SetPropertyHeight(value uint) {
501	var v gobject.Value
502	v.Init(gobject.TypeUintVal)
503	v.SetUint(value)
504	x.SetProperty("height", &v)
505}
506
507// GetPropertyHeight gets the "height" property.
508// The height of the texture.
509func (x *DmabufTextureBuilder) GetPropertyHeight() uint {
510	var v gobject.Value
511	x.GetProperty("height", &v)
512	return v.GetUint()
513}
514
515// SetPropertyModifier sets the "modifier" property.
516// The modifier.
517func (x *DmabufTextureBuilder) SetPropertyModifier(value uint64) {
518	var v gobject.Value
519	v.Init(gobject.TypeUint64Val)
520	v.SetUint64(value)
521	x.SetProperty("modifier", &v)
522}
523
524// GetPropertyModifier gets the "modifier" property.
525// The modifier.
526func (x *DmabufTextureBuilder) GetPropertyModifier() uint64 {
527	var v gobject.Value
528	x.GetProperty("modifier", &v)
529	return v.GetUint64()
530}
531
532// SetPropertyNPlanes sets the "n-planes" property.
533// The number of planes of the texture.
534//
535// Note that you can set properties for other planes,
536// but they will be ignored when constructing the texture.
537func (x *DmabufTextureBuilder) SetPropertyNPlanes(value uint) {
538	var v gobject.Value
539	v.Init(gobject.TypeUintVal)
540	v.SetUint(value)
541	x.SetProperty("n-planes", &v)
542}
543
544// GetPropertyNPlanes gets the "n-planes" property.
545// The number of planes of the texture.
546//
547// Note that you can set properties for other planes,
548// but they will be ignored when constructing the texture.
549func (x *DmabufTextureBuilder) GetPropertyNPlanes() uint {
550	var v gobject.Value
551	x.GetProperty("n-planes", &v)
552	return v.GetUint()
553}
554
555// SetPropertyPremultiplied sets the "premultiplied" property.
556// Whether the alpha channel is premultiplied into the others.
557//
558// Only relevant if the format has alpha.
559func (x *DmabufTextureBuilder) SetPropertyPremultiplied(value bool) {
560	var v gobject.Value
561	v.Init(gobject.TypeBooleanVal)
562	v.SetBoolean(value)
563	x.SetProperty("premultiplied", &v)
564}
565
566// GetPropertyPremultiplied gets the "premultiplied" property.
567// Whether the alpha channel is premultiplied into the others.
568//
569// Only relevant if the format has alpha.
570func (x *DmabufTextureBuilder) GetPropertyPremultiplied() bool {
571	var v gobject.Value
572	x.GetProperty("premultiplied", &v)
573	return v.GetBoolean()
574}
575
576// SetPropertyUpdateRegion sets the "update-region" property.
577// The update region for [property@Gdk.DmabufTextureBuilder:update-texture].
578func (x *DmabufTextureBuilder) SetPropertyUpdateRegion(value uintptr) {
579	var v gobject.Value
580	v.Init(gobject.TypePointerVal)
581	v.SetPointer(value)
582	x.SetProperty("update-region", &v)
583}
584
585// GetPropertyUpdateRegion gets the "update-region" property.
586// The update region for [property@Gdk.DmabufTextureBuilder:update-texture].
587func (x *DmabufTextureBuilder) GetPropertyUpdateRegion() uintptr {
588	var v gobject.Value
589	x.GetProperty("update-region", &v)
590	return v.GetPointer()
591}
592
593// SetPropertyWidth sets the "width" property.
594// The width of the texture.
595func (x *DmabufTextureBuilder) SetPropertyWidth(value uint) {
596	var v gobject.Value
597	v.Init(gobject.TypeUintVal)
598	v.SetUint(value)
599	x.SetProperty("width", &v)
600}
601
602// GetPropertyWidth gets the "width" property.
603// The width of the texture.
604func (x *DmabufTextureBuilder) GetPropertyWidth() uint {
605	var v gobject.Value
606	x.GetProperty("width", &v)
607	return v.GetUint()
608}
609
610func init() {
611	core.SetPackageName("GDK", "gtk4")
612	core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1"})
613	var libs []uintptr
614	for _, libPath := range core.GetPaths("GDK") {
615		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
616		if err != nil {
617			panic(err)
618		}
619		libs = append(libs, lib)
620	}
621
622	core.PuregoSafeRegister(&xDmabufTextureBuilderGLibType, libs, "gdk_dmabuf_texture_builder_get_type")
623
624	core.PuregoSafeRegister(&xNewDmabufTextureBuilder, libs, "gdk_dmabuf_texture_builder_new")
625
626	core.PuregoSafeRegister(&xDmabufTextureBuilderBuild, libs, "gdk_dmabuf_texture_builder_build")
627	core.PuregoSafeRegister(&xDmabufTextureBuilderGetColorState, libs, "gdk_dmabuf_texture_builder_get_color_state")
628	core.PuregoSafeRegister(&xDmabufTextureBuilderGetDisplay, libs, "gdk_dmabuf_texture_builder_get_display")
629	core.PuregoSafeRegister(&xDmabufTextureBuilderGetFd, libs, "gdk_dmabuf_texture_builder_get_fd")
630	core.PuregoSafeRegister(&xDmabufTextureBuilderGetFourcc, libs, "gdk_dmabuf_texture_builder_get_fourcc")
631	core.PuregoSafeRegister(&xDmabufTextureBuilderGetHeight, libs, "gdk_dmabuf_texture_builder_get_height")
632	core.PuregoSafeRegister(&xDmabufTextureBuilderGetModifier, libs, "gdk_dmabuf_texture_builder_get_modifier")
633	core.PuregoSafeRegister(&xDmabufTextureBuilderGetNPlanes, libs, "gdk_dmabuf_texture_builder_get_n_planes")
634	core.PuregoSafeRegister(&xDmabufTextureBuilderGetOffset, libs, "gdk_dmabuf_texture_builder_get_offset")
635	core.PuregoSafeRegister(&xDmabufTextureBuilderGetPremultiplied, libs, "gdk_dmabuf_texture_builder_get_premultiplied")
636	core.PuregoSafeRegister(&xDmabufTextureBuilderGetStride, libs, "gdk_dmabuf_texture_builder_get_stride")
637	core.PuregoSafeRegister(&xDmabufTextureBuilderGetUpdateRegion, libs, "gdk_dmabuf_texture_builder_get_update_region")
638	core.PuregoSafeRegister(&xDmabufTextureBuilderGetUpdateTexture, libs, "gdk_dmabuf_texture_builder_get_update_texture")
639	core.PuregoSafeRegister(&xDmabufTextureBuilderGetWidth, libs, "gdk_dmabuf_texture_builder_get_width")
640	core.PuregoSafeRegister(&xDmabufTextureBuilderSetColorState, libs, "gdk_dmabuf_texture_builder_set_color_state")
641	core.PuregoSafeRegister(&xDmabufTextureBuilderSetDisplay, libs, "gdk_dmabuf_texture_builder_set_display")
642	core.PuregoSafeRegister(&xDmabufTextureBuilderSetFd, libs, "gdk_dmabuf_texture_builder_set_fd")
643	core.PuregoSafeRegister(&xDmabufTextureBuilderSetFourcc, libs, "gdk_dmabuf_texture_builder_set_fourcc")
644	core.PuregoSafeRegister(&xDmabufTextureBuilderSetHeight, libs, "gdk_dmabuf_texture_builder_set_height")
645	core.PuregoSafeRegister(&xDmabufTextureBuilderSetModifier, libs, "gdk_dmabuf_texture_builder_set_modifier")
646	core.PuregoSafeRegister(&xDmabufTextureBuilderSetNPlanes, libs, "gdk_dmabuf_texture_builder_set_n_planes")
647	core.PuregoSafeRegister(&xDmabufTextureBuilderSetOffset, libs, "gdk_dmabuf_texture_builder_set_offset")
648	core.PuregoSafeRegister(&xDmabufTextureBuilderSetPremultiplied, libs, "gdk_dmabuf_texture_builder_set_premultiplied")
649	core.PuregoSafeRegister(&xDmabufTextureBuilderSetStride, libs, "gdk_dmabuf_texture_builder_set_stride")
650	core.PuregoSafeRegister(&xDmabufTextureBuilderSetUpdateRegion, libs, "gdk_dmabuf_texture_builder_set_update_region")
651	core.PuregoSafeRegister(&xDmabufTextureBuilderSetUpdateTexture, libs, "gdk_dmabuf_texture_builder_set_update_texture")
652	core.PuregoSafeRegister(&xDmabufTextureBuilderSetWidth, libs, "gdk_dmabuf_texture_builder_set_width")
653
654}

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