public void FillRectangle(ISolidBrush solidBrush, RectangleF rectangle)
 {
     CallsToFillRectangle.Add(new CallToFillRectangle
     {
         SolidBrush = solidBrush,
         Rectangle = rectangle
     });
 }
 public void DrawString(string @string,
                        Font font,
                        ISolidBrush solidBrush,
                        PointF point)
 {
     CallsToDrawString.Add(new CallToDrawString
     {
         String = @string,
         Font = font,
         SolidBrush = solidBrush,
         Point = point
     });
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of a SolidBrush with the specified <paramref name="color"/>
 /// </summary>
 /// <param name="color">Color for the brush</param>
 /// <param name="generator">Generator to create the brush for</param>
 public SolidBrush(Color color, Generator generator = null)
 {
     handler       = generator.CreateShared <ISolidBrush> ();
     ControlObject = handler.Create(color);
 }
Exemplo n.º 4
0
 SolidBrush(ISolidBrush handler, object control)
 {
     this.handler       = handler;
     this.ControlObject = control;
 }
Exemplo n.º 5
0
		/// <summary>
		/// Initializes a new instance of a SolidBrush with the specified <paramref name="color"/>
		/// </summary>
		/// <param name="color">Color for the brush</param>
		/// <param name="generator">Generator to create the brush for</param>
		public SolidBrush (Color color, Generator generator = null)
		{
			handler = generator.CreateShared <ISolidBrush> ();
			ControlObject = handler.Create (color);
		}
Exemplo n.º 6
0
		SolidBrush (ISolidBrush handler, object control)
		{
			this.handler = handler;
			this.ControlObject = control;
		}
Exemplo n.º 7
0
 /// <summary>
 /// Fills the interior of the specified <paramref name="rectangle"/>
 /// using the specified <paramref name="solidBrush"/>.
 /// </summary>
 /// <param name="solidBrush">An <see cref="ISolidBrush"/> that
 /// determines the appearance of the
 /// <paramref name="rectangle"/>.</param>
 /// <param name="rectangle">A <see cref="RectangleF"/> describing the
 /// area to be filled.</param>
 /// <exception cref="ArgumentNullException">An argument is
 /// <c>null</c>.</exception>
 public void FillRectangle(ISolidBrush solidBrush, RectangleF rectangle)
 {
     native.FillRectangle(solidBrush.Native, rectangle);
 }
Exemplo n.º 8
0
 /// <summary>
 /// Draws the specified <paramref name="string"/> at the specified
 /// <paramref name="point"/> with the specified
 /// <paramref name="solidBrush"/> and <paramref name="font"/>.
 /// </summary>
 /// <param name="string">The <see cref="string"/> to draw.</param>
 /// <param name="font">A <see cref="Font"/> that determines the
 /// appearance of the <paramref name="string"/>.</param>
 /// <param name="solidBrush">An <see cref="ISolidBrush"/> that
 /// determines the appearance of the <paramref name="string"/>.</param>
 /// <param name="point">A <see cref="PointF"/> that defines the top-left
 /// position of the <paramref name="string"/>.</param>
 /// <exception cref="ArgumentNullException">An argument is
 /// <c>null</c>.</exception>
 public void DrawString(string @string,
                        Font font,
                        ISolidBrush solidBrush,
                        PointF point)
 {
     native.DrawString(@string, font, solidBrush.Native, point);
 }