Added the necessary methods.
This commit is contained in:
parent
97f2ccf795
commit
b6906a9ae7
1 changed files with 9 additions and 2 deletions
|
@ -5,8 +5,15 @@ using System.Drawing;
|
||||||
|
|
||||||
namespace OpenTK.Fonts
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue