mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 23:15:34 +00:00
Added the necessary methods.
This commit is contained in:
parent
97f2ccf795
commit
b6906a9ae7
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue