omegalib
13.1
|
#include <Font.h>
Public Types | |
enum | Align { HALeft = 1 << 0, HARight = 1 << 1, HACenter = 1 << 2, VATop = 1 << 3, VABottom = 1 << 4, VAMiddle = 1 << 5 } |
Public Member Functions | |
Font (FTFont *fontImpl) | |
void | render (const String &text, float x, float y) |
void | render (const std::wstring &text, float x, float y) |
Vector2f | computeSize (const omega::String &text) |
Deprecated, use static getTextSize instead. More... | |
Vector2f | computeWSize (const std::wstring &text) |
Public Member Functions inherited from omicron::ReferenceType | |
ReferenceType () | |
virtual | ~ReferenceType () |
void | ref () |
void | unref () |
long | refCount () |
Static Public Member Functions | |
static void | lock () |
static void | unlock () |
static Vector2f | getTextSize (const String &text, const String &font) |
Computes the size of the specified text in pixels, using the specified font. More... | |
static Vector2f | getTextWSize (const std::wstring &text, const String &font) |
Static Public Member Functions inherited from omicron::ReferenceType | |
static void | printObjCounts () |
Additional Inherited Members | |
Static Protected Attributes inherited from omicron::ReferenceType | |
static List< ReferenceType * > | mysObjList |
enum omega::Font::Align |
|
inline |
Vector2f omega::Font::computeSize | ( | const omega::String & | text | ) |
Deprecated, use static getTextSize instead.
Vector2f omega::Font::computeWSize | ( | const std::wstring & | text | ) |
Computes the size of the specified text in pixels, using the specified font.
|
static |
void omega::Font::render | ( | const String & | text, |
float | x, | ||
float | y | ||
) |
void omega::Font::render | ( | const std::wstring & | text, |
float | x, | ||
float | y | ||
) |
|
static |