v0.2.2 9100209

gproxyaddressenumerator.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/v4/gobject"
11	"github.com/bnema/puregotk/v4/gobject/types"
12)
13
14// Class structure for #GProxyAddressEnumerator.
15type ProxyAddressEnumeratorClass struct {
16	_ structs.HostLayout
17
18	ParentClass SocketAddressEnumeratorClass
19
20	xGReserved1 uintptr
21
22	xGReserved2 uintptr
23
24	xGReserved3 uintptr
25
26	xGReserved4 uintptr
27
28	xGReserved5 uintptr
29
30	xGReserved6 uintptr
31
32	xGReserved7 uintptr
33}
34
35func (x *ProxyAddressEnumeratorClass) GoPointer() uintptr {
36	return uintptr(unsafe.Pointer(x))
37}
38
39// OverrideGReserved1 sets the "_g_reserved1" callback function.
40func (x *ProxyAddressEnumeratorClass) OverrideGReserved1(cb func()) {
41	if cb == nil {
42		x.xGReserved1 = 0
43	} else {
44		x.xGReserved1 = purego.NewCallback(func() {
45			cb()
46		})
47	}
48}
49
50// GetGReserved1 gets the "_g_reserved1" callback function.
51func (x *ProxyAddressEnumeratorClass) GetGReserved1() func() {
52	if x.xGReserved1 == 0 {
53		return nil
54	}
55	var rawCallback func()
56	purego.RegisterFunc(&rawCallback, x.xGReserved1)
57	return func() {
58		rawCallback()
59	}
60}
61
62// OverrideGReserved2 sets the "_g_reserved2" callback function.
63func (x *ProxyAddressEnumeratorClass) OverrideGReserved2(cb func()) {
64	if cb == nil {
65		x.xGReserved2 = 0
66	} else {
67		x.xGReserved2 = purego.NewCallback(func() {
68			cb()
69		})
70	}
71}
72
73// GetGReserved2 gets the "_g_reserved2" callback function.
74func (x *ProxyAddressEnumeratorClass) GetGReserved2() func() {
75	if x.xGReserved2 == 0 {
76		return nil
77	}
78	var rawCallback func()
79	purego.RegisterFunc(&rawCallback, x.xGReserved2)
80	return func() {
81		rawCallback()
82	}
83}
84
85// OverrideGReserved3 sets the "_g_reserved3" callback function.
86func (x *ProxyAddressEnumeratorClass) OverrideGReserved3(cb func()) {
87	if cb == nil {
88		x.xGReserved3 = 0
89	} else {
90		x.xGReserved3 = purego.NewCallback(func() {
91			cb()
92		})
93	}
94}
95
96// GetGReserved3 gets the "_g_reserved3" callback function.
97func (x *ProxyAddressEnumeratorClass) GetGReserved3() func() {
98	if x.xGReserved3 == 0 {
99		return nil
100	}
101	var rawCallback func()
102	purego.RegisterFunc(&rawCallback, x.xGReserved3)
103	return func() {
104		rawCallback()
105	}
106}
107
108// OverrideGReserved4 sets the "_g_reserved4" callback function.
109func (x *ProxyAddressEnumeratorClass) OverrideGReserved4(cb func()) {
110	if cb == nil {
111		x.xGReserved4 = 0
112	} else {
113		x.xGReserved4 = purego.NewCallback(func() {
114			cb()
115		})
116	}
117}
118
119// GetGReserved4 gets the "_g_reserved4" callback function.
120func (x *ProxyAddressEnumeratorClass) GetGReserved4() func() {
121	if x.xGReserved4 == 0 {
122		return nil
123	}
124	var rawCallback func()
125	purego.RegisterFunc(&rawCallback, x.xGReserved4)
126	return func() {
127		rawCallback()
128	}
129}
130
131// OverrideGReserved5 sets the "_g_reserved5" callback function.
132func (x *ProxyAddressEnumeratorClass) OverrideGReserved5(cb func()) {
133	if cb == nil {
134		x.xGReserved5 = 0
135	} else {
136		x.xGReserved5 = purego.NewCallback(func() {
137			cb()
138		})
139	}
140}
141
142// GetGReserved5 gets the "_g_reserved5" callback function.
143func (x *ProxyAddressEnumeratorClass) GetGReserved5() func() {
144	if x.xGReserved5 == 0 {
145		return nil
146	}
147	var rawCallback func()
148	purego.RegisterFunc(&rawCallback, x.xGReserved5)
149	return func() {
150		rawCallback()
151	}
152}
153
154// OverrideGReserved6 sets the "_g_reserved6" callback function.
155func (x *ProxyAddressEnumeratorClass) OverrideGReserved6(cb func()) {
156	if cb == nil {
157		x.xGReserved6 = 0
158	} else {
159		x.xGReserved6 = purego.NewCallback(func() {
160			cb()
161		})
162	}
163}
164
165// GetGReserved6 gets the "_g_reserved6" callback function.
166func (x *ProxyAddressEnumeratorClass) GetGReserved6() func() {
167	if x.xGReserved6 == 0 {
168		return nil
169	}
170	var rawCallback func()
171	purego.RegisterFunc(&rawCallback, x.xGReserved6)
172	return func() {
173		rawCallback()
174	}
175}
176
177// OverrideGReserved7 sets the "_g_reserved7" callback function.
178func (x *ProxyAddressEnumeratorClass) OverrideGReserved7(cb func()) {
179	if cb == nil {
180		x.xGReserved7 = 0
181	} else {
182		x.xGReserved7 = purego.NewCallback(func() {
183			cb()
184		})
185	}
186}
187
188// GetGReserved7 gets the "_g_reserved7" callback function.
189func (x *ProxyAddressEnumeratorClass) GetGReserved7() func() {
190	if x.xGReserved7 == 0 {
191		return nil
192	}
193	var rawCallback func()
194	purego.RegisterFunc(&rawCallback, x.xGReserved7)
195	return func() {
196		rawCallback()
197	}
198}
199
200type ProxyAddressEnumeratorPrivate struct {
201	_ structs.HostLayout
202}
203
204func (x *ProxyAddressEnumeratorPrivate) GoPointer() uintptr {
205	return uintptr(unsafe.Pointer(x))
206}
207
208// `GProxyAddressEnumerator` is a wrapper around
209// [class@Gio.SocketAddressEnumerator] which takes the [class@Gio.SocketAddress]
210// instances returned by the [class@Gio.SocketAddressEnumerator]
211// and wraps them in [class@Gio.ProxyAddress] instances, using the given
212// [property@Gio.ProxyAddressEnumerator:proxy-resolver].
213//
214// This enumerator will be returned (for example, by
215// [method@Gio.SocketConnectable.enumerate]) as appropriate when a proxy is
216// configured; there should be no need to manually wrap a
217// [class@Gio.SocketAddressEnumerator] instance with one.
218type ProxyAddressEnumerator struct {
219	SocketAddressEnumerator
220}
221
222var xProxyAddressEnumeratorGLibType func() types.GType
223
224func ProxyAddressEnumeratorGLibType() types.GType {
225	return xProxyAddressEnumeratorGLibType()
226}
227
228func ProxyAddressEnumeratorNewFromInternalPtr(ptr uintptr) *ProxyAddressEnumerator {
229	cls := &ProxyAddressEnumerator{}
230	cls.Ptr = ptr
231	return cls
232}
233
234func (c *ProxyAddressEnumerator) GoPointer() uintptr {
235	if c == nil {
236		return 0
237	}
238	return c.Ptr
239}
240
241func (c *ProxyAddressEnumerator) SetGoPointer(ptr uintptr) {
242	c.Ptr = ptr
243}
244
245// SetPropertyDefaultPort sets the "default-port" property.
246// The default port to use if #GProxyAddressEnumerator:uri does not
247// specify one.
248func (x *ProxyAddressEnumerator) SetPropertyDefaultPort(value uint) {
249	var v gobject.Value
250	v.Init(gobject.TypeUintVal)
251	v.SetUint(value)
252	x.SetProperty("default-port", &v)
253}
254
255// GetPropertyDefaultPort gets the "default-port" property.
256// The default port to use if #GProxyAddressEnumerator:uri does not
257// specify one.
258func (x *ProxyAddressEnumerator) GetPropertyDefaultPort() uint {
259	var v gobject.Value
260	x.GetProperty("default-port", &v)
261	return v.GetUint()
262}
263
264// SetPropertyUri sets the "uri" property.
265// The destination URI. Use `none://` for a generic socket.
266func (x *ProxyAddressEnumerator) SetPropertyUri(value string) {
267	var v gobject.Value
268	v.Init(gobject.TypeStringVal)
269	v.SetString(&value)
270	x.SetProperty("uri", &v)
271}
272
273// GetPropertyUri gets the "uri" property.
274// The destination URI. Use `none://` for a generic socket.
275func (x *ProxyAddressEnumerator) GetPropertyUri() string {
276	var v gobject.Value
277	x.GetProperty("uri", &v)
278	return v.GetString()
279}

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