static void OverrideClosed(GLib.GType gtype, ClosedNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("closed")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
static void OverrideClosed(GLib.GType gtype, ClosedNativeDelegate callback) { GtkPopoverClass class_iface = GetClassStruct(gtype, false); class_iface.Closed = callback; OverrideClassStruct(gtype, class_iface); }
private void InternalClosed() { ClosedNativeDelegate unmanaged = class_abi.BaseOverride <ClosedNativeDelegate>(this.LookupGType(), "closed"); if (unmanaged == null) { return; } unmanaged(this.Handle); }
private void InternalClosed() { ClosedNativeDelegate unmanaged = GetClassStruct(this.LookupGType().GetThresholdType(), true).Closed; if (unmanaged == null) { return; } unmanaged(this.Handle); }
private void InternalClosed() { ClosedNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("closed")); unmanaged = (ClosedNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ClosedNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle); }
static void OverrideClosed (GLib.GType gtype, ClosedNativeDelegate callback) { GdkDisplayClass class_iface = GetClassStruct (gtype, false); class_iface.Closed = callback; OverrideClassStruct (gtype, class_iface); }