Пример #1
0
        NSObject INSCopying.Copy(NSZone zone)
        {
            var ob = (ICopiableObject) new CompositeCell();

            ob.CopyFrom(this);
            return((NSObject)ob);
        }
Пример #2
0
        public NSObject Copy(NSZone zone)
        {
            var board = new Board();

            board.SetGameModel(this);
            return(board);
        }
Пример #3
0
        public override NSObject Copy(NSZone zone)
        {
            var ob = (ICopiableObject)base.Copy(zone);

            ob.CopyFrom(this);
            return((NSObject)ob);
        }
Пример #4
0
 public NSObject Copy(NSZone zone)
 {
     if (zone == null)
     {
         throw new ArgumentNullException("zone");
     }
     return(Runtime.GetNSObject(global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("copyWithZone:"), zone.Handle)));
 }
        public override NSObject Copy(NSZone zone)
        {
            var copy = base.Copy(zone) as PinterestLayoutAttributes;

            copy.AnnotationHeight = AnnotationHeight;
            copy.AnnotationWidth  = AnnotationWidth;
            return(copy);
        }
Пример #6
0
        /// <summary>
        /// Like what happens for the ios designer, AppKit can sometimes clone the native `NSTextFieldCell` using the Copy (NSZone)
        /// method. We *need* to ensure we can create a new managed wrapper for the cloned native object so we need the IntPtr
        /// constructor. NOTE: By keeping this override in managed we ensure the new wrapper C# object is created ~immediately,
        /// which makes it easier to debug issues.
        /// </summary>
        /// <returns>The copy.</returns>
        /// <param name="zone">Zone.</param>
        public override NSObject Copy(NSZone zone)
        {
            // Don't remove this override because the comment on this explains why we need this!
            var newCell = (CustomTextFieldCell)base.Copy(zone);

            newCell.bgColor = bgColor;
            return(newCell);
        }
        /// <summary>
        /// Like what happens for the ios designer, AppKit can sometimes clone the native `NSTextFieldCell` using the Copy (NSZone)
        /// method. We *need* to ensure we can create a new managed wrapper for the cloned native object so we need the IntPtr
        /// constructor. NOTE: By keeping this override in managed we ensure the new wrapper C# object is created ~immediately,
        /// which makes it easier to debug issues.
        /// </summary>
        /// <returns>The copy.</returns>
        /// <param name="zone">Zone.</param>
        public override NSObject Copy(NSZone zone)
        {
            // Don't remove this override because the comment on this explains why we need this!
            var newCell = (VerticallyCenteredTextFieldCell)base.Copy(zone);

            newCell.offset = offset;
            return(newCell);
        }
Пример #8
0
        public override NSObject Copy(NSZone zone)
        {
            // required by objc method override
            var copy = base.Copy(zone) as BoardAnchor;

            copy.Size = this.Size;
            return(copy);
        }
Пример #9
0
        public override NSObject Copy(NSZone zone)
        {
            // required by objc method override
            var copy = base.Copy(zone) as KeyPositionAnchor;

            copy.Image         = this.Image;
            copy.MappingStatus = this.MappingStatus;
            return(copy);
        }
Пример #10
0
 public override NSObject Copy(NSZone zone)
 {
     StretchImage image = (StretchImage)base.Copy(zone);
     image.StartPoint = this.StartPoint;
     image.EndPoint = this.EndPoint;
     image.Opacity = this.Opacity;
     image.PerformSelector(new Selector("retain"));
     return image;
 }
Пример #11
0
        public override NSObject Copy(NSZone zone)
        {
            StretchImage image = (StretchImage)base.Copy(zone);

            image.StartPoint = this.StartPoint;
            image.EndPoint   = this.EndPoint;
            image.Opacity    = this.Opacity;
            image.PerformSelector(new Selector("retain"));
            return(image);
        }
Пример #12
0
        public override NSObject Copy(NSZone zone)
        {
            var copy = (SpringAnimation)base.Copy(zone);

            copy._steps        = _steps;
            copy._spring       = _spring;
            copy._interpolator = _interpolator;
            copy.Speed         = Speed * (float)(1.0 / EasingAnimation.DragCoefficient());
            return(copy);
        }
