private void InternalMoveCurrent(Gtk.MenuDirectionType direction) { MoveCurrentNativeDelegate unmanaged = class_abi.BaseOverride <MoveCurrentNativeDelegate>(this.LookupGType(), "move_current"); if (unmanaged == null) { return; } unmanaged(this.Handle, (int)direction); }
private void InternalMoveCurrent(Gtk.MenuDirectionType direction) { MoveCurrentNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("move_current")); unmanaged = (MoveCurrentNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(MoveCurrentNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle, (int)direction); }
protected virtual void OnMoveCurrent(Gtk.MenuDirectionType direction) { InternalMoveCurrent(direction); }