v0.2.1 c0399be

gskvulkanrenderer.go RawHistoryFolder

1// Package gsk was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gsk
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/gobject/types"
12)
13
14type VulkanRendererClass struct {
15	_ structs.HostLayout
16}
17
18func (x *VulkanRendererClass) GoPointer() uintptr {
19	return uintptr(unsafe.Pointer(x))
20}
21
22// Renders a GSK rendernode tree with Vulkan.
23//
24// This renderer will fail to realize if Vulkan is not supported.
25type VulkanRenderer struct {
26	Renderer
27}
28
29var xVulkanRendererGLibType func() types.GType
30
31func VulkanRendererGLibType() types.GType {
32	return xVulkanRendererGLibType()
33}
34
35func VulkanRendererNewFromInternalPtr(ptr uintptr) *VulkanRenderer {
36	cls := &VulkanRenderer{}
37	cls.Ptr = ptr
38	return cls
39}
40
41var xNewVulkanRenderer func() uintptr
42
43// Creates a new Vulkan renderer.
44//
45// The Vulkan renderer is a renderer that uses the Vulkan library for
46// rendering.
47//
48// This renderer will fail to realize when GTK was not compiled with
49// Vulkan support.
50func NewVulkanRenderer() *VulkanRenderer {
51	var cls *VulkanRenderer
52
53	cret := xNewVulkanRenderer()
54
55	if cret == 0 {
56		return nil
57	}
58	cls = &VulkanRenderer{}
59	cls.Ptr = cret
60	return cls
61}
62
63func (c *VulkanRenderer) GoPointer() uintptr {
64	if c == nil {
65		return 0
66	}
67	return c.Ptr
68}
69
70func (c *VulkanRenderer) SetGoPointer(ptr uintptr) {
71	c.Ptr = ptr
72}
73
74func init() {
75	core.SetPackageName("GSK", "gtk4")
76	core.SetSharedLibraries("GSK", []string{"libgtk-4.so.1"})
77	var libs []uintptr
78	for _, libPath := range core.GetPaths("GSK") {
79		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
80		if err != nil {
81			panic(err)
82		}
83		libs = append(libs, lib)
84	}
85
86	core.PuregoSafeRegister(&xVulkanRendererGLibType, libs, "gsk_vulkan_renderer_get_type")
87
88	core.PuregoSafeRegister(&xNewVulkanRenderer, libs, "gsk_vulkan_renderer_new")
89
90}

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