From fa12673450fb3ca1cdc22d9128cc71f741cb2487 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 25 Nov 2008 17:16:57 +0000 Subject: [PATCH] Updated ITextPrinter interface for the new implementation. --- Source/Utilities/Fonts/ITextPrinter.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Source/Utilities/Fonts/ITextPrinter.cs b/Source/Utilities/Fonts/ITextPrinter.cs index 00193ca7..c39b46bf 100644 --- a/Source/Utilities/Fonts/ITextPrinter.cs +++ b/Source/Utilities/Fonts/ITextPrinter.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using System.Text; using System.Drawing; +using OpenTK.Graphics.Text; namespace OpenTK.Graphics { @@ -16,13 +17,13 @@ namespace OpenTK.Graphics /// public interface ITextPrinter { - void Prepare(string text, TextureFont font, out TextHandle handle); - void Prepare(string text, TextureFont font, out TextHandle handle, float width, bool wordWarp); - void Prepare(string text, TextureFont font, out TextHandle handle, float width, bool wordWarp, StringAlignment alignment); - void Prepare(string text, TextureFont font, out TextHandle handle, float width, bool wordWarp, StringAlignment alignment, bool rightToLeft); - void Draw(TextHandle handle); - void Draw(string text, TextureFont font); void Begin(); void End(); + 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); } }