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
     });
 }
예제 #3
0
파일: SolidBrush.cs 프로젝트: pcdummy/Eto
 /// <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);
 }
예제 #4
0
파일: SolidBrush.cs 프로젝트: pcdummy/Eto
 SolidBrush(ISolidBrush handler, object control)
 {
     this.handler       = handler;
     this.ControlObject = control;
 }
예제 #5
0
파일: SolidBrush.cs 프로젝트: Exe0/Eto
		/// <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);
		}
예제 #6
0
파일: SolidBrush.cs 프로젝트: Exe0/Eto
		SolidBrush (ISolidBrush handler, object control)
		{
			this.handler = handler;
			this.ControlObject = control;
		}
예제 #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);
 }
예제 #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);
 }