v0.2.1 c0399be

gtktestatcontext.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)
9
10var xTestAccessibleAssertionMessageRole func(string, string, int, string, string, uintptr, AccessibleRole, AccessibleRole)
11
12// Prints an assertion message for gtk_test_accessible_assert_role().
13func TestAccessibleAssertionMessageRole(DomainVar string, FileVar string, LineVar int, FuncVar string, ExprVar string, AccessibleVar Accessible, ExpectedRoleVar AccessibleRole, ActualRoleVar AccessibleRole) {
14
15	xTestAccessibleAssertionMessageRole(DomainVar, FileVar, LineVar, FuncVar, ExprVar, AccessibleVar.GoPointer(), ExpectedRoleVar, ActualRoleVar)
16
17}
18
19var xTestAccessibleCheckProperty func(uintptr, AccessibleProperty, ...interface{}) string
20
21// Checks whether the accessible @property of @accessible is set to
22// a specific value.
23func TestAccessibleCheckProperty(AccessibleVar Accessible, PropertyVar AccessibleProperty, varArgs ...interface{}) string {
24
25	cret := xTestAccessibleCheckProperty(AccessibleVar.GoPointer(), PropertyVar, varArgs...)
26	return cret
27}
28
29var xTestAccessibleCheckRelation func(uintptr, AccessibleRelation, ...interface{}) string
30
31// Checks whether the accessible @relation of @accessible is set to
32// a specific value.
33func TestAccessibleCheckRelation(AccessibleVar Accessible, RelationVar AccessibleRelation, varArgs ...interface{}) string {
34
35	cret := xTestAccessibleCheckRelation(AccessibleVar.GoPointer(), RelationVar, varArgs...)
36	return cret
37}
38
39var xTestAccessibleCheckState func(uintptr, AccessibleState, ...interface{}) string
40
41// Checks whether the accessible @state of @accessible is set to
42// a specific value.
43func TestAccessibleCheckState(AccessibleVar Accessible, StateVar AccessibleState, varArgs ...interface{}) string {
44
45	cret := xTestAccessibleCheckState(AccessibleVar.GoPointer(), StateVar, varArgs...)
46	return cret
47}
48
49var xTestAccessibleHasProperty func(uintptr, AccessibleProperty) bool
50
51// Checks whether the `GtkAccessible` has @property set.
52func TestAccessibleHasProperty(AccessibleVar Accessible, PropertyVar AccessibleProperty) bool {
53
54	cret := xTestAccessibleHasProperty(AccessibleVar.GoPointer(), PropertyVar)
55	return cret
56}
57
58var xTestAccessibleHasRelation func(uintptr, AccessibleRelation) bool
59
60// Checks whether the `GtkAccessible` has @relation set.
61func TestAccessibleHasRelation(AccessibleVar Accessible, RelationVar AccessibleRelation) bool {
62
63	cret := xTestAccessibleHasRelation(AccessibleVar.GoPointer(), RelationVar)
64	return cret
65}
66
67var xTestAccessibleHasRole func(uintptr, AccessibleRole) bool
68
69// Checks whether the `GtkAccessible:accessible-role` of the accessible
70// is @role.
71func TestAccessibleHasRole(AccessibleVar Accessible, RoleVar AccessibleRole) bool {
72
73	cret := xTestAccessibleHasRole(AccessibleVar.GoPointer(), RoleVar)
74	return cret
75}
76
77var xTestAccessibleHasState func(uintptr, AccessibleState) bool
78
79// Checks whether the `GtkAccessible` has @state set.
80func TestAccessibleHasState(AccessibleVar Accessible, StateVar AccessibleState) bool {
81
82	cret := xTestAccessibleHasState(AccessibleVar.GoPointer(), StateVar)
83	return cret
84}
85
86func init() {
87	core.SetPackageName("GTK", "gtk4")
88	core.SetSharedLibraries("GTK", []string{"libgtk-4.so.1"})
89	var libs []uintptr
90	for _, libPath := range core.GetPaths("GTK") {
91		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
92		if err != nil {
93			panic(err)
94		}
95		libs = append(libs, lib)
96	}
97
98	core.PuregoSafeRegister(&xTestAccessibleAssertionMessageRole, libs, "gtk_test_accessible_assertion_message_role")
99	core.PuregoSafeRegister(&xTestAccessibleCheckProperty, libs, "gtk_test_accessible_check_property")
100	core.PuregoSafeRegister(&xTestAccessibleCheckRelation, libs, "gtk_test_accessible_check_relation")
101	core.PuregoSafeRegister(&xTestAccessibleCheckState, libs, "gtk_test_accessible_check_state")
102	core.PuregoSafeRegister(&xTestAccessibleHasProperty, libs, "gtk_test_accessible_has_property")
103	core.PuregoSafeRegister(&xTestAccessibleHasRelation, libs, "gtk_test_accessible_has_relation")
104	core.PuregoSafeRegister(&xTestAccessibleHasRole, libs, "gtk_test_accessible_has_role")
105	core.PuregoSafeRegister(&xTestAccessibleHasState, libs, "gtk_test_accessible_has_state")
106
107}

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