static void OverrideMoveHandle(GLib.GType gtype, MoveHandleNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("move_handle")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private bool InternalMoveHandle(Gtk.ScrollType scroll) { MoveHandleNativeDelegate unmanaged = class_abi.BaseOverride <MoveHandleNativeDelegate>(this.LookupGType(), "move_handle"); if (unmanaged == null) { return(false); } bool __result = unmanaged(this.Handle, (int)scroll); return(__result); }
private bool InternalMoveHandle(Gtk.ScrollType scroll) { MoveHandleNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("move_handle")); unmanaged = (MoveHandleNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(MoveHandleNativeDelegate)); } if (unmanaged == null) { return(false); } bool __result = unmanaged(this.Handle, (int)scroll); return(__result); }
static void OverrideMoveHandle (GLib.GType gtype, MoveHandleNativeDelegate callback) { GtkPanedClass class_iface = GetClassStruct (gtype, false); class_iface.MoveHandle = callback; OverrideClassStruct (gtype, class_iface); }