Interface ITextDrawingContext
Defines the interface with methods for text drawing
Namespace:
Assembly: .dll
Syntax
public interface ITextDrawingContext
Methods
begin(IFont font, int textColor)
Starte the context with specified font and text color
Declaration
public abstract ITextDrawingContext begin(IFont font, int textColor)
Parameters
| Type | Name | Description |
|---|---|---|
| IFont | font | The font to draw text with |
| int | textColor | The text color |
Returns
| Type | Description |
|---|---|
The ITextDrawingContext instance, to allow fluent API |
drawText(float x, float y, String text)
Draw the text at the specified x, y coordinate
Declaration
public abstract ITextDrawingContext drawText(float x, float y, String text)
Parameters
| Type | Name | Description |
|---|---|---|
| float | x | The x-coordinate in pixels |
| float | y | The y-coordinate in pixels |
| String | text | The text to draw |
Returns
| Type | Description |
|---|---|
The ITextDrawingContext instance, to allow fluent API |
end()
Ends the drawing, flushing to render target
Declaration
public abstract void end()