v0.2.2 9100209

gdkkeys.go RawHistoryFolder

1// Package gdk was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gdk
3
4import (
5	"github.com/ebitengine/purego"
6
7	"github.com/bnema/puregotk/pkg/core"
8)
9
10var xKeyvalConvertCase func(uint, *uint, *uint)
11
12// Obtains the upper- and lower-case versions of the keyval @symbol.
13//
14// Examples of keyvals are `GDK_KEY_a`, `GDK_KEY_Enter`, `GDK_KEY_F1`, etc.
15func KeyvalConvertCase(SymbolVar uint, LowerVar *uint, UpperVar *uint) {
16
17	xKeyvalConvertCase(SymbolVar, LowerVar, UpperVar)
18
19}
20
21var xKeyvalFromName func(string) uint
22
23// Converts a key name to a key value.
24//
25// The names are the same as those in the
26// `gdk/gdkkeysyms.h` header file
27// but without the leading “GDK_KEY_”.
28func KeyvalFromName(KeyvalNameVar string) uint {
29
30	cret := xKeyvalFromName(KeyvalNameVar)
31	return cret
32}
33
34var xKeyvalIsLower func(uint) bool
35
36// Returns true if the given key value is in lower case.
37func KeyvalIsLower(KeyvalVar uint) bool {
38
39	cret := xKeyvalIsLower(KeyvalVar)
40	return cret
41}
42
43var xKeyvalIsUpper func(uint) bool
44
45// Returns true if the given key value is in upper case.
46func KeyvalIsUpper(KeyvalVar uint) bool {
47
48	cret := xKeyvalIsUpper(KeyvalVar)
49	return cret
50}
51
52var xKeyvalName func(uint) string
53
54// Converts a key value into a symbolic name.
55//
56// The names are the same as those in the
57// `gdk/gdkkeysyms.h` header file
58// but without the leading “GDK_KEY_”.
59func KeyvalName(KeyvalVar uint) string {
60
61	cret := xKeyvalName(KeyvalVar)
62	return cret
63}
64
65var xKeyvalToLower func(uint) uint
66
67// Converts a key value to lower case, if applicable.
68func KeyvalToLower(KeyvalVar uint) uint {
69
70	cret := xKeyvalToLower(KeyvalVar)
71	return cret
72}
73
74var xKeyvalToUnicode func(uint) uint32
75
76// Converts from a GDK key symbol to the corresponding Unicode
77// character.
78//
79// Note that the conversion does not take the current locale
80// into consideration, which might be expected for particular
81// keyvals, such as `GDK_KEY_KP_Decimal`.
82func KeyvalToUnicode(KeyvalVar uint) uint32 {
83
84	cret := xKeyvalToUnicode(KeyvalVar)
85	return cret
86}
87
88var xKeyvalToUpper func(uint) uint
89
90// Converts a key value to upper case, if applicable.
91func KeyvalToUpper(KeyvalVar uint) uint {
92
93	cret := xKeyvalToUpper(KeyvalVar)
94	return cret
95}
96
97var xUnicodeToKeyval func(uint32) uint
98
99// Converts from a Unicode character to a key symbol.
100func UnicodeToKeyval(WcVar uint32) uint {
101
102	cret := xUnicodeToKeyval(WcVar)
103	return cret
104}
105
106func init() {
107	core.SetPackageName("GDK", "gtk4")
108	core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1"})
109	var libs []uintptr
110	for _, libPath := range core.GetPaths("GDK") {
111		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
112		if err != nil {
113			panic(err)
114		}
115		libs = append(libs, lib)
116	}
117
118	core.PuregoSafeRegister(&xKeyvalConvertCase, libs, "gdk_keyval_convert_case")
119	core.PuregoSafeRegister(&xKeyvalFromName, libs, "gdk_keyval_from_name")
120	core.PuregoSafeRegister(&xKeyvalIsLower, libs, "gdk_keyval_is_lower")
121	core.PuregoSafeRegister(&xKeyvalIsUpper, libs, "gdk_keyval_is_upper")
122	core.PuregoSafeRegister(&xKeyvalName, libs, "gdk_keyval_name")
123	core.PuregoSafeRegister(&xKeyvalToLower, libs, "gdk_keyval_to_lower")
124	core.PuregoSafeRegister(&xKeyvalToUnicode, libs, "gdk_keyval_to_unicode")
125	core.PuregoSafeRegister(&xKeyvalToUpper, libs, "gdk_keyval_to_upper")
126	core.PuregoSafeRegister(&xUnicodeToKeyval, libs, "gdk_unicode_to_keyval")
127
128}

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