v0.2.1 c0399be

gtkdebug.go RawHistoryFolder

1// Package gtk was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gtk
3
4import (
5	"github.com/ebitengine/purego"
6
7	"github.com/bnema/puregotk/pkg/core"
8	"github.com/bnema/puregotk/v4/gobject/types"
9)
10
11// Flags to use with gtk_set_debug_flags().
12//
13// Settings these flags causes GTK to print out different
14// types of debugging information. Some of these flags are
15// only available when GTK has been configured with `-Ddebug=true`.
16type DebugFlags int
17
18var xDebugFlagsGLibType func() types.GType
19
20func DebugFlagsGLibType() types.GType {
21	return xDebugFlagsGLibType()
22}
23
24const (
25
26	// Information about GtkTextView
27	DebugTextValue DebugFlags = 1
28	// Information about GtkTreeView
29	DebugTreeValue DebugFlags = 2
30	// Information about keyboard shortcuts
31	DebugKeybindingsValue DebugFlags = 4
32	// Information about modules and extensions
33	DebugModulesValue DebugFlags = 8
34	// Information about size allocation
35	DebugGeometryValue DebugFlags = 16
36	// Information about icon themes
37	DebugIconthemeValue DebugFlags = 32
38	// Information about printing
39	DebugPrintingValue DebugFlags = 64
40	// Trace GtkBuilder operation
41	DebugBuilderTraceValue DebugFlags = 128
42	// Information about size requests
43	DebugSizeRequestValue DebugFlags = 256
44	// Disable the style property cache
45	DebugNoCssCacheValue DebugFlags = 512
46	// Open the GTK inspector
47	DebugInteractiveValue DebugFlags = 1024
48	// Show touch UI elements for pointer events.
49	DebugTouchscreenValue DebugFlags = 2048
50	// Information about actions and menu models
51	DebugActionsValue DebugFlags = 4096
52	// Information from layout managers
53	DebugLayoutValue DebugFlags = 8192
54	// Include debug render nodes in the generated snapshots
55	DebugSnapshotValue DebugFlags = 16384
56	// Information from the constraints solver
57	DebugConstraintsValue DebugFlags = 32768
58	// Log unused GtkBuilder objects
59	DebugBuilderObjectsValue DebugFlags = 65536
60	// Information about accessibility state changes
61	DebugA11yValue DebugFlags = 131072
62	// Information about icon fallback.
63	DebugIconfallbackValue DebugFlags = 262144
64	// Inverts the default text-direction.
65	DebugInvertTextDirValue DebugFlags = 524288
66	// Information about deprecated CSS features.
67	DebugCssValue DebugFlags = 1048576
68	// Information about deprecated GtkBuilder features.
69	DebugBuilderValue DebugFlags = 2097152
70)
71
72var xGetDebugFlags func() DebugFlags
73
74// Returns the GTK debug flags that are currently active.
75//
76// This function is intended for GTK modules that want
77// to adjust their debug output based on GTK debug flags.
78func GetDebugFlags() DebugFlags {
79
80	cret := xGetDebugFlags()
81	return cret
82}
83
84var xSetDebugFlags func(DebugFlags)
85
86// Sets the GTK debug flags.
87func SetDebugFlags(FlagsVar DebugFlags) {
88
89	xSetDebugFlags(FlagsVar)
90
91}
92
93func init() {
94	core.SetPackageName("GTK", "gtk4")
95	core.SetSharedLibraries("GTK", []string{"libgtk-4.so.1"})
96	var libs []uintptr
97	for _, libPath := range core.GetPaths("GTK") {
98		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
99		if err != nil {
100			panic(err)
101		}
102		libs = append(libs, lib)
103	}
104
105	core.PuregoSafeRegister(&xDebugFlagsGLibType, libs, "gtk_debug_flags_get_type")
106
107	core.PuregoSafeRegister(&xGetDebugFlags, libs, "gtk_get_debug_flags")
108	core.PuregoSafeRegister(&xSetDebugFlags, libs, "gtk_set_debug_flags")
109
110}

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