File: Gdk_FrameClock.cs

package info (click to toggle)
gnome-subtitles 1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • 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 (930 lines) | stat: -rw-r--r-- 27,685 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
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.

namespace Gdk {

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

#region Autogenerated code
	public partial class FrameClock : GLib.Object {

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

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

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

		[GLib.Signal("flush-events")]
		public event System.EventHandler FlushEvents {
			add {
				this.AddSignalHandler ("flush-events", value);
			}
			remove {
				this.RemoveSignalHandler ("flush-events", value);
			}
		}

		[GLib.Signal("after-paint")]
		public event System.EventHandler AfterPaint {
			add {
				this.AddSignalHandler ("after-paint", value);
			}
			remove {
				this.RemoveSignalHandler ("after-paint", value);
			}
		}

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

		[GLib.Signal("before-paint")]
		public event System.EventHandler BeforePaint {
			add {
				this.AddSignalHandler ("before-paint", value);
			}
			remove {
				this.RemoveSignalHandler ("before-paint", value);
			}
		}

		[GLib.Signal("resume-events")]
		public event System.EventHandler ResumeEvents {
			add {
				this.AddSignalHandler ("resume-events", value);
			}
			remove {
				this.RemoveSignalHandler ("resume-events", value);
			}
		}

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

		static FlushEventsNativeDelegate FlushEvents_cb_delegate;
		static FlushEventsNativeDelegate FlushEventsVMCallback {
			get {
				if (FlushEvents_cb_delegate == null)
					FlushEvents_cb_delegate = new FlushEventsNativeDelegate (FlushEvents_cb);
				return FlushEvents_cb_delegate;
			}
		}

		static void OverrideFlushEvents (GLib.GType gtype)
		{
			OverrideFlushEvents (gtype, FlushEventsVMCallback);
		}

		static void OverrideFlushEvents (GLib.GType gtype, FlushEventsNativeDelegate callback)
		{
			OverrideVirtualMethod (gtype, "flush-events", callback);
		}
		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void FlushEventsNativeDelegate (IntPtr inst);

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

		[GLib.DefaultSignalHandler(Type=typeof(Gdk.FrameClock), ConnectionMethod="OverrideFlushEvents")]
		protected virtual void OnFlushEvents ()
		{
			InternalFlushEvents ();
		}

		private void InternalFlushEvents ()
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
			GLib.Value[] vals = new GLib.Value [1];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}

		static BeforePaintNativeDelegate BeforePaint_cb_delegate;
		static BeforePaintNativeDelegate BeforePaintVMCallback {
			get {
				if (BeforePaint_cb_delegate == null)
					BeforePaint_cb_delegate = new BeforePaintNativeDelegate (BeforePaint_cb);
				return BeforePaint_cb_delegate;
			}
		}

		static void OverrideBeforePaint (GLib.GType gtype)
		{
			OverrideBeforePaint (gtype, BeforePaintVMCallback);
		}

		static void OverrideBeforePaint (GLib.GType gtype, BeforePaintNativeDelegate callback)
		{
			OverrideVirtualMethod (gtype, "before-paint", callback);
		}
		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void BeforePaintNativeDelegate (IntPtr inst);

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

		[GLib.DefaultSignalHandler(Type=typeof(Gdk.FrameClock), ConnectionMethod="OverrideBeforePaint")]
		protected virtual void OnBeforePaint ()
		{
			InternalBeforePaint ();
		}

