60 writes to Clip
System.Drawing.Common.Tests (34)
mono\System.Drawing\GraphicsTests.cs (25)
152g.Clip = new Region(new Rectangle(50, 40, 210, 220));
178g.Clip = new Region(new RectangleF(10, 10, 100, 100));
205g.Clip = new Region(new RectangleF(260, 30, 60, 80));
222g.Clip = new Region(new RectangleF(260, 30, 60, 80));
292g.Clip = new Region(new Rectangle(0, 0, 100, 100));
305g.Clip = new Region(new Rectangle(1, 2, 20, 25));
361Graphics.Clip = new Region(new Rectangle(0, 0, width, height));
456g.Clip = new Region(new Rectangle(0, 0, 8, 8));
466g.Clip = new Region(new Rectangle(0, 0, 8, 8));
482g.Clip = new Region(clip);
497g.Clip = new Region(new Rectangle(0, 0, 8, 8));
513g.Clip = new Region(new Rectangle(0, 0, 8, 8));
528g.Clip = new Region(new Rectangle(0, 0, 8, 8));
544g.Clip = new Region(new Rectangle(0, 0, 8, 8));
563g.Clip = new Region(new Rectangle(0, 0, 8, 8));
599g.Clip = new Region(new Rectangle(0, 0, 8, 8));
622g.Clip = new Region(new Rectangle(0, 0, 8, 8));
643g.Clip = new Region(new Rectangle(0, 0, 8, 8));
955g.Clip = new Region(new Rectangle(10, 10, 10, 10));
988g.Clip = new Region(new Rectangle(10, 10, 10, 10));
1022g.Clip = new Region(new Rectangle(10, 10, 10, 10));
1103g.Clip = new Region(new Rectangle(10, 10, 10, 10));
1194g.Clip = new Region(rect);
2209g.Clip = new Region(new RectangleF(0, 0, 32, 32));
2242g.Clip = new Region(new RectangleF(0, 0, 200, 200));
System.Windows.Forms (13)
System.Windows.Forms.Design (7)
System.Windows.Forms.Primitives (1)
System.Windows.Forms.Primitives.Tests (3)
System.Windows.Forms.Tests (2)
74 references to Clip
System.Drawing.Common.Tests (54)
mono\System.Drawing\GraphicsTests.cs (53)
153rects = g.Clip.GetRegionScans(new Matrix());
167Assert.True(g.Clip.IsInfinite(g));
168g.Clip.IsEmpty(g);
169Assert.False(g.Clip.IsEmpty(g));
170Assert.True(g.Clip.IsInfinite(g));
180_rects = g.Clip.GetRegionScans(new Matrix());
207_rects = g.Clip.GetRegionScans(new Matrix());
225_rects = g.Clip.GetRegionScans(new Matrix());
244rects = g.Clip.GetRegionScans(new Matrix());
256rects = g.Clip.GetRegionScans(new Matrix());
268rects = g.Clip.GetRegionScans(new Matrix());
380RectangleF bounds = g.Clip.GetBounds(g);
394RectangleF bounds = g.Clip.GetBounds(g);
409bounds = g.Clip.GetBounds(g);
454CheckBounds("graphics.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 16, 16);
458CheckBounds("clip.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8);
469CheckBounds("rotate.Clip.GetBounds", g.Clip.GetBounds(g), 0, -8, 8, 8);
472CheckBounds("identity.ClipBounds", g.Clip.GetBounds(g), 0, 0, 8, 8);
473CheckBounds("identity.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8);
485CheckBounds("scale.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 32, 16);
489CheckBounds("setclip.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8);
498using Region clone = g.Clip.Clone();
501CheckBounds("translate.Clip.GetBounds", g.Clip.GetBounds(g), -8, -8, 8, 8);
504CheckBounds("setclip.ClipBounds", g.Clip.GetBounds(g), 0, 0, 8, 8);
505CheckBounds("setclip.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8);
516CheckBounds("transform.Clip.GetBounds", g.Clip.GetBounds(g), -8, -8, 8, 8);
520CheckBounds("reset.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8);
531CheckBounds("scale.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 16, 32);
535CheckBounds("resetclip.Clip.GetBounds", g.Clip.GetBounds(g), -4194304, -4194304, 8388608, 8388608);
536Assert.True(g.Clip.IsInfinite(g));
548CheckBounds("multiply.Clip.GetBounds", g.Clip.GetBounds(g), -16, -16, 8, 8);
552CheckBounds("reset.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8);
561CheckBounds("graphics.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 16, 16);
565CheckBounds("clip.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8);
569CheckBounds("rotate.Clip.GetBounds", g.Clip.GetBounds(g), 0, -8, 8, 8);
573CheckBounds("scale.Clip.GetBounds", g.Clip.GetBounds(g), 0, -16, 32, 16);
577CheckBounds("translate.Clip.GetBounds", g.Clip.GetBounds(g), -8, -24, 32, 16);
581CheckBounds("multiply.Clip.GetBounds", g.Clip.GetBounds(g), -104, -56, 64, 64);
585CheckBounds("reset.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8);
594CheckBounds("graphics.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 16, 16);
597CheckBounds("translated.Clip.GetBounds", g.Clip.GetBounds(g), 16, 16, 16, 16);
603CheckBounds("rectangle.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8);
607CheckBounds("reseted.Clip.GetBounds", g.Clip.GetBounds(g), -16, -16, 8, 8);
616CheckBounds("graphics.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 16, 16);
621CheckBounds("rotated.Clip.GetBounds", g.Clip.GetBounds(g), 0, -16, 16, 16);
626CheckBounds("rectangle.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8);
630CheckBounds("reseted.Clip.GetBounds", g.Clip.GetBounds(g), -8, 0, 8, 8);
639CheckBounds("graphics.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 16, 16);
642CheckBounds("scaled.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 32);
647CheckBounds("rectangle.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8);
651CheckBounds("reseted.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 16, 4);
907Assert.True(g.Clip.IsInfinite(g), message + ".Clip.IsInfinite");
922Assert.False(g.Clip.IsInfinite(g), message + ".Clip.IsInfinite");
System.Windows.Forms (14)
System.Windows.Forms.Design (3)
System.Windows.Forms.Primitives (2)
System.Windows.Forms.Primitives.Tests (1)