static void OverrideAcceptPosition(GLib.GType gtype, AcceptPositionNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("accept_position")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private bool InternalAcceptPosition() { AcceptPositionNativeDelegate unmanaged = class_abi.BaseOverride <AcceptPositionNativeDelegate>(this.LookupGType(), "accept_position"); if (unmanaged == null) { return(false); } bool __result = unmanaged(this.Handle); return(__result); }
private bool InternalAcceptPosition() { AcceptPositionNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("accept_position")); unmanaged = (AcceptPositionNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(AcceptPositionNativeDelegate)); } if (unmanaged == null) { return(false); } bool __result = unmanaged(this.Handle); return(__result); }
static void OverrideAcceptPosition (GLib.GType gtype, AcceptPositionNativeDelegate callback) { GtkPanedClass class_iface = GetClassStruct (gtype, false); class_iface.AcceptPosition = callback; OverrideClassStruct (gtype, class_iface); }