2007-11-10 23:29:25 +00:00
|
|
|
|
#region --- License ---
|
|
|
|
|
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
|
|
|
|
* See license.txt for license info
|
|
|
|
|
*/
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
using System;
|
2007-11-01 23:23:19 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Drawing;
|
2008-11-25 17:16:57 +00:00
|
|
|
|
using OpenTK.Graphics.Text;
|
2007-11-01 23:23:19 +00:00
|
|
|
|
|
2008-03-08 14:38:10 +00:00
|
|
|
|
namespace OpenTK.Graphics
|
2007-11-01 23:23:19 +00:00
|
|
|
|
{
|
2007-11-06 13:30:25 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Defines the interface for a TextPrinter.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface ITextPrinter
|
2007-11-01 23:23:19 +00:00
|
|
|
|
{
|
2007-11-12 07:36:34 +00:00
|
|
|
|
void Begin();
|
|
|
|
|
void End();
|
2008-11-25 17:16:57 +00:00
|
|
|
|
void Print(string text, Font font);
|
|
|
|
|
void Print(string text, Font font, TextPrinterOptions options);
|
|
|
|
|
void Print(string text, Font font, TextPrinterOptions options, RectangleF layoutRectangle);
|
|
|
|
|
TextExtents Measure(string text, Font font);
|
|
|
|
|
TextExtents Measure(string text, Font font, TextPrinterOptions options);
|
|
|
|
|
TextExtents Measure(string text, Font font, TextPrinterOptions options, RectangleF layoutRectangle);
|
2007-11-01 23:23:19 +00:00
|
|
|
|
}
|
|
|
|
|
}
|