|
| FontData (const tString &asName, iLowLevelGraphics *apLowLevelGraphics) |
|
bool | createFromFontFile (const tString &asFileName, int alSize, unsigned short alFirstChar, unsigned short alLastChar) |
|
bool | createFromBitmapFile (const tString &asFileName) |
|
bool | reload () |
|
void | unload () |
|
void | destroy () |
|
void | setUp (cGraphicsDrawer *apGraphicsDrawer, LowLevelResources *apLowLevelResources, cGui *apGui) |
|
Glyph * | getGlyph (int alNum) const |
|
unsigned short | getFirstChar () |
|
unsigned short | getLastChar () |
|
const cVector2f & | getSizeRatio () const |
|
void | draw (const cVector3f &avPos, const cVector2f &avSize, const cColor &aCol, eFontAlign mAlign, const tWString &text) |
|
int | drawWordWrap (cVector3f avPos, float afLength, float afFontHeight, cVector2f avSize, const cColor &aCol, eFontAlign aAlign, const tWString &asString) |
|
void | getWordWrapRows (float afLength, float afFontHeight, cVector2f avSize, const tWString &asString, tWStringVec *apRowVec) |
|
float | getHeight () const |
|
float | getLength (const cVector2f &avSize, const char32_t *sText) |
|
| iResourceBase (tString asName, unsigned long alPrio) |
|
tString | GetName () |
|
unsigned long | GetHandle () |
|
void | SetHandle (unsigned long alHandle) |
|
tString | GetFilePath () |
|
unsigned long | GetTime () |
|
unsigned long | GetPrio () |
|
unsigned long | GetSize () |
|
void | SetLogDestruction (bool abX) |
|
unsigned int | GetUserCount () |
|
void | IncUserCount () |
|
void | DecUserCount () |
|
bool | HasUsers () |
|
|
static bool | GetLogCreateAndDelete () |
|
static void | SetLogCreateAndDelete (bool abX) |
|
unsigned int | mlPrio |
|
unsigned long | mlTime |
|
unsigned long | mlSize |
|
unsigned int | mlUserCount |
|
unsigned long | mlHandle |
|
tString | msName |
|
tString | msFilePath |
|
bool | mbLogDestruction |
|
static bool | mbLogCreateAndDelete |
|
◆ reload()
bool hpl::FontData::reload |
( |
| ) |
|
|
inlinevirtual |
virtual bool Reload()=0;
- Returns
- true is reload was successful, else false.
Implements hpl::iResourceBase.
◆ unload()
void hpl::FontData::unload |
( |
| ) |
|
|
inlinevirtual |
◆ destroy()
void hpl::FontData::destroy |
( |
| ) |
|
|
inlinevirtual |
◆ setUp()
◆ getGlyph()
Glyph* hpl::FontData::getGlyph |
( |
int |
alNum | ) |
const |
|
inline |
Used internally
- Parameters
-
- Returns
◆ draw()
Draw a string.
- Parameters
-
avPos | Screen pos |
avSize | size of the characters |
aCol | color |
mAlign | alignment |
fmt | |
... | |
◆ drawWordWrap()
int hpl::FontData::drawWordWrap |
( |
cVector3f |
avPos, |
|
|
float |
afLength, |
|
|
float |
afFontHeight, |
|
|
cVector2f |
avSize, |
|
|
const cColor & |
aCol, |
|
|
eFontAlign |
aAlign, |
|
|
const tWString & |
asString |
|
) |
| |
Draw a string with word wrap.
- Parameters
-
avPos | Screen pos |
afLength | Max length of a line |
afFontHeight | The distance from base of character above to base of character below |
avSize | size of the characters |
aCol | color |
aAlign | alignment |
asString | |
- Returns
- Extra number of rows generated.
◆ getHeight()
float hpl::FontData::getHeight |
( |
void |
| ) |
const |
|
inline |
Get height of the font.
- Returns
◆ getLength()
float hpl::FontData::getLength |
( |
const cVector2f & |
avSize, |
|
|
const char32_t * |
sText |
|
) |
| |
Get the length in screen size "pixels" of a string
- Parameters
-
avSize | size of the characters |
sText | |
- Returns
The documentation for this class was generated from the following file: