static void OverrideThreadsLeave(GLib.GType gtype, ThreadsLeaveNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("threads_leave")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private void InternalThreadsLeave() { ThreadsLeaveNativeDelegate unmanaged = class_abi.BaseOverride <ThreadsLeaveNativeDelegate>(this.LookupGType(), "threads_leave"); if (unmanaged == null) { return; } unmanaged(this.Handle); }
private void InternalThreadsLeave() { ThreadsLeaveNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("threads_leave")); unmanaged = (ThreadsLeaveNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ThreadsLeaveNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle); }
static void OverrideThreadsLeave (GLib.GType gtype, ThreadsLeaveNativeDelegate callback) { AtkMiscClass class_iface = GetClassStruct (gtype, false); class_iface.ThreadsLeave = callback; OverrideClassStruct (gtype, class_iface); }