Пример #13
0
            /// <summary>
            /// Like what happens for the ios designer, AppKit can sometimes clone the native `NSTextFieldCell` using the Copy (NSZone)
            /// method. We *need* to ensure we can create a new managed wrapper for the cloned native object so we need the IntPtr
            /// constructor. NOTE: By keeping this override in managed we ensure the new wrapper C# object is created ~immediately,
            /// which makes it easier to debug issues.
            /// </summary>
            /// <returns>The copy.</returns>
            /// <param name="zone">Zone.</param>
            public override NSObject Copy(NSZone zone)
            {
                // Don't remove this override because the comment on this explains why we need this!
                var newCell = (CustomCell)base.Copy(zone);

                newCell.editor            = editor;
                newCell.selChangeObserver = selChangeObserver;
                newCell.Context           = Context;
                newCell.EventSink         = EventSink;
                return(newCell);
            }
Пример #14
0
        public override NSObject Copy(NSZone zone)
        {
            var copy = (EasingAnimation)base.Copy(zone);

            copy._curve        = _curve;
            copy._interpolator = _interpolator;

            var drag = (float)(1.0 / DragCoefficient());

            copy.Speed = Speed * drag;
            return(copy);
        }
        public virtual NSObject Copy(NSZone zone)
        {
            var zone__handle__ = zone.GetNonNullHandle(nameof(zone));

            if (IsDirectBinding)
            {
                return(Runtime.GetNSObject(global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("copyWithZone:"), zone.Handle)));
            }
            else
            {
                return(Runtime.GetNSObject(global::ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("copyWithZone:"), zone.Handle)));
            }
        }
Пример #16
0
 public virtual NSObject Copy(NSZone zone)
 {
     if (zone == null)
     {
         throw new ArgumentNullException("zone");
     }
     if (IsDirectBinding)
     {
         return(Runtime.GetNSObject(global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("copyWithZone:"), zone.Handle)));
     }
     else
     {
         return(Runtime.GetNSObject(global::ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("copyWithZone:"), zone.Handle)));
     }
 }
Пример #17
0
		public NSObject Copy (NSZone zone)
		{
			var board = new Board ();
			board.SetGameModel (this);
			return board;
		}
		public virtual NSObject Copy (NSZone zone)
		{
			if (zone == null)
				throw new ArgumentNullException ("zone");
			if (IsDirectBinding) {
				return Runtime.GetNSObject (global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("copyWithZone:"), zone.Handle));
			} else {
				return Runtime.GetNSObject (global::ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("copyWithZone:"), zone.Handle));
			}
		}
Пример #19
0
		public override NSObject Copy (NSZone zone)
		{
			var attributes = (MyCollectionViewGridLayoutAttributes)base.Copy (zone);
			attributes.BackgroundColor = BackgroundColor;
			return attributes;
		}
Пример #20
0
		public override NSObject Copy (NSZone zone)
		{
			return new CustomImage (actx, drawCallback);
		}
Пример #21
0
		public NSObject Copy (NSZone zone)
		{
			return null;
		}
        public NSObject Copy(NSZone zone)
        {
            var zone__handle__ = zone.GetNonNullHandle(nameof(zone));

            return(Runtime.GetNSObject(global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("copyWithZone:"), zone.Handle)));
        }
 public override NSObject Copy(NSZone zone)
 {
     return(new NSNumber(val));
 }
Пример #24
0
 public static NSObject AllocWithZone(NSZone zone)
 {
     return(default(NSObject));
 }
Пример #25
0
 public override NSObject Copy(NSZone zone)
 {
     return(base.Copy(zone));
 }
Пример #26
0
		public override NSObject Copy (NSZone zone)
		{
			var ob = (ICopiableObject) base.Copy (zone);
			ob.CopyFrom (this);
			return (NSObject) ob;
		}
Пример #27
0
 public override NSObject Copy(NSZone zone)
 {
     return(new CustomImage(actx, drawCallback));
 }
 public override NSObject Copy(NSZone zone)
 {
     return(new NSString(val));
 }