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); } }
private void InternalThaw() { ThawNativeDelegate unmanaged = class_abi.BaseOverride <ThawNativeDelegate>(this.LookupGType(), "thaw"); if (unmanaged == null) { return; } unmanaged(this.Handle); }
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); }