v0.2.1 c0399be

gtkborder.go RawHistoryFolder

1// Package gtk was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gtk
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
14// Specifies a border around a rectangular area.
15//
16// Each side can have a different width.
17type Border struct {
18	_ structs.HostLayout
19
20	Left int16
21
22	Right int16
23
24	Top int16
25
26	Bottom int16
27}
28
29var xBorderGLibType func() types.GType
30
31func BorderGLibType() types.GType {
32	return xBorderGLibType()
33}
34
35func (x *Border) GoPointer() uintptr {
36	return uintptr(unsafe.Pointer(x))
37}
38
39var xNewBorder func() *Border
40
41// Allocates a new `GtkBorder` struct and initializes its elements to zero.
42func NewBorder() *Border {
43
44	cret := xNewBorder()
45	return cret
46}
47
48var xBorderCopy func(uintptr) *Border
49
50// Copies a `GtkBorder`.
51func (x *Border) Copy() *Border {
52
53	cret := xBorderCopy(x.GoPointer())
54	return cret
55}
56
57var xBorderFree func(uintptr)
58
59// Frees a `GtkBorder`.
60func (x *Border) Free() {
61
62	xBorderFree(x.GoPointer())
63
64}
65
66func init() {
67	core.SetPackageName("GTK", "gtk4")
68	core.SetSharedLibraries("GTK", []string{"libgtk-4.so.1"})
69	var libs []uintptr
70	for _, libPath := range core.GetPaths("GTK") {
71		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
72		if err != nil {
73			panic(err)
74		}
75		libs = append(libs, lib)
76	}
77
78	core.PuregoSafeRegister(&xBorderGLibType, libs, "gtk_border_get_type")
79
80	core.PuregoSafeRegister(&xNewBorder, libs, "gtk_border_new")
81
82	core.PuregoSafeRegister(&xBorderCopy, libs, "gtk_border_copy")
83	core.PuregoSafeRegister(&xBorderFree, libs, "gtk_border_free")
84
85}

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