示例#1
0
		public void DrawThreePartImage (RectangleF frame, NSImage startCap, NSImage centerFill, NSImage endCap, bool vertical, NSCompositingOperation op, float alphaFraction, bool flipped)
		{
			NSDrawThreePartImage (
				frame, startCap != null ? startCap.Handle : IntPtr.Zero,
				centerFill != null ? centerFill.Handle : IntPtr.Zero,
				endCap != null ? endCap.Handle : IntPtr.Zero,
				vertical, (int)op, alphaFraction, flipped);
		}
示例#2
0
 public void DrawThreePartImage(CGRect frame,
                                NSImage startCap, NSImage centerFill, NSImage endCap,
                                bool vertical, NSCompositingOperation op, nfloat alphaFraction, bool flipped)
 {
     NSDrawThreePartImage(
         frame, startCap != null ? startCap.Handle : IntPtr.Zero,
         centerFill != null ? centerFill.Handle : IntPtr.Zero,
         endCap != null ? endCap.Handle : IntPtr.Zero,
         vertical, (nint)(long)op, alphaFraction, flipped);
 }
示例#3
0
		public void DrawNinePartImage (RectangleF frame, NSImage topLeftCorner, NSImage topEdgeFill, NSImage topRightCorner, NSImage leftEdgeFill, NSImage centerFill, NSImage rightEdgeFill, NSImage bottomLeftCorner, NSImage bottomEdgeFill, NSImage bottomRightCorner, NSCompositingOperation op, float alphaFraction, bool flipped)
		{
			NSDrawNinePartImage (
				frame, topLeftCorner != null ? topLeftCorner.Handle : IntPtr.Zero,
				topEdgeFill != null ? topEdgeFill.Handle : IntPtr.Zero,
				topRightCorner != null ? topRightCorner.Handle : IntPtr.Zero,
				leftEdgeFill != null ? leftEdgeFill.Handle : IntPtr.Zero,
				centerFill != null ? centerFill.Handle : IntPtr.Zero,
				rightEdgeFill != null ? rightEdgeFill.Handle : IntPtr.Zero,
				bottomLeftCorner != null ? bottomLeftCorner.Handle : IntPtr.Zero,
				bottomEdgeFill != null ? bottomEdgeFill.Handle : IntPtr.Zero,
				bottomRightCorner != null ? bottomRightCorner.Handle : IntPtr.Zero,
				(int)op, alphaFraction, flipped);
 		}
示例#4
0
 public void DrawNinePartImage(CGRect frame,
                               NSImage topLeftCorner, NSImage topEdgeFill, NSImage topRightCorner,
                               NSImage leftEdgeFill, NSImage centerFill, NSImage rightEdgeFill,
                               NSImage bottomLeftCorner, NSImage bottomEdgeFill, NSImage bottomRightCorner,
                               NSCompositingOperation op, nfloat alphaFraction, bool flipped)
 {
     NSDrawNinePartImage(
         frame, topLeftCorner != null ? topLeftCorner.Handle : IntPtr.Zero,
         topEdgeFill != null ? topEdgeFill.Handle : IntPtr.Zero,
         topRightCorner != null ? topRightCorner.Handle : IntPtr.Zero,
         leftEdgeFill != null ? leftEdgeFill.Handle : IntPtr.Zero,
         centerFill != null ? centerFill.Handle : IntPtr.Zero,
         rightEdgeFill != null ? rightEdgeFill.Handle : IntPtr.Zero,
         bottomLeftCorner != null ? bottomLeftCorner.Handle : IntPtr.Zero,
         bottomEdgeFill != null ? bottomEdgeFill.Handle : IntPtr.Zero,
         bottomRightCorner != null ? bottomRightCorner.Handle : IntPtr.Zero,
         (nint)(long)op, alphaFraction, flipped);
 }
 public static extern void RectFillUsingOperation(CGRect rect, NSCompositingOperation operation);
示例#6
0
 public static void FrameRect(CGRect rect, nfloat frameWidth, NSCompositingOperation operation)
 {
     NSFrameRectWithWidthUsingOperation(rect, frameWidth, (nuint)(ulong)operation);
 }
示例#7
0
 public static void RectFill(CGRect rect, NSCompositingOperation op)
 {
     NSRectFillUsingOperation(rect, (nuint)(ulong)op);
 }
示例#8
0
 public extern static void FrameRect(RectangleF rect, float frameWidth, NSCompositingOperation operation);
示例#9
0
		public extern static void FrameRect (RectangleF rect, float frameWidth, NSCompositingOperation operation);		
示例#10
0
 public static void RectFill(CGRect rect, NSCompositingOperation op)
 {
     NSRectFillUsingOperation (rect, (nuint)(ulong)op);
 }
示例#11
0
 public static void FrameRect(CGRect rect, nfloat frameWidth, NSCompositingOperation operation)
 {
     NSFrameRectWithWidthUsingOperation (rect, frameWidth, (nuint)(ulong)operation);
 }
示例#12
0
            public override bool DrawInRect(CGRect dstSpacePortionRect, CGRect srcSpacePortionRect, NSCompositingOperation op, nfloat requestedAlpha, bool respectContextIsFlipped, NSDictionary hints)
            {
#if XAMMAC
                // bug in Xamarin.Mac, hints can't be null when calling base..
                hints = hints ?? new NSDictionary();
#endif
                return(Rep.DrawInRect(dstSpacePortionRect, srcSpacePortionRect, op, requestedAlpha, respectContextIsFlipped, hints));
            }
示例#13
0
			public override bool DrawInRect(CGRect dstSpacePortionRect, CGRect srcSpacePortionRect, NSCompositingOperation op, nfloat requestedAlpha, bool respectContextIsFlipped, NSDictionary hints)
			{
				return Rep.DrawInRect(dstSpacePortionRect, srcSpacePortionRect, op, requestedAlpha, respectContextIsFlipped, hints);
			}
示例#14
0
 public override bool DrawInRect(CGRect dstSpacePortionRect, CGRect srcSpacePortionRect, NSCompositingOperation op, nfloat requestedAlpha, bool respectContextIsFlipped, NSDictionary hints)
 {
     return(Rep.DrawInRect(dstSpacePortionRect, srcSpacePortionRect, op, requestedAlpha, respectContextIsFlipped, hints));
 }
示例#15
0
 public extern static void FrameRect(CGRect rect, nfloat frameWidth, NSCompositingOperation operation);