File: Gtk_WidgetPath.cs

package info (click to toggle)
gnome-subtitles 1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 103,144 kB
  • sloc: xml: 406,395; cs: 364,495; ansic: 3,104; perl: 1,477; sh: 769; python: 545; javascript: 500; makefile: 49
file content (420 lines) | stat: -rw-r--r-- 14,476 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.

namespace Gtk {

	using System;
	using System.Collections;
	using System.Collections.Generic;
	using System.Runtime.InteropServices;

#region Autogenerated code
	public partial class WidgetPath : GLib.Opaque {

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern int gtk_widget_path_append_for_widget(IntPtr raw, IntPtr widget);

		public int AppendForWidget(Gtk.Widget widget) {
			int raw_ret = gtk_widget_path_append_for_widget(Handle, widget == null ? IntPtr.Zero : widget.Handle);
			int ret = raw_ret;
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern int gtk_widget_path_append_type(IntPtr raw, IntPtr type);

		public int AppendType(GLib.GType type) {
			int raw_ret = gtk_widget_path_append_type(Handle, type.Val);
			int ret = raw_ret;
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern int gtk_widget_path_append_with_siblings(IntPtr raw, IntPtr siblings, uint sibling_index);

		public int AppendWithSiblings(Gtk.WidgetPath siblings, uint sibling_index) {
			int raw_ret = gtk_widget_path_append_with_siblings(Handle, siblings == null ? IntPtr.Zero : siblings.Handle, sibling_index);
			int ret = raw_ret;
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gtk_widget_path_copy(IntPtr raw);

		public Gtk.WidgetPath Copy() {
			IntPtr raw_ret = gtk_widget_path_copy(Handle);
			Gtk.WidgetPath ret = raw_ret == IntPtr.Zero ? null : (Gtk.WidgetPath) GLib.Opaque.GetOpaque (raw_ret, typeof (Gtk.WidgetPath), true);
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gtk_widget_path_get_object_type(IntPtr raw);

		public GLib.GType ObjectType { 
			get {
				IntPtr raw_ret = gtk_widget_path_get_object_type(Handle);
				GLib.GType ret = new GLib.GType(raw_ret);
				return ret;
			}
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gtk_widget_path_get_type();

		public static GLib.GType GType { 
			get {
				IntPtr raw_ret = gtk_widget_path_get_type();
				GLib.GType ret = new GLib.GType(raw_ret);
				return ret;
			}
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern bool gtk_widget_path_has_parent(IntPtr raw, IntPtr type);

		public bool HasParent(GLib.GType type) {
			bool raw_ret = gtk_widget_path_has_parent(Handle, type.Val);
			bool ret = raw_ret;
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern bool gtk_widget_path_is_type(IntPtr raw, IntPtr type);

		public bool IsType(GLib.GType type) {
			bool raw_ret = gtk_widget_path_is_type(Handle, type.Val);
			bool ret = raw_ret;
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gtk_widget_path_iter_add_class(IntPtr raw, int pos, IntPtr name);

		public void IterAddClass(int pos, string name) {
			IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
			gtk_widget_path_iter_add_class(Handle, pos, native_name);
			GLib.Marshaller.Free (native_name);
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gtk_widget_path_iter_add_region(IntPtr raw, int pos, IntPtr name, int flags);

		[Obsolete]
		public void IterAddRegion(int pos, string name, Gtk.RegionFlags flags) {
			IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
			gtk_widget_path_iter_add_region(Handle, pos, native_name, (int) flags);
			GLib.Marshaller.Free (native_name);
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gtk_widget_path_iter_clear_classes(IntPtr raw, int pos);

		public void IterClearClasses(int pos) {
			gtk_widget_path_iter_clear_classes(Handle, pos);
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gtk_widget_path_iter_clear_regions(IntPtr raw, int pos);

		[Obsolete]
		public void IterClearRegions(int pos) {
			gtk_widget_path_iter_clear_regions(Handle, pos);
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gtk_widget_path_iter_get_name(IntPtr raw, int pos);

		public string IterGetName(int pos) {
			IntPtr raw_ret = gtk_widget_path_iter_get_name(Handle, pos);
			string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gtk_widget_path_iter_get_object_name(IntPtr raw, int pos);

		public string IterGetObjectName(int pos) {
			IntPtr raw_ret = gtk_widget_path_iter_get_object_name(Handle, pos);
			string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gtk_widget_path_iter_get_object_type(IntPtr raw, int pos);

		public GLib.GType IterGetObjectType(int pos) {
			IntPtr raw_ret = gtk_widget_path_iter_get_object_type(Handle, pos);
			GLib.GType ret = new GLib.GType(raw_ret);
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern uint gtk_widget_path_iter_get_sibling_index(IntPtr raw, int pos);

		public uint IterGetSiblingIndex(int pos) {
			uint raw_ret = gtk_widget_path_iter_get_sibling_index(Handle, pos);
			uint ret = raw_ret;
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gtk_widget_path_iter_get_siblings(IntPtr raw, int pos);

		public Gtk.WidgetPath IterGetSiblings(int pos) {
			IntPtr raw_ret = gtk_widget_path_iter_get_siblings(Handle, pos);
			Gtk.WidgetPath ret = raw_ret == IntPtr.Zero ? null : (Gtk.WidgetPath) GLib.Opaque.GetOpaque (raw_ret, typeof (Gtk.WidgetPath), false);
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern int gtk_widget_path_iter_get_state(IntPtr raw, int pos);

		public Gtk.StateFlags IterGetState(int pos) {
			int raw_ret = gtk_widget_path_iter_get_state(Handle, pos);
			Gtk.StateFlags ret = (Gtk.StateFlags) raw_ret;
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern bool gtk_widget_path_iter_has_class(IntPtr raw, int pos, IntPtr name);

		public bool IterHasClass(int pos, string name) {
			IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
			bool raw_ret = gtk_widget_path_iter_has_class(Handle, pos, native_name);
			bool ret = raw_ret;
			GLib.Marshaller.Free (native_name);
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern bool gtk_widget_path_iter_has_name(IntPtr raw, int pos, IntPtr name);

		public bool IterHasName(int pos, string name) {
			IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
			bool raw_ret = gtk_widget_path_iter_has_name(Handle, pos, native_name);
			bool ret = raw_ret;
			GLib.Marshaller.Free (native_name);
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern bool gtk_widget_path_iter_has_qclass(IntPtr raw, int pos, int qname);

		public bool IterHasQclass(int pos, int qname) {
			bool raw_ret = gtk_widget_path_iter_has_qclass(Handle, pos, qname);
			bool ret = raw_ret;
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern bool gtk_widget_path_iter_has_qname(IntPtr raw, int pos, int qname);

		public bool IterHasQname(int pos, int qname) {
			bool raw_ret = gtk_widget_path_iter_has_qname(Handle, pos, qname);
			bool ret = raw_ret;
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern bool gtk_widget_path_iter_has_qregion(IntPtr raw, int pos, int qname, out int flags);

		[Obsolete]
		public bool IterHasQregion(int pos, int qname, out Gtk.RegionFlags flags) {
			int native_flags;
			bool raw_ret = gtk_widget_path_iter_has_qregion(Handle, pos, qname, out native_flags);
			bool ret = raw_ret;
			flags = (Gtk.RegionFlags) native_flags;
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern bool gtk_widget_path_iter_has_region(IntPtr raw, int pos, IntPtr name, out int flags);

		[Obsolete]
		public bool IterHasRegion(int pos, string name, out Gtk.RegionFlags flags) {
			IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
			int native_flags;
			bool raw_ret = gtk_widget_path_iter_has_region(Handle, pos, native_name, out native_flags);
			bool ret = raw_ret;
			GLib.Marshaller.Free (native_name);
			flags = (Gtk.RegionFlags) native_flags;
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gtk_widget_path_iter_list_classes(IntPtr raw, int pos);

		public string[] IterListClasses(int pos) {
			IntPtr raw_ret = gtk_widget_path_iter_list_classes(Handle, pos);
			string[] ret = (string[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.SList), true, false, typeof(string));
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gtk_widget_path_iter_list_regions(IntPtr raw, int pos);

		[Obsolete]
		public string[] IterListRegions(int pos) {
			IntPtr raw_ret = gtk_widget_path_iter_list_regions(Handle, pos);
			string[] ret = (string[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.SList), true, false, typeof(string));
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gtk_widget_path_iter_remove_class(IntPtr raw, int pos, IntPtr name);

		public void IterRemoveClass(int pos, string name) {
			IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
			gtk_widget_path_iter_remove_class(Handle, pos, native_name);
			GLib.Marshaller.Free (native_name);
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gtk_widget_path_iter_remove_region(IntPtr raw, int pos, IntPtr name);

		[Obsolete]
		public void IterRemoveRegion(int pos, string name) {
			IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
			gtk_widget_path_iter_remove_region(Handle, pos, native_name);
			GLib.Marshaller.Free (native_name);
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gtk_widget_path_iter_set_name(IntPtr raw, int pos, IntPtr name);

		public void IterSetName(int pos, string name) {
			IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
			gtk_widget_path_iter_set_name(Handle, pos, native_name);
			GLib.Marshaller.Free (native_name);
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gtk_widget_path_iter_set_object_name(IntPtr raw, int pos, IntPtr name);

		public void IterSetObjectName(int pos, string name) {
			IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
			gtk_widget_path_iter_set_object_name(Handle, pos, native_name);
			GLib.Marshaller.Free (native_name);
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gtk_widget_path_iter_set_object_type(IntPtr raw, int pos, IntPtr type);

		public void IterSetObjectType(int pos, GLib.GType type) {
			gtk_widget_path_iter_set_object_type(Handle, pos, type.Val);
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gtk_widget_path_iter_set_state(IntPtr raw, int pos, int state);

		public void IterSetState(int pos, Gtk.StateFlags state) {
			gtk_widget_path_iter_set_state(Handle, pos, (int) state);
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern int gtk_widget_path_length(IntPtr raw);

		public int Length() {
			int raw_ret = gtk_widget_path_length(Handle);
			int ret = raw_ret;
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gtk_widget_path_prepend_type(IntPtr raw, IntPtr type);

		public void PrependType(GLib.GType type) {
			gtk_widget_path_prepend_type(Handle, type.Val);
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gtk_widget_path_to_string(IntPtr raw);

		public override string ToString() {
			IntPtr raw_ret = gtk_widget_path_to_string(Handle);
			string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
			return ret;
		}

		public WidgetPath(IntPtr raw) : base(raw) {}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gtk_widget_path_new();

		public WidgetPath () 
		{
			Raw = gtk_widget_path_new();
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gtk_widget_path_ref(IntPtr raw);

		protected override void Ref (IntPtr raw)
		{
			if (!Owned) {
				gtk_widget_path_ref (raw);
				Owned = true;
			}
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gtk_widget_path_unref(IntPtr raw);

		protected override void Unref (IntPtr raw)
		{
			if (Owned) {
				gtk_widget_path_unref (raw);
				Owned = false;
			}
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gtk_widget_path_free(IntPtr raw);

		protected override void Free (IntPtr raw)
		{
			gtk_widget_path_free (raw);
		}

		class FinalizerInfo {
			IntPtr handle;

			public FinalizerInfo (IntPtr handle)
			{
				this.handle = handle;
			}

			public bool Handler ()
			{
				gtk_widget_path_free (handle);
				return false;
			}
		}

		~WidgetPath ()
		{
			if (!Owned)
				return;
			FinalizerInfo info = new FinalizerInfo (Handle);
			GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
		}


		// Internal representation of the wrapped structure ABI.
		static GLib.AbiStruct _abi_info = null;
		static public GLib.AbiStruct abi_info {
			get {
				if (_abi_info == null)
					_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{ 
					});

				return _abi_info;
			}
		}


		// End of the ABI representation.

#endregion
	}
}