Added the necessary methods.

This commit is contained in:
the_fiddler 2007-11-06 13:30:25 +00:00
parent 97f2ccf795
commit b6906a9ae7

View file

@ -5,8 +5,15 @@ using System.Drawing;
namespace OpenTK.Fonts
{
interface ILayoutProvider
/// <summary>
/// Defines the interface for a TextPrinter.
/// </summary>
public interface ITextPrinter
{
void PerformLayout(string text, IFont font, RectangleF layoutRect, StringAlignment alignment, bool rightToLeft);
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);
}
}