Пример #1
0
 static void OverrideEndFrame(GLib.GType gtype, EndFrameNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("end_frame"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Пример #2
0
        private void InternalEndFrame(Cairo.Region painted, Cairo.Region damage)
        {
            EndFrameNativeDelegate unmanaged = class_abi.BaseOverride <EndFrameNativeDelegate>(this.LookupGType(), "end_frame");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, painted == null ? IntPtr.Zero : painted.Handle, damage == null ? IntPtr.Zero : damage.Handle);
        }
Пример #3
0
        private void InternalEndFrame(Cairo.Region painted, Cairo.Region damage)
        {
            EndFrameNativeDelegate unmanaged = null;

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

            unmanaged(this.Handle, painted == null ? IntPtr.Zero : painted.Handle, damage == null ? IntPtr.Zero : damage.Handle);
        }