File: Atk_Hyperlink.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 (846 lines) | stat: -rw-r--r-- 25,669 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
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.

namespace Atk {

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

#region Autogenerated code
	public partial class Hyperlink : GLib.Object, Atk.IAction {

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

		protected Hyperlink() : base(IntPtr.Zero)
		{
			CreateNativeObject (new string [0], new GLib.Value [0]);
		}

		[GLib.Property ("selected-link")]
		public bool SelectedLink {
			get {
				GLib.Value val = GetProperty ("selected-link");
				bool ret = (bool) val;
				val.Dispose ();
				return ret;
			}
		}

		[GLib.Property ("number-of-anchors")]
		public int NumberOfAnchors {
			get {
				GLib.Value val = GetProperty ("number-of-anchors");
				int ret = (int) val;
				val.Dispose ();
				return ret;
			}
		}

		[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern int atk_hyperlink_get_end_index(IntPtr raw);

		[GLib.Property ("end-index")]
		public int EndIndex {
			get  {
				int raw_ret = atk_hyperlink_get_end_index(Handle);
				int ret = raw_ret;
				return ret;
			}
		}

		[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern int atk_hyperlink_get_start_index(IntPtr raw);

		[GLib.Property ("start-index")]
		public int StartIndex {
			get  {
				int raw_ret = atk_hyperlink_get_start_index(Handle);
				int ret = raw_ret;
				return ret;
			}
		}

		[GLib.Signal("link_activated")]
		public event System.EventHandler LinkActivated {
			add {
				this.AddSignalHandler ("link_activated", value);
			}
			remove {
				this.RemoveSignalHandler ("link_activated", value);
			}
		}

		static GetUriNativeDelegate GetUri_cb_delegate;
		static GetUriNativeDelegate GetUriVMCallback {
			get {
				if (GetUri_cb_delegate == null)
					GetUri_cb_delegate = new GetUriNativeDelegate (GetUri_cb);
				return GetUri_cb_delegate;
			}
		}

		static void OverrideGetUri (GLib.GType gtype)
		{
			OverrideGetUri (gtype, GetUriVMCallback);
		}

		static void OverrideGetUri (GLib.GType gtype, GetUriNativeDelegate callback)
		{
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_uri"));
				*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
			}
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate IntPtr GetUriNativeDelegate (IntPtr inst, int i);

		static IntPtr GetUri_cb (IntPtr inst, int i)
		{
			try {
				Hyperlink __obj = GLib.Object.GetObject (inst, false) as Hyperlink;
				string __result;
				__result = __obj.OnGetUri (i);
				return GLib.Marshaller.StringToPtrGStrdup(__result);
			} catch (Exception e) {
				GLib.ExceptionManager.RaiseUnhandledException (e, true);
				// NOTREACHED: above call does not return.
				throw e;
			}
		}

		[GLib.DefaultSignalHandler(Type=typeof(Atk.Hyperlink), ConnectionMethod="OverrideGetUri")]
		protected virtual string OnGetUri (int i)
		{
			return InternalGetUri (i);
		}

		private string InternalGetUri (int i)
		{
			GetUriNativeDelegate unmanaged = null;
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_uri"));
				unmanaged = (GetUriNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetUriNativeDelegate));
			}
			if (unmanaged == null) return null;

			IntPtr __result = unmanaged (this.Handle, i);
			return GLib.Marshaller.PtrToStringGFree(__result);
		}

		static GetObjectNativeDelegate GetObject_cb_delegate;
		static GetObjectNativeDelegate GetObjectVMCallback {
			get {
				if (GetObject_cb_delegate == null)
					GetObject_cb_delegate = new GetObjectNativeDelegate (GetObject_cb);
				return GetObject_cb_delegate;
			}
		}

		static void OverrideGetObject (GLib.GType gtype)
		{
			OverrideGetObject (gtype, GetObjectVMCallback);
		}

