public CGPattern (RectangleF bounds, CGAffineTransform matrix, float xStep, float yStep, CGPatternTiling tiling, bool isColored, DrawPattern drawPattern)
		{
			if (drawPattern == null)
				throw new ArgumentNullException ("drawPattern");

			callbacks.draw = DrawCallback;
			callbacks.release = ReleaseCallback;
			callbacks.version = 0;
			this.draw_pattern = drawPattern;

			gch = GCHandle.Alloc (this);
			handle = CGPatternCreate (GCHandle.ToIntPtr (gch) , bounds, matrix, xStep, yStep, tiling, isColored, ref callbacks);
		}
Beispiel #2
0
        public CGPattern(CGRect bounds, CGAffineTransform matrix, nfloat xStep, nfloat yStep, CGPatternTiling tiling, bool isColored, DrawPattern drawPattern)
        {
            if (drawPattern == null)
            {
                throw new ArgumentNullException(nameof(drawPattern));
            }

            callbacks.draw    = DrawCallback;
            callbacks.release = ReleaseCallback;
            callbacks.version = 0;

            gch    = GCHandle.Alloc(drawPattern);
            Handle = CGPatternCreate(GCHandle.ToIntPtr(gch), bounds, matrix, xStep, yStep, tiling, isColored, ref callbacks);
        }
Beispiel #3
0
 extern static IntPtr CGPatternCreate(/* void* */ IntPtr info, CGRect bounds, CGAffineTransform matrix,
                                      /* CGFloat */ nfloat xStep, /* CGFloat */ nfloat yStep, CGPatternTiling tiling, bool isColored,
                                      /* const CGPatternCallbacks* */ ref CGPatternCallbacks callbacks);
Beispiel #4
0
        public CGPattern(RectangleF bounds, CGAffineTransform matrix, float xStep, float yStep, CGPatternTiling tiling, bool isColored, DrawPattern drawPattern)
        {
            if (drawPattern == null)
            {
                throw new ArgumentNullException("drawPattern");
            }

            callbacks.draw    = DrawCallback;
            callbacks.release = ReleaseCallback;
            callbacks.version = 0;
            this.draw_pattern = drawPattern;

            gch    = GCHandle.Alloc(this);
            handle = CGPatternCreate(GCHandle.ToIntPtr(gch), bounds, matrix, xStep, yStep, tiling, isColored, ref callbacks);
        }
Beispiel #5
0
 extern static IntPtr CGPatternCreate(IntPtr info, RectangleF bounds, CGAffineTransform matrix,
                                      float xStep, float yStep,
                                      CGPatternTiling tiling, bool isColored,
                                      ref CGPatternCallbacks callbacks);
		extern static IntPtr CGPatternCreate(IntPtr info, RectangleF bounds, CGAffineTransform matrix,
						     float xStep, float yStep,
						     CGPatternTiling tiling, bool isColored,
						     ref CGPatternCallbacks callbacks);
Beispiel #7
0
		extern static IntPtr CGPatternCreate (/* void* */ IntPtr info, CGRect bounds, CGAffineTransform matrix,
			/* CGFloat */ nfloat xStep, /* CGFloat */ nfloat yStep, CGPatternTiling tiling, bool isColored,
			/* const CGPatternCallbacks* */ ref CGPatternCallbacks callbacks);