Ejemplo n.º 1
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);
		}
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
Ejemplo n.º 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);
        }
Ejemplo n.º 5
0
 extern static IntPtr CGPatternCreate(IntPtr info, RectangleF bounds, CGAffineTransform matrix,
                                      float xStep, float yStep,
                                      CGPatternTiling tiling, bool isColored,
                                      ref CGPatternCallbacks callbacks);
Ejemplo n.º 6
0
		extern static IntPtr CGPatternCreate(IntPtr info, RectangleF bounds, CGAffineTransform matrix,
						     float xStep, float yStep,
						     CGPatternTiling tiling, bool isColored,
						     ref CGPatternCallbacks callbacks);
Ejemplo n.º 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);