v0.2.2 9100209

gdkpango.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	"github.com/bnema/puregotk/v4/cairo"
9	"github.com/bnema/puregotk/v4/pango"
10)
11
12var xPangoLayoutGetClipRegion func(uintptr, int, int, int, int) *cairo.Region
13
14// Obtains a clip region which contains the areas where the given ranges
15// of text would be drawn.
16//
17// @x_origin and @y_origin are the top left point to center the layout.
18// @index_ranges should contain ranges of bytes in the layout’s text.
19//
20// Note that the regions returned correspond to logical extents of the text
21// ranges, not ink extents. So the drawn layout may in fact touch areas out of
22// the clip region.  The clip region is mainly useful for highlightling parts
23// of text, such as when text is selected.
24func PangoLayoutGetClipRegion(LayoutVar *pango.Layout, XOriginVar int, YOriginVar int, IndexRangesVar int, NRangesVar int) *cairo.Region {
25
26	cret := xPangoLayoutGetClipRegion(LayoutVar.GoPointer(), XOriginVar, YOriginVar, IndexRangesVar, NRangesVar)
27	return cret
28}
29
30var xPangoLayoutLineGetClipRegion func(*pango.LayoutLine, int, int, []int, int) *cairo.Region
31
32// Obtains a clip region which contains the areas where the given
33// ranges of text would be drawn.
34//
35// @x_origin and @y_origin are the top left position of the layout.
36// @index_ranges should contain ranges of bytes in the layout’s text.
37// The clip region will include space to the left or right of the line
38// (to the layout bounding box) if you have indexes above or below the
39// indexes contained inside the line. This is to draw the selection all
40// the way to the side of the layout. However, the clip region is in line
41// coordinates, not layout coordinates.
42//
43// Note that the regions returned correspond to logical extents of the text
44// ranges, not ink extents. So the drawn line may in fact touch areas out of
45// the clip region.  The clip region is mainly useful for highlightling parts
46// of text, such as when text is selected.
47func PangoLayoutLineGetClipRegion(LineVar *pango.LayoutLine, XOriginVar int, YOriginVar int, IndexRangesVar []int, NRangesVar int) *cairo.Region {
48
49	cret := xPangoLayoutLineGetClipRegion(LineVar, XOriginVar, YOriginVar, IndexRangesVar, NRangesVar)
50	return cret
51}
52
53func init() {
54	core.SetPackageName("GDK", "gtk4")
55	core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1"})
56	var libs []uintptr
57	for _, libPath := range core.GetPaths("GDK") {
58		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
59		if err != nil {
60			panic(err)
61		}
62		libs = append(libs, lib)
63	}
64
65	core.PuregoSafeRegister(&xPangoLayoutGetClipRegion, libs, "gdk_pango_layout_get_clip_region")
66	core.PuregoSafeRegister(&xPangoLayoutLineGetClipRegion, libs, "gdk_pango_layout_line_get_clip_region")
67
68}

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