static void OverrideRemoveChild(GLib.GType gtype, RemoveChildNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("remove_child")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private bool InternalRemoveChild(GES.TimelineElement element) { RemoveChildNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("remove_child")); unmanaged = (RemoveChildNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(RemoveChildNativeDelegate)); } if (unmanaged == null) { return(false); } bool __result = unmanaged(this.Handle, element == null ? IntPtr.Zero : element.Handle); return(__result); }