v0.2.1 c0399be

gdk-pixbuf-core.go RawHistoryFolder

1// Package gdkpixbuf was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gdkpixbuf
3
4import (
5	"github.com/bnema/puregotk/v4/glib"
6	"github.com/bnema/puregotk/v4/gobject/types"
7)
8
9// A function of this type is responsible for freeing the pixel array
10// of a pixbuf.
11//
12// The gdk_pixbuf_new_from_data() function lets you pass in a pre-allocated
13// pixel array so that a pixbuf can be created from it; in this case you
14// will need to pass in a function of type `GdkPixbufDestroyNotify` so that
15// the pixel data can be freed when the pixbuf is finalized.
16type PixbufDestroyNotify func([]byte, uintptr)
17
18// Save functions used by [method@GdkPixbuf.Pixbuf.save_to_callback].
19//
20// This function is called once for each block of bytes that is "written"
21// by `gdk_pixbuf_save_to_callback()`.
22//
23// If successful it should return `TRUE`; if an error occurs it should set
24// `error` and return `FALSE`, in which case `gdk_pixbuf_save_to_callback()`
25// will fail with the same error.
26type PixbufSaveFunc func([]byte, uint, **glib.Error, uintptr) bool
27
28// This enumeration defines the color spaces that are supported by
29// the gdk-pixbuf library.
30//
31// Currently only RGB is supported.
32type Colorspace int
33
34var xColorspaceGLibType func() types.GType
35
36func ColorspaceGLibType() types.GType {
37	return xColorspaceGLibType()
38}
39
40const (
41
42	// Indicates a red/green/blue additive color space.
43	GdkColorspaceRgbValue Colorspace = 0
44)
45
46// Control the alpha channel for drawables.
47//
48// These values can be passed to gdk_pixbuf_xlib_render_to_drawable_alpha()
49// in gdk-pixbuf-xlib to control how the alpha channel of an image should
50// be handled.
51//
52// This function can create a bilevel clipping mask (black and white) and use
53// it while painting the image.
54//
55// In the future, when the X Window System gets an alpha channel extension,
56// it will be possible to do full alpha compositing onto arbitrary drawables.
57// For now both cases fall back to a bilevel clipping mask.
58type PixbufAlphaMode int
59
60var xPixbufAlphaModeGLibType func() types.GType
61
62func PixbufAlphaModeGLibType() types.GType {
63	return xPixbufAlphaModeGLibType()
64}
65
66const (
67
68	// A bilevel clipping mask (black and white)
69	//  will be created and used to draw the image.  Pixels below 0.5 opacity
70	//  will be considered fully transparent, and all others will be
71	//  considered fully opaque.
72	GdkPixbufAlphaBilevelValue PixbufAlphaMode = 0
73	// For now falls back to #GDK_PIXBUF_ALPHA_BILEVEL.
74	//  In the future it will do full alpha compositing.
75	GdkPixbufAlphaFullValue PixbufAlphaMode = 1
76)
77
78// An error code in the `GDK_PIXBUF_ERROR` domain.
79//
80// Many gdk-pixbuf operations can cause errors in this domain, or in
81// the `G_FILE_ERROR` domain.
82type PixbufError int
83
84var xPixbufErrorGLibType func() types.GType
85
86func PixbufErrorGLibType() types.GType {
87	return xPixbufErrorGLibType()
88}
89
90const (
91
92	// An image file was broken somehow.
93	GdkPixbufErrorCorruptImageValue PixbufError = 0
94	// Not enough memory.
95	GdkPixbufErrorInsufficientMemoryValue PixbufError = 1
96	// A bad option was passed to a pixbuf save module.
97	GdkPixbufErrorBadOptionValue PixbufError = 2
98	// Unknown image type.
99	GdkPixbufErrorUnknownTypeValue PixbufError = 3
100	// Don't know how to perform the
101	//  given operation on the type of image at hand.
102	GdkPixbufErrorUnsupportedOperationValue PixbufError = 4
103	// Generic failure code, something went wrong.
104	GdkPixbufErrorFailedValue PixbufError = 5
105	// Only part of the animation was loaded.
106	GdkPixbufErrorIncompleteAnimationValue PixbufError = 6
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