mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 20:05:41 +00:00
Updated ITextPrinter interface for the new implementation.
This commit is contained in:
parent
15eaba60a9
commit
fa12673450
|
@ -8,6 +8,7 @@ using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
using OpenTK.Graphics.Text;
|
||||||
|
|
||||||
namespace OpenTK.Graphics
|
namespace OpenTK.Graphics
|
||||||
{
|
{
|
||||||
|
@ -16,13 +17,13 @@ namespace OpenTK.Graphics
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ITextPrinter
|
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 Begin();
|
||||||
void End();
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue