v0.2.1 c0399be

gskbroadwayrenderer.go RawHistoryFolder

1// Package gsk was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gsk
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
14type BroadwayRendererClass struct {
15	_ structs.HostLayout
16}
17
18func (x *BroadwayRendererClass) GoPointer() uintptr {
19	return uintptr(unsafe.Pointer(x))
20}
21
22// A Broadway based renderer.
23//
24// See [class@Gsk.Renderer].
25type BroadwayRenderer struct {
26	Renderer
27}
28
29var xBroadwayRendererGLibType func() types.GType
30
31func BroadwayRendererGLibType() types.GType {
32	return xBroadwayRendererGLibType()
33}
34
35func BroadwayRendererNewFromInternalPtr(ptr uintptr) *BroadwayRenderer {
36	cls := &BroadwayRenderer{}
37	cls.Ptr = ptr
38	return cls
39}
40
41var xNewBroadwayRenderer func() uintptr
42
43// Creates a new Broadway renderer.
44//
45// The Broadway renderer is the default renderer for the broadway backend.
46// It will only work with broadway surfaces, otherwise it will fail the
47// call to gsk_renderer_realize().
48//
49// This function is only available when GTK was compiled with Broadway
50// support.
51func NewBroadwayRenderer() *BroadwayRenderer {
52	var cls *BroadwayRenderer
53
54	cret := xNewBroadwayRenderer()
55
56	if cret == 0 {
57		return nil
58	}
59	cls = &BroadwayRenderer{}
60	cls.Ptr = cret
61	return cls
62}
63
64func (c *BroadwayRenderer) GoPointer() uintptr {
65	if c == nil {
66		return 0
67	}
68	return c.Ptr
69}
70
71func (c *BroadwayRenderer) SetGoPointer(ptr uintptr) {
72	c.Ptr = ptr
73}
74
75func init() {
76	core.SetPackageName("GSK", "gtk4")
77	core.SetSharedLibraries("GSK", []string{"libgtk-4.so.1"})
78	var libs []uintptr
79	for _, libPath := range core.GetPaths("GSK") {
80		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
81		if err != nil {
82			panic(err)
83		}
84		libs = append(libs, lib)
85	}
86
87	core.PuregoSafeRegister(&xBroadwayRendererGLibType, libs, "gsk_broadway_renderer_get_type")
88
89	core.PuregoSafeRegister(&xNewBroadwayRenderer, libs, "gsk_broadway_renderer_new")
90
91}

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