		static void OverrideGetObject (GLib.GType gtype, GetObjectNativeDelegate callback)
		{
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_object"));
				*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
			}
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate IntPtr GetObjectNativeDelegate (IntPtr inst, int i);

		static IntPtr GetObject_cb (IntPtr inst, int i)
		{
			try {
				Hyperlink __obj = GLib.Object.GetObject (inst, false) as Hyperlink;
				Atk.Object __result;
				__result = __obj.OnGetObject (i);
				return __result == null ? IntPtr.Zero : __result.Handle;
			} catch (Exception e) {
				GLib.ExceptionManager.RaiseUnhandledException (e, true);
				// NOTREACHED: above call does not return.
				throw e;
			}
		}

		[GLib.DefaultSignalHandler(Type=typeof(Atk.Hyperlink), ConnectionMethod="OverrideGetObject")]
		protected virtual Atk.Object OnGetObject (int i)
		{
			return InternalGetObject (i);
		}

		private Atk.Object InternalGetObject (int i)
		{
			GetObjectNativeDelegate unmanaged = null;
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_object"));
				unmanaged = (GetObjectNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetObjectNativeDelegate));
			}
			if (unmanaged == null) return null;

			IntPtr __result = unmanaged (this.Handle, i);
			return GLib.Object.GetObject(__result) as Atk.Object;
		}

		static GetEndIndexNativeDelegate GetEndIndex_cb_delegate;
		static GetEndIndexNativeDelegate GetEndIndexVMCallback {
			get {
				if (GetEndIndex_cb_delegate == null)
					GetEndIndex_cb_delegate = new GetEndIndexNativeDelegate (GetEndIndex_cb);
				return GetEndIndex_cb_delegate;
			}
		}

		static void OverrideGetEndIndex (GLib.GType gtype)
		{
			OverrideGetEndIndex (gtype, GetEndIndexVMCallback);
		}

		static void OverrideGetEndIndex (GLib.GType gtype, GetEndIndexNativeDelegate callback)
		{
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_end_index"));
				*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
			}
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate int GetEndIndexNativeDelegate (IntPtr inst);

		static int GetEndIndex_cb (IntPtr inst)
		{
			try {
				Hyperlink __obj = GLib.Object.GetObject (inst, false) as Hyperlink;
				int __result;
				__result = __obj.OnGetEndIndex ();
				return __result;
			} catch (Exception e) {
				GLib.ExceptionManager.RaiseUnhandledException (e, true);
				// NOTREACHED: above call does not return.
				throw e;
			}
		}

		[GLib.DefaultSignalHandler(Type=typeof(Atk.Hyperlink), ConnectionMethod="OverrideGetEndIndex")]
		protected virtual int OnGetEndIndex ()
		{
			return InternalGetEndIndex ();
		}

		private int InternalGetEndIndex ()
		{
			GetEndIndexNativeDelegate unmanaged = null;
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_end_index"));
				unmanaged = (GetEndIndexNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetEndIndexNativeDelegate));
			}
			if (unmanaged == null) return 0;

			int __result = unmanaged (this.Handle);
			return __result;
		}

		static GetStartIndexNativeDelegate GetStartIndex_cb_delegate;
		static GetStartIndexNativeDelegate GetStartIndexVMCallback {
			get {
				if (GetStartIndex_cb_delegate == null)
					GetStartIndex_cb_delegate = new GetStartIndexNativeDelegate (GetStartIndex_cb);
				return GetStartIndex_cb_delegate;
			}
		}

		static void OverrideGetStartIndex (GLib.GType gtype)
		{
			OverrideGetStartIndex (gtype, GetStartIndexVMCallback);
		}

		static void OverrideGetStartIndex (GLib.GType gtype, GetStartIndexNativeDelegate callback)
		{
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_start_index"));
				*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
			}
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate int GetStartIndexNativeDelegate (IntPtr inst);

		static int GetStartIndex_cb (IntPtr inst)
		{
			try {
				Hyperlink __obj = GLib.Object.GetObject (inst, false) as Hyperlink;
				int __result;
				__result = __obj.OnGetStartIndex ();
				return __result;
			} catch (Exception e) {
				GLib.ExceptionManager.RaiseUnhandledException (e, true);
				// NOTREACHED: above call does not return.
				throw e;
			}
		}

		[GLib.DefaultSignalHandler(Type=typeof(Atk.Hyperlink), ConnectionMethod="OverrideGetStartIndex")]
		protected virtual int OnGetStartIndex ()
		{
			return InternalGetStartIndex ();
		}

		private int InternalGetStartIndex ()
		{
			GetStartIndexNativeDelegate unmanaged = null;
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_start_index"));
				unmanaged = (GetStartIndexNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetStartIndexNativeDelegate));
			}
			if (unmanaged == null) return 0;

			int __result = unmanaged (this.Handle);
			return __result;
		}

		static IsValidNativeDelegate IsValid_cb_delegate;
		static IsValidNativeDelegate IsValidVMCallback {
			get {
				if (IsValid_cb_delegate == null)
					IsValid_cb_delegate = new IsValidNativeDelegate (IsValid_cb);
				return IsValid_cb_delegate;
			}
		}

		static void OverrideIsValid (GLib.GType gtype)
		{
			OverrideIsValid (gtype, IsValidVMCallback);
		}

		static void OverrideIsValid (GLib.GType gtype, IsValidNativeDelegate callback)
		{
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("is_valid"));
				*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
			}
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate bool IsValidNativeDelegate (IntPtr inst);

		static bool IsValid_cb (IntPtr inst)
		{
			try {
				Hyperlink __obj = GLib.Object.GetObject (inst, false) as Hyperlink;
				bool __result;
				__result = __obj.OnIsValid ();
				return __result;
			} catch (Exception e) {
				GLib.ExceptionManager.RaiseUnhandledException (e, true);
				// NOTREACHED: above call does not return.
				throw e;
			}
		}

		[GLib.DefaultSignalHandler(Type=typeof(Atk.Hyperlink), ConnectionMethod="OverrideIsValid")]
		protected virtual bool OnIsValid ()
		{
			return InternalIsValid ();
		}

		private bool InternalIsValid ()
		{
			IsValidNativeDelegate unmanaged = null;
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("is_valid"));
				unmanaged = (IsValidNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(IsValidNativeDelegate));
			}
			if (unmanaged == null) return false;

			bool __result = unmanaged (this.Handle);
			return __result;
		}

		static GetNAnchorsNativeDelegate GetNAnchors_cb_delegate;
		static GetNAnchorsNativeDelegate GetNAnchorsVMCallback {
			get {
				if (GetNAnchors_cb_delegate == null)
					GetNAnchors_cb_delegate = new GetNAnchorsNativeDelegate (GetNAnchors_cb);
				return GetNAnchors_cb_delegate;
			}
		}

		static void OverrideGetNAnchors (GLib.GType gtype)
		{
			OverrideGetNAnchors (gtype, GetNAnchorsVMCallback);
		}

		static void OverrideGetNAnchors (GLib.GType gtype, GetNAnchorsNativeDelegate callback)
		{
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_n_anchors"));
				*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
			}
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate int GetNAnchorsNativeDelegate (IntPtr inst);

		static int GetNAnchors_cb (IntPtr inst)
		{
			try {
				Hyperlink __obj = GLib.Object.GetObject (inst, false) as Hyperlink;
				int __result;
				__result = __obj.OnGetNAnchors ();
				return __result;
			} catch (Exception e) {
				GLib.ExceptionManager.RaiseUnhandledException (e, true);
				// NOTREACHED: above call does not return.
				throw e;
			}
		}

		[GLib.DefaultSignalHandler(Type=typeof(Atk.Hyperlink), ConnectionMethod="OverrideGetNAnchors")]
		protected virtual int OnGetNAnchors ()
		{
			return InternalGetNAnchors ();
		}

		private int InternalGetNAnchors ()
		{
			GetNAnchorsNativeDelegate unmanaged = null;
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_n_anchors"));
				unmanaged = (GetNAnchorsNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetNAnchorsNativeDelegate));
			}
			if (unmanaged == null) return 0;

			int __result = unmanaged (this.Handle);
			return __result;
		}

		static LinkStateNativeDelegate LinkState_cb_delegate;
		static LinkStateNativeDelegate LinkStateVMCallback {
			get {
				if (LinkState_cb_delegate == null)
					LinkState_cb_delegate = new LinkStateNativeDelegate (LinkState_cb);
				return LinkState_cb_delegate;
			}
		}

		static void OverrideLinkState (GLib.GType gtype)
		{
			OverrideLinkState (gtype, LinkStateVMCallback);
		}

		static void OverrideLinkState (GLib.GType gtype, LinkStateNativeDelegate callback)
		{
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("link_state"));
				*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
			}
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate uint LinkStateNativeDelegate (IntPtr inst);

		static uint LinkState_cb (IntPtr inst)
		{
			try {
				Hyperlink __obj = GLib.Object.GetObject (inst, false) as Hyperlink;
				uint __result;
				__result = __obj.OnLinkState ();
				return __result;
			} catch (Exception e) {
				GLib.ExceptionManager.RaiseUnhandledException (e, true);
				// NOTREACHED: above call does not return.
				throw e;
			}
		}

		[GLib.DefaultSignalHandler(Type=typeof(Atk.Hyperlink), ConnectionMethod="OverrideLinkState")]
		protected virtual uint OnLinkState ()
		{
			return InternalLinkState ();
		}

		private uint InternalLinkState ()
		{
			LinkStateNativeDelegate unmanaged = null;
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("link_state"));
				unmanaged = (LinkStateNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(LinkStateNativeDelegate));
			}
			if (unmanaged == null) return 0;

			uint __result = unmanaged (this.Handle);
			return __result;
		}

		static IsSelectedLinkNativeDelegate IsSelectedLink_cb_delegate;
		static IsSelectedLinkNativeDelegate IsSelectedLinkVMCallback {
			get {
				if (IsSelectedLink_cb_delegate == null)
					IsSelectedLink_cb_delegate = new IsSelectedLinkNativeDelegate (IsSelectedLink_cb);
				return IsSelectedLink_cb_delegate;
			}
		}

		static void OverrideIsSelectedLink (GLib.GType gtype)
		{
			OverrideIsSelectedLink (gtype, IsSelectedLinkVMCallback);
		}

		static void OverrideIsSelectedLink (GLib.GType gtype, IsSelectedLinkNativeDelegate callback)
		{
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("is_selected_link"));
				*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
			}
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate bool IsSelectedLinkNativeDelegate (IntPtr inst);

		static bool IsSelectedLink_cb (IntPtr inst)
		{
			try {
				Hyperlink __obj = GLib.Object.GetObject (inst, false) as Hyperlink;
				bool __result;
				__result = __obj.OnIsSelectedLink ();
				return __result;
			} catch (Exception e) {
				GLib.ExceptionManager.RaiseUnhandledException (e, true);
				// NOTREACHED: above call does not return.
				throw e;
			}
		}

		[GLib.DefaultSignalHandler(Type=typeof(Atk.Hyperlink), ConnectionMethod="OverrideIsSelectedLink")]
		protected virtual bool OnIsSelectedLink ()
		{
			return InternalIsSelectedLink ();
		}

		private bool InternalIsSelectedLink ()
		{
			IsSelectedLinkNativeDelegate unmanaged = null;
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("is_selected_link"));
				unmanaged = (IsSelectedLinkNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(IsSelectedLinkNativeDelegate));
			}
			if (unmanaged == null) return false;

			bool __result = unmanaged (this.Handle);
			return __result;
		}

		static LinkActivatedNativeDelegate LinkActivated_cb_delegate;
		static LinkActivatedNativeDelegate LinkActivatedVMCallback {
			get {
				if (LinkActivated_cb_delegate == null)
					LinkActivated_cb_delegate = new LinkActivatedNativeDelegate (LinkActivated_cb);
				return LinkActivated_cb_delegate;
			}
		}

		static void OverrideLinkActivated (GLib.GType gtype)
		{
			OverrideLinkActivated (gtype, LinkActivatedVMCallback);
		}

		static void OverrideLinkActivated (GLib.GType gtype, LinkActivatedNativeDelegate callback)
		{
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("link_activated"));
				*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
			}
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void LinkActivatedNativeDelegate (IntPtr inst);

		static void LinkActivated_cb (IntPtr inst)
		{
			try {
				Hyperlink __obj = GLib.Object.GetObject (inst, false) as Hyperlink;
				__obj.OnLinkActivated ();
			} catch (Exception e) {
				GLib.ExceptionManager.RaiseUnhandledException (e, false);
			}
		}

		[GLib.DefaultSignalHandler(Type=typeof(Atk.Hyperlink), ConnectionMethod="OverrideLinkActivated")]
		protected virtual void OnLinkActivated ()
		{
			InternalLinkActivated ();
		}

		private void InternalLinkActivated ()
		{
			LinkActivatedNativeDelegate unmanaged = null;
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("link_activated"));
				unmanaged = (LinkActivatedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(LinkActivatedNativeDelegate));
			}
			if (unmanaged == null) return;

			unmanaged (this.Handle);
		}


		// Internal representation of the wrapped structure ABI.
		static GLib.AbiStruct _class_abi = null;
		static public new GLib.AbiStruct class_abi {
			get {
				if (_class_abi == null)
					_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{ 
						new GLib.AbiField("get_uri"
							, GLib.Object.class_abi.Fields
							, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_uri
							, null
							, "get_object"
							, (uint) Marshal.SizeOf(typeof(IntPtr))
							, 0
							),
						new GLib.AbiField("get_object"
							, -1
							, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_object
							, "get_uri"
							, "get_end_index"
							, (uint) Marshal.SizeOf(typeof(IntPtr))
							, 0
							),
						new GLib.AbiField("get_end_index"
							, -1
							, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_end_index
							, "get_object"
							, "get_start_index"
							, (uint) Marshal.SizeOf(typeof(IntPtr))
							, 0
							),
						new GLib.AbiField("get_start_index"
							, -1
							, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_start_index
							, "get_end_index"
							, "is_valid"
							, (uint) Marshal.SizeOf(typeof(IntPtr))
							, 0
							),
						new GLib.AbiField("is_valid"
							, -1
							, (uint) Marshal.SizeOf(typeof(IntPtr)) // is_valid
							, "get_start_index"
							, "get_n_anchors"
							, (uint) Marshal.SizeOf(typeof(IntPtr))
							, 0
							),
						new GLib.AbiField("get_n_anchors"
							, -1
							, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_n_anchors
							, "is_valid"
							, "link_state"
							, (uint) Marshal.SizeOf(typeof(IntPtr))
							, 0
							),
						new GLib.AbiField("link_state"
							, -1
							, (uint) Marshal.SizeOf(typeof(IntPtr)) // link_state
							, "get_n_anchors"
							, "is_selected_link"
							, (uint) Marshal.SizeOf(typeof(IntPtr))
							, 0
							),
						new GLib.AbiField("is_selected_link"
							, -1
							, (uint) Marshal.SizeOf(typeof(IntPtr)) // is_selected_link
							, "link_state"
							, "link_activated"
							, (uint) Marshal.SizeOf(typeof(IntPtr))
							, 0
							),
						new GLib.AbiField("link_activated"
							, -1
							, (uint) Marshal.SizeOf(typeof(IntPtr)) // link_activated
							, "is_selected_link"
							, "pad1"
							, (uint) Marshal.SizeOf(typeof(IntPtr))
							, 0
							),
						new GLib.AbiField("pad1"
							, -1
							, (uint) Marshal.SizeOf(typeof(IntPtr)) // pad1
							, "link_activated"
							, null
							, (uint) Marshal.SizeOf(typeof(IntPtr))
							, 0
							),
					});

				return _class_abi;
			}
		}


		// End of the ABI representation.

		[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern int atk_hyperlink_get_n_anchors(IntPtr raw);

		public int NAnchors { 
			get {
				int raw_ret = atk_hyperlink_get_n_anchors(Handle);
				int ret = raw_ret;
				return ret;
			}
		}

		[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr atk_hyperlink_get_object(IntPtr raw, int i);

		public Atk.Object GetObject(int i) {
			IntPtr raw_ret = atk_hyperlink_get_object(Handle, i);
			Atk.Object ret = GLib.Object.GetObject(raw_ret) as Atk.Object;
			return ret;
		}

		[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr atk_hyperlink_get_type();

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

		[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr atk_hyperlink_get_uri(IntPtr raw, int i);

		public string GetUri(int i) {
			IntPtr raw_ret = atk_hyperlink_get_uri(Handle, i);
			string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
			return ret;
		}

		[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern bool atk_hyperlink_is_inline(IntPtr raw);

		public bool IsInline { 
			get {
				bool raw_ret = atk_hyperlink_is_inline(Handle);
				bool ret = raw_ret;
				return ret;
			}
		}

		[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern bool atk_hyperlink_is_selected_link(IntPtr raw);

		[Obsolete]
		public bool IsSelectedLink { 
			get {
				bool raw_ret = atk_hyperlink_is_selected_link(Handle);
				bool ret = raw_ret;
				return ret;
			}
		}

		[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern bool atk_hyperlink_is_valid(IntPtr raw);

		public bool IsValid { 
			get {
				bool raw_ret = atk_hyperlink_is_valid(Handle);
				bool ret = raw_ret;
				return ret;
			}
		}

		[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern bool atk_action_do_action(IntPtr raw, int i);

		public bool DoAction(int i) {
			bool raw_ret = atk_action_do_action(Handle, i);
			bool ret = raw_ret;
			return ret;
		}

		[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr atk_action_get_description(IntPtr raw, int i);

		public string GetDescription(int i) {
			IntPtr raw_ret = atk_action_get_description(Handle, i);
			string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
			return ret;
		}

		[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr atk_action_get_keybinding(IntPtr raw, int i);

		public string GetKeybinding(int i) {
			IntPtr raw_ret = atk_action_get_keybinding(Handle, i);
			string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
			return ret;
		}

		[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr atk_action_get_localized_name(IntPtr raw, int i);

		public string GetLocalizedName(int i) {
			IntPtr raw_ret = atk_action_get_localized_name(Handle, i);
			string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
			return ret;
		}

		[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern int atk_action_get_n_actions(IntPtr raw);

		public int NActions { 
			get {
				int raw_ret = atk_action_get_n_actions(Handle);
				int ret = raw_ret;
				return ret;
			}
		}

		[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr atk_action_get_name(IntPtr raw, int i);

		public string GetName(int i) {
			IntPtr raw_ret = atk_action_get_name(Handle, i);
			string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
			return ret;
		}

		[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern bool atk_action_set_description(IntPtr raw, int i, IntPtr desc);

		public bool SetDescription(int i, string desc) {
			IntPtr native_desc = GLib.Marshaller.StringToPtrGStrdup (desc);
			bool raw_ret = atk_action_set_description(Handle, i, native_desc);
			bool ret = raw_ret;
			GLib.Marshaller.Free (native_desc);
			return ret;
		}


		// Internal representation of the wrapped structure ABI.
		static GLib.AbiStruct _abi_info = null;
		static public new GLib.AbiStruct abi_info {
			get {
				if (_abi_info == null)
					_abi_info = new GLib.AbiStruct (GLib.Object.abi_info.Fields);

				return _abi_info;
			}
		}


		// End of the ABI representation.

#endregion
	}
}