예제 #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
파일: CompositeCell.cs 프로젝트: m13253/xwt
		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));
 }