static void OverrideMoveCursor(GLib.GType gtype, MoveCursorNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("move_cursor")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private void InternalMoveCursor(Gtk.MovementStep step, int count, bool extend_selection) { MoveCursorNativeDelegate unmanaged = class_abi.BaseOverride <MoveCursorNativeDelegate>(this.LookupGType(), "move_cursor"); if (unmanaged == null) { return; } unmanaged(this.Handle, (int)step, count, extend_selection); }
private void InternalMoveCursor(Gtk.ScrollStep step, int num) { MoveCursorNativeDelegate unmanaged = class_abi.BaseOverride <MoveCursorNativeDelegate>(this.LookupGType(), "move_cursor"); if (unmanaged == null) { return; } unmanaged(this.Handle, (int)step, num); }
private bool InternalMoveCursor(Gtk.MovementStep step, int count) { MoveCursorNativeDelegate unmanaged = class_abi.BaseOverride <MoveCursorNativeDelegate>(this.LookupGType(), "move_cursor"); if (unmanaged == null) { return(false); } bool __result = unmanaged(this.Handle, (int)step, count); return(__result); }
private void InternalMoveCursor(Gtk.MovementStep step, int count) { MoveCursorNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("move_cursor")); unmanaged = (MoveCursorNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(MoveCursorNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle, (int)step, count); }
static void OverrideMoveCursor (GLib.GType gtype, MoveCursorNativeDelegate callback) { GtkIconViewClass class_iface = GetClassStruct (gtype, false); class_iface.MoveCursor = callback; OverrideClassStruct (gtype, class_iface); }