static void OverrideMoveFocusOut(GLib.GType gtype, MoveFocusOutNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("move_focus_out")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private void InternalMoveFocusOut(Gtk.DirectionType direction) { MoveFocusOutNativeDelegate unmanaged = class_abi.BaseOverride <MoveFocusOutNativeDelegate>(this.LookupGType(), "move_focus_out"); if (unmanaged == null) { return; } unmanaged(this.Handle, (int)direction); }
private void InternalMoveFocusOut(Gtk.DirectionType direction) { MoveFocusOutNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("move_focus_out")); unmanaged = (MoveFocusOutNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(MoveFocusOutNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle, (int)direction); }
static void OverrideMoveFocusOut (GLib.GType gtype, MoveFocusOutNativeDelegate callback) { GtkScrolledWindowClass class_iface = GetClassStruct (gtype, false); class_iface.MoveFocusOut = callback; OverrideClassStruct (gtype, class_iface); }