private bool SwigDirectorcancel(IntPtr sender) { return cancel((sender == IntPtr.Zero) ? null : new MgMotion(sender, false)); }