v0.2.1 c0399be

gfilterinputstream.go RawHistoryFolder

1// Package gio was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gio
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"
12	"github.com/bnema/puregotk/v4/gobject/types"
13)
14
15type FilterInputStreamClass struct {
16	_ structs.HostLayout
17
18	ParentClass InputStreamClass
19
20	xGReserved1 uintptr
21
22	xGReserved2 uintptr
23
24	xGReserved3 uintptr
25}
26
27func (x *FilterInputStreamClass) GoPointer() uintptr {
28	return uintptr(unsafe.Pointer(x))
29}
30
31// OverrideGReserved1 sets the "_g_reserved1" callback function.
32func (x *FilterInputStreamClass) OverrideGReserved1(cb func()) {
33	if cb == nil {
34		x.xGReserved1 = 0
35	} else {
36		x.xGReserved1 = purego.NewCallback(func() {
37			cb()
38		})
39	}
40}
41
42// GetGReserved1 gets the "_g_reserved1" callback function.
43func (x *FilterInputStreamClass) GetGReserved1() func() {
44	if x.xGReserved1 == 0 {
45		return nil
46	}
47	var rawCallback func()
48	purego.RegisterFunc(&rawCallback, x.xGReserved1)
49	return func() {
50		rawCallback()
51	}
52}
53
54// OverrideGReserved2 sets the "_g_reserved2" callback function.
55func (x *FilterInputStreamClass) OverrideGReserved2(cb func()) {
56	if cb == nil {
57		x.xGReserved2 = 0
58	} else {
59		x.xGReserved2 = purego.NewCallback(func() {
60			cb()
61		})
62	}
63}
64
65// GetGReserved2 gets the "_g_reserved2" callback function.
66func (x *FilterInputStreamClass) GetGReserved2() func() {
67	if x.xGReserved2 == 0 {
68		return nil
69	}
70	var rawCallback func()
71	purego.RegisterFunc(&rawCallback, x.xGReserved2)
72	return func() {
73		rawCallback()
74	}
75}
76
77// OverrideGReserved3 sets the "_g_reserved3" callback function.
78func (x *FilterInputStreamClass) OverrideGReserved3(cb func()) {
79	if cb == nil {
80		x.xGReserved3 = 0
81	} else {
82		x.xGReserved3 = purego.NewCallback(func() {
83			cb()
84		})
85	}
86}
87
88// GetGReserved3 gets the "_g_reserved3" callback function.
89func (x *FilterInputStreamClass) GetGReserved3() func() {
90	if x.xGReserved3 == 0 {
91		return nil
92	}
93	var rawCallback func()
94	purego.RegisterFunc(&rawCallback, x.xGReserved3)
95	return func() {
96		rawCallback()
97	}
98}
99
100// Base class for input stream implementations that perform some
101// kind of filtering operation on a base stream. Typical examples
102// of filtering operations are character set conversion, compression
103// and byte order flipping.
104type FilterInputStream struct {
105	InputStream
106}
107
108var xFilterInputStreamGLibType func() types.GType
109
110func FilterInputStreamGLibType() types.GType {
111	return xFilterInputStreamGLibType()
112}
113
114func FilterInputStreamNewFromInternalPtr(ptr uintptr) *FilterInputStream {
115	cls := &FilterInputStream{}
116	cls.Ptr = ptr
117	return cls
118}
119
120var xFilterInputStreamGetBaseStream func(uintptr) uintptr
121
122// Gets the base stream for the filter stream.
123func (x *FilterInputStream) GetBaseStream() *InputStream {
124	var cls *InputStream
125
126	cret := xFilterInputStreamGetBaseStream(x.GoPointer())
127
128	if cret == 0 {
129		return nil
130	}
131	gobject.IncreaseRef(cret)
132	cls = &InputStream{}
133	cls.Ptr = cret
134	return cls
135}
136
137var xFilterInputStreamGetCloseBaseStream func(uintptr) bool
138
139// Returns whether the base stream will be closed when @stream is
140// closed.
141func (x *FilterInputStream) GetCloseBaseStream() bool {
142
143	cret := xFilterInputStreamGetCloseBaseStream(x.GoPointer())
144	return cret
145}
146
147var xFilterInputStreamSetCloseBaseStream func(uintptr, bool)
148
149// Sets whether the base stream will be closed when @stream is closed.
150func (x *FilterInputStream) SetCloseBaseStream(CloseBaseVar bool) {
151
152	xFilterInputStreamSetCloseBaseStream(x.GoPointer(), CloseBaseVar)
153
154}
155
156func (c *FilterInputStream) GoPointer() uintptr {
157	if c == nil {
158		return 0
159	}
160	return c.Ptr
161}
162
163func (c *FilterInputStream) SetGoPointer(ptr uintptr) {
164	c.Ptr = ptr
165}
166
167// SetPropertyCloseBaseStream sets the "close-base-stream" property.
168// Whether the base stream should be closed when the filter stream is closed.
169func (x *FilterInputStream) SetPropertyCloseBaseStream(value bool) {
170	var v gobject.Value
171	v.Init(gobject.TypeBooleanVal)
172	v.SetBoolean(value)
173	x.SetProperty("close-base-stream", &v)
174}
175
176// GetPropertyCloseBaseStream gets the "close-base-stream" property.
177// Whether the base stream should be closed when the filter stream is closed.
178func (x *FilterInputStream) GetPropertyCloseBaseStream() bool {
179	var v gobject.Value
180	x.GetProperty("close-base-stream", &v)
181	return v.GetBoolean()
182}
183
184func init() {
185	core.SetPackageName("GIO", "gio-2.0")
186	core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0"})
187	var libs []uintptr
188	for _, libPath := range core.GetPaths("GIO") {
189		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
190		if err != nil {
191			panic(err)
192		}
193		libs = append(libs, lib)
194	}
195
196	core.PuregoSafeRegister(&xFilterInputStreamGLibType, libs, "g_filter_input_stream_get_type")
197
198	core.PuregoSafeRegister(&xFilterInputStreamGetBaseStream, libs, "g_filter_input_stream_get_base_stream")
199	core.PuregoSafeRegister(&xFilterInputStreamGetCloseBaseStream, libs, "g_filter_input_stream_get_close_base_stream")
200	core.PuregoSafeRegister(&xFilterInputStreamSetCloseBaseStream, libs, "g_filter_input_stream_set_close_base_stream")
201
202}

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