v0.2.1 c0399be

main.go RawHistoryFolder

1// Package gsk was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gsk
3
4import (
5	"github.com/ebitengine/purego"
6
7	"github.com/bnema/puregotk/pkg/core"
8	"github.com/bnema/puregotk/v4/gobject"
9	"github.com/bnema/puregotk/v4/gobject/types"
10)
11
12type ComponentTransferNode struct {
13	RenderNode
14}
15
16var xComponentTransferNodeGLibType func() types.GType
17
18func ComponentTransferNodeGLibType() types.GType {
19	return xComponentTransferNodeGLibType()
20}
21
22func ComponentTransferNodeNewFromInternalPtr(ptr uintptr) *ComponentTransferNode {
23	cls := &ComponentTransferNode{}
24	cls.Ptr = ptr
25	return cls
26}
27
28var xNewComponentTransferNode func(uintptr, *ComponentTransfer, *ComponentTransfer, *ComponentTransfer, *ComponentTransfer) uintptr
29
30// Creates a render node that will apply component
31// transfers to a child node.
32func NewComponentTransferNode(ChildVar *RenderNode, RVar *ComponentTransfer, GVar *ComponentTransfer, BVar *ComponentTransfer, AVar *ComponentTransfer) *ComponentTransferNode {
33	var cls *ComponentTransferNode
34
35	cret := xNewComponentTransferNode(ChildVar.GoPointer(), RVar, GVar, BVar, AVar)
36
37	if cret == 0 {
38		return nil
39	}
40	cls = &ComponentTransferNode{}
41	cls.Ptr = cret
42	return cls
43}
44
45var xComponentTransferNodeGetChild func(uintptr) uintptr
46
47// Gets the child node that is getting drawn by the given @node.
48func (x *ComponentTransferNode) GetChild() *RenderNode {
49	var cls *RenderNode
50
51	cret := xComponentTransferNodeGetChild(x.GoPointer())
52
53	if cret == 0 {
54		return nil
55	}
56	gobject.IncreaseRef(cret)
57	cls = &RenderNode{}
58	cls.Ptr = cret
59	return cls
60}
61
62var xComponentTransferNodeGetTransfer func(uintptr, uint) *ComponentTransfer
63
64// Gets the component transfer for one of the components.
65func (x *ComponentTransferNode) GetTransfer(ComponentVar uint) *ComponentTransfer {
66
67	cret := xComponentTransferNodeGetTransfer(x.GoPointer(), ComponentVar)
68	return cret
69}
70
71func (c *ComponentTransferNode) GoPointer() uintptr {
72	if c == nil {
73		return 0
74	}
75	return c.Ptr
76}
77
78func (c *ComponentTransferNode) SetGoPointer(ptr uintptr) {
79	c.Ptr = ptr
80}
81
82func init() {
83	core.SetPackageName("GSK", "gtk4")
84	core.SetSharedLibraries("GSK", []string{"libgtk-4.so.1"})
85	var libs []uintptr
86	for _, libPath := range core.GetPaths("GSK") {
87		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
88		if err != nil {
89			panic(err)
90		}
91		libs = append(libs, lib)
92	}
93
94	core.PuregoSafeRegister(&xComponentTransferNodeGLibType, libs, "gsk_component_transfer_node_get_type")
95
96	core.PuregoSafeRegister(&xNewComponentTransferNode, libs, "gsk_component_transfer_node_new")
97
98	core.PuregoSafeRegister(&xComponentTransferNodeGetChild, libs, "gsk_component_transfer_node_get_child")
99	core.PuregoSafeRegister(&xComponentTransferNodeGetTransfer, libs, "gsk_component_transfer_node_get_transfer")
100
101}

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