		private void InternalBeforePaint ()
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
			GLib.Value[] vals = new GLib.Value [1];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}

		static UpdateNativeDelegate Update_cb_delegate;
		static UpdateNativeDelegate UpdateVMCallback {
			get {
				if (Update_cb_delegate == null)
					Update_cb_delegate = new UpdateNativeDelegate (Update_cb);
				return Update_cb_delegate;
			}
		}

		static void OverrideUpdate (GLib.GType gtype)
		{
			OverrideUpdate (gtype, UpdateVMCallback);
		}

		static void OverrideUpdate (GLib.GType gtype, UpdateNativeDelegate callback)
		{
			OverrideVirtualMethod (gtype, "update", callback);
		}
		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void UpdateNativeDelegate (IntPtr inst);

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

		[GLib.DefaultSignalHandler(Type=typeof(Gdk.FrameClock), ConnectionMethod="OverrideUpdate")]
		protected virtual void OnUpdate ()
		{
			InternalUpdate ();
		}

		private void InternalUpdate ()
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
			GLib.Value[] vals = new GLib.Value [1];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}

		static LayoutNativeDelegate Layout_cb_delegate;
		static LayoutNativeDelegate LayoutVMCallback {
			get {
				if (Layout_cb_delegate == null)
					Layout_cb_delegate = new LayoutNativeDelegate (Layout_cb);
				return Layout_cb_delegate;
			}
		}

		static void OverrideLayout (GLib.GType gtype)
		{
			OverrideLayout (gtype, LayoutVMCallback);
		}

		static void OverrideLayout (GLib.GType gtype, LayoutNativeDelegate callback)
		{
			OverrideVirtualMethod (gtype, "layout", callback);
		}
		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void LayoutNativeDelegate (IntPtr inst);

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

		[GLib.DefaultSignalHandler(Type=typeof(Gdk.FrameClock), ConnectionMethod="OverrideLayout")]
		protected virtual void OnLayout ()
		{
			InternalLayout ();
		}

		private void InternalLayout ()
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
			GLib.Value[] vals = new GLib.Value [1];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}

		static PaintNativeDelegate Paint_cb_delegate;
		static PaintNativeDelegate PaintVMCallback {
			get {
				if (Paint_cb_delegate == null)
					Paint_cb_delegate = new PaintNativeDelegate (Paint_cb);
				return Paint_cb_delegate;
			}
		}

		static void OverridePaint (GLib.GType gtype)
		{
			OverridePaint (gtype, PaintVMCallback);
		}

		static void OverridePaint (GLib.GType gtype, PaintNativeDelegate callback)
		{
			OverrideVirtualMethod (gtype, "paint", callback);
		}
		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void PaintNativeDelegate (IntPtr inst);

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

		[GLib.DefaultSignalHandler(Type=typeof(Gdk.FrameClock), ConnectionMethod="OverridePaint")]
		protected virtual void OnPaint ()
		{
			InternalPaint ();
		}

		private void InternalPaint ()
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
			GLib.Value[] vals = new GLib.Value [1];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}

		static AfterPaintNativeDelegate AfterPaint_cb_delegate;
		static AfterPaintNativeDelegate AfterPaintVMCallback {
			get {
				if (AfterPaint_cb_delegate == null)
					AfterPaint_cb_delegate = new AfterPaintNativeDelegate (AfterPaint_cb);
				return AfterPaint_cb_delegate;
			}
		}

		static void OverrideAfterPaint (GLib.GType gtype)
		{
			OverrideAfterPaint (gtype, AfterPaintVMCallback);
		}

		static void OverrideAfterPaint (GLib.GType gtype, AfterPaintNativeDelegate callback)
		{
			OverrideVirtualMethod (gtype, "after-paint", callback);
		}
		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void AfterPaintNativeDelegate (IntPtr inst);

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

		[GLib.DefaultSignalHandler(Type=typeof(Gdk.FrameClock), ConnectionMethod="OverrideAfterPaint")]
		protected virtual void OnAfterPaint ()
		{
			InternalAfterPaint ();
		}

		private void InternalAfterPaint ()
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
			GLib.Value[] vals = new GLib.Value [1];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}

		static ResumeEventsNativeDelegate ResumeEvents_cb_delegate;
		static ResumeEventsNativeDelegate ResumeEventsVMCallback {
			get {
				if (ResumeEvents_cb_delegate == null)
					ResumeEvents_cb_delegate = new ResumeEventsNativeDelegate (ResumeEvents_cb);
				return ResumeEvents_cb_delegate;
			}
		}

		static void OverrideResumeEvents (GLib.GType gtype)
		{
			OverrideResumeEvents (gtype, ResumeEventsVMCallback);
		}

		static void OverrideResumeEvents (GLib.GType gtype, ResumeEventsNativeDelegate callback)
		{
			OverrideVirtualMethod (gtype, "resume-events", callback);
		}
		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void ResumeEventsNativeDelegate (IntPtr inst);

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

		[GLib.DefaultSignalHandler(Type=typeof(Gdk.FrameClock), ConnectionMethod="OverrideResumeEvents")]
		protected virtual void OnResumeEvents ()
		{
			InternalResumeEvents ();
		}

		private void InternalResumeEvents ()
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
			GLib.Value[] vals = new GLib.Value [1];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}

		static GetFrameTimeNativeDelegate GetFrameTime_cb_delegate;
		static GetFrameTimeNativeDelegate GetFrameTimeVMCallback {
			get {
				if (GetFrameTime_cb_delegate == null)
					GetFrameTime_cb_delegate = new GetFrameTimeNativeDelegate (GetFrameTime_cb);
				return GetFrameTime_cb_delegate;
			}
		}

		static void OverrideGetFrameTime (GLib.GType gtype)
		{
			OverrideGetFrameTime (gtype, GetFrameTimeVMCallback);
		}

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

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate long GetFrameTimeNativeDelegate (IntPtr inst);

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

		[GLib.DefaultSignalHandler(Type=typeof(Gdk.FrameClock), ConnectionMethod="OverrideGetFrameTime")]
		protected virtual long OnGetFrameTime ()
		{
			return InternalGetFrameTime ();
		}

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

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

		static RequestPhaseNativeDelegate RequestPhase_cb_delegate;
		static RequestPhaseNativeDelegate RequestPhaseVMCallback {
			get {
				if (RequestPhase_cb_delegate == null)
					RequestPhase_cb_delegate = new RequestPhaseNativeDelegate (RequestPhase_cb);
				return RequestPhase_cb_delegate;
			}
		}

		static void OverrideRequestPhase (GLib.GType gtype)
		{
			OverrideRequestPhase (gtype, RequestPhaseVMCallback);
		}

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

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void RequestPhaseNativeDelegate (IntPtr inst, int phase);

		static void RequestPhase_cb (IntPtr inst, int phase)
		{
			try {
				FrameClock __obj = GLib.Object.GetObject (inst, false) as FrameClock;
				__obj.OnRequestPhase ((Gdk.FrameClockPhase) phase);
			} catch (Exception e) {
				GLib.ExceptionManager.RaiseUnhandledException (e, false);
			}
		}

		[GLib.DefaultSignalHandler(Type=typeof(Gdk.FrameClock), ConnectionMethod="OverrideRequestPhase")]
		protected virtual void OnRequestPhase (Gdk.FrameClockPhase phase)
		{
			InternalRequestPhase (phase);
		}

		private void InternalRequestPhase (Gdk.FrameClockPhase phase)
		{
			RequestPhaseNativeDelegate unmanaged = null;
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("request_phase"));
				unmanaged = (RequestPhaseNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(RequestPhaseNativeDelegate));
			}
			if (unmanaged == null) return;

			unmanaged (this.Handle, (int) phase);
		}

		static BeginUpdatingNativeDelegate BeginUpdating_cb_delegate;
		static BeginUpdatingNativeDelegate BeginUpdatingVMCallback {
			get {
				if (BeginUpdating_cb_delegate == null)
					BeginUpdating_cb_delegate = new BeginUpdatingNativeDelegate (BeginUpdating_cb);
				return BeginUpdating_cb_delegate;
			}
		}

		static void OverrideBeginUpdating (GLib.GType gtype)
		{
			OverrideBeginUpdating (gtype, BeginUpdatingVMCallback);
		}

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

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

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

		[GLib.DefaultSignalHandler(Type=typeof(Gdk.FrameClock), ConnectionMethod="OverrideBeginUpdating")]
		protected virtual void OnBeginUpdating ()
		{
			InternalBeginUpdating ();
		}

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

			unmanaged (this.Handle);
		}

		static EndUpdatingNativeDelegate EndUpdating_cb_delegate;
		static EndUpdatingNativeDelegate EndUpdatingVMCallback {
			get {
				if (EndUpdating_cb_delegate == null)
					EndUpdating_cb_delegate = new EndUpdatingNativeDelegate (EndUpdating_cb);
				return EndUpdating_cb_delegate;
			}
		}

		static void OverrideEndUpdating (GLib.GType gtype)
		{
			OverrideEndUpdating (gtype, EndUpdatingVMCallback);
		}

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

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

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

		[GLib.DefaultSignalHandler(Type=typeof(Gdk.FrameClock), ConnectionMethod="OverrideEndUpdating")]
		protected virtual void OnEndUpdating ()
		{
			InternalEndUpdating ();
		}

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

			unmanaged (this.Handle);
		}

		static FreezeNativeDelegate Freeze_cb_delegate;
		static FreezeNativeDelegate FreezeVMCallback {
			get {
				if (Freeze_cb_delegate == null)
					Freeze_cb_delegate = new FreezeNativeDelegate (Freeze_cb);
				return Freeze_cb_delegate;
			}
		}

		static void OverrideFreeze (GLib.GType gtype)
		{
			OverrideFreeze (gtype, FreezeVMCallback);
		}

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

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

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

		[GLib.DefaultSignalHandler(Type=typeof(Gdk.FrameClock), ConnectionMethod="OverrideFreeze")]
		protected virtual void OnFreeze ()
		{
			InternalFreeze ();
		}

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

			unmanaged (this.Handle);
		}

		static ThawNativeDelegate Thaw_cb_delegate;
		static ThawNativeDelegate ThawVMCallback {
			get {
				if (Thaw_cb_delegate == null)
					Thaw_cb_delegate = new ThawNativeDelegate (Thaw_cb);
				return Thaw_cb_delegate;
			}
		}

		static void OverrideThaw (GLib.GType gtype)
		{
			OverrideThaw (gtype, ThawVMCallback);
		}

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

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

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

		[GLib.DefaultSignalHandler(Type=typeof(Gdk.FrameClock), ConnectionMethod="OverrideThaw")]
		protected virtual void OnThaw ()
		{
			InternalThaw ();
		}

		private void InternalThaw ()
		{
			ThawNativeDelegate unmanaged = null;
			unsafe {
				IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("thaw"));
				unmanaged = (ThawNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ThawNativeDelegate));
			}
			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_frame_time"
							, GLib.Object.class_abi.Fields
							, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_frame_time
							, null
							, "request_phase"
							, (uint) Marshal.SizeOf(typeof(IntPtr))
							, 0
							),
						new GLib.AbiField("request_phase"
							, -1
							, (uint) Marshal.SizeOf(typeof(IntPtr)) // request_phase
							, "get_frame_time"
							, "begin_updating"
							, (uint) Marshal.SizeOf(typeof(IntPtr))
							, 0
							),
						new GLib.AbiField("begin_updating"
							, -1
							, (uint) Marshal.SizeOf(typeof(IntPtr)) // begin_updating
							, "request_phase"
							, "end_updating"
							, (uint) Marshal.SizeOf(typeof(IntPtr))
							, 0
							),
						new GLib.AbiField("end_updating"
							, -1
							, (uint) Marshal.SizeOf(typeof(IntPtr)) // end_updating
							, "begin_updating"
							, "freeze"
							, (uint) Marshal.SizeOf(typeof(IntPtr))
							, 0
							),
						new GLib.AbiField("freeze"
							, -1
							, (uint) Marshal.SizeOf(typeof(IntPtr)) // freeze
							, "end_updating"
							, "thaw"
							, (uint) Marshal.SizeOf(typeof(IntPtr))
							, 0
							),
						new GLib.AbiField("thaw"
							, -1
							, (uint) Marshal.SizeOf(typeof(IntPtr)) // thaw
							, "freeze"
							, null
							, (uint) Marshal.SizeOf(typeof(IntPtr))
							, 0
							),
					});

				return _class_abi;
			}
		}


		// End of the ABI representation.

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

		public void BeginUpdating() {
			gdk_frame_clock_begin_updating(Handle);
		}

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

		public void EndUpdating() {
			gdk_frame_clock_end_updating(Handle);
		}

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

		public Gdk.FrameTimings CurrentTimings { 
			get {
				IntPtr raw_ret = gdk_frame_clock_get_current_timings(Handle);
				Gdk.FrameTimings ret = raw_ret == IntPtr.Zero ? null : (Gdk.FrameTimings) GLib.Opaque.GetOpaque (raw_ret, typeof (Gdk.FrameTimings), false);
				return ret;
			}
		}

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

		public long FrameCounter { 
			get {
				long raw_ret = gdk_frame_clock_get_frame_counter(Handle);
				long ret = raw_ret;
				return ret;
			}
		}

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

		public long FrameTime { 
			get {
				long raw_ret = gdk_frame_clock_get_frame_time(Handle);
				long ret = raw_ret;
				return ret;
			}
		}

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

		public long HistoryStart { 
			get {
				long raw_ret = gdk_frame_clock_get_history_start(Handle);
				long ret = raw_ret;
				return ret;
			}
		}

		[DllImport("gdk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gdk_frame_clock_get_refresh_info(IntPtr raw, long base_time, out long refresh_interval_return, out long presentation_time_return);

		public void GetRefreshInfo(long base_time, out long refresh_interval_return, out long presentation_time_return) {
			gdk_frame_clock_get_refresh_info(Handle, base_time, out refresh_interval_return, out presentation_time_return);
		}

		[DllImport("gdk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gdk_frame_clock_get_timings(IntPtr raw, long frame_counter);

		public Gdk.FrameTimings GetTimings(long frame_counter) {
			IntPtr raw_ret = gdk_frame_clock_get_timings(Handle, frame_counter);
			Gdk.FrameTimings ret = raw_ret == IntPtr.Zero ? null : (Gdk.FrameTimings) GLib.Opaque.GetOpaque (raw_ret, typeof (Gdk.FrameTimings), false);
			return ret;
		}

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

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

		[DllImport("gdk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gdk_frame_clock_request_phase(IntPtr raw, int phase);

		public void RequestPhase(Gdk.FrameClockPhase phase) {
			gdk_frame_clock_request_phase(Handle, (int) phase);
		}


		// 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
	}
}