#include <OpenGUI_Brush.h>
Public Member Functions | |
| void | drawText (const String &text, const FVector2 &position, Font &font, float spacing_adjust=0.0f) |
| draws the given string of text at the given position, using the given font, and optionally adjusting the glyph spacing by spacing_adjust | |
| void | drawTextArea (const String &text, const FRect &area, Font &font, bool wrap=false, const TextAlignment alignment=TextAlignment()) |
| draws the given string within the given rect, using the given font, while applying the given text alignments and performing any necessary word wrapping | |
| void | drawCharacter (const Char character, Font &font) |
| draws the given character at the current PenPosition using the given font. | |
| IVector2 | pointsToPixels (float pointSize) |
| Converts the given pointSize to the individual X and Y pixel sizes according to PPU and UPI. | |
Public Attributes | |
| FVector2 | PenPosition |
| The position that the next font glyph should be drawn to continue the last string of text. | |
|
||||||||||||
|
draws the given character at the current PenPosition using the given font.
|
|
||||||||||||||||||||
|
draws the given string of text at the given position, using the given font, and optionally adjusting the glyph spacing by spacing_adjust
|
|
||||||||||||||||||||||||
|
draws the given string within the given rect, using the given font, while applying the given text alignments and performing any necessary word wrapping
|
|
|
Converts the given pointSize to the individual X and Y pixel sizes according to PPU and UPI.
|
|
|
The position that the next font glyph should be drawn to continue the last string of text. PenPosition is used by drawCharacter to support typewriter-like text operations. |