|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CTextContextUser Class ReferenceUTextContext implementation.
More...
#include <text_context_user.h>
Inheritance diagram for NL3D::CTextContextUser:
List of all members.
Public Methods |
| CTextContextUser (const std::string fontFileName, const std::string fontExFileName, CDriverUser *drv, CFontManager *fmg) |
| Constructor. More...
|
virtual | ~CTextContextUser () |
void | dumpCacheTexture (const char *filename) |
| Used for debug. More...
|
|
void | setColor (NLMISC::CRGBA color) |
| set the font color. More...
|
void | setFontSize (uint32 fontSize) |
| set the font size. More...
|
uint32 | getFontSize () const |
| get the font size. More...
|
void | setHotSpot (THotSpot hotSpot) |
| set the hot spot. More...
|
THotSpot | getHotSpot () const |
| get the hot spot. More...
|
void | setScaleX (float scaleX) |
| set the X scale. More...
|
void | setScaleY (float scaleY) |
| set the Y scale. More...
|
float | getScaleX () const |
float | getScaleY () const |
void | setShaded (bool b) |
| set the shade states. More...
|
bool | getShaded () const |
void | setShadeExtent (float shext) |
| set the shadow's size. More...
|
virtual void | setKeep800x600Ratio (bool keep) |
| set to true if you want that the font manager look at Driver window size, and resize fontSize so it keeps same size than if it was in 800x600... More...
|
virtual bool | getKeep800x600Ratio () const |
| return keep800x600Ratio state. More...
|
|
uint32 | textPush (const char *format,...) |
uint32 | textPush (const ucstring &str) |
| computes an ucstring and adds the result to the stack. More...
|
void | erase (uint32 i) |
| remove a string from the list. More...
|
virtual CStringInfo | getStringInfo (uint32 i) |
| Get a string information from the list. More...
|
virtual CStringInfo | getStringInfo (const ucstring &ucstr) |
| Get a string information from the ucstring The returned string info is in pixel size per default. More...
|
void | clear () |
| empty the map. More...
|
void | printAt (float x, float y, uint32 i) |
| print a string of the list (2D method). More...
|
void | printClipAt (float x, float y, uint32 i, float xmin, float ymin, float xmax, float ymax) |
void | printAt (float x, float y, ucstring ucstr) |
| compute and print a ucstring at the location (2D method) x/y E [0,1]. More...
|
void | printfAt (float x, float y, const char *format,...) |
| compute and print a string at the location (2D method) x/y E [0,1]. More...
|
void | render3D (const CMatrix &mat, ucstring ucstr) |
void | render3D (const CMatrix &mat, const char *format,...) |
float | getLastXBound () const |
| Return max x coordinate of last string printed. More...
|
Private Attributes |
CTextContext | _TextContext |
CDriverUser * | _DriverUser |
IDriver * | _Driver |
CComputedString | _CacheString |
Detailed Description
UTextContext implementation.
-
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2001
Definition at line 46 of file text_context_user.h.
Constructor & Destructor Documentation
NL3D::CTextContextUser::CTextContextUser |
( |
const std::string |
fontFileName, |
|
|
const std::string |
fontExFileName, |
|
|
CDriverUser * |
drv, |
|
|
CFontManager * |
fmg |
|
) |
[inline] |
|
virtual NL3D::CTextContextUser::~CTextContextUser |
( |
|
) |
[inline, virtual] |
|
Member Function Documentation
void NL3D::CTextContextUser::clear |
( |
|
) |
[virtual] |
|
void NL3D::CTextContextUser::dumpCacheTexture |
( |
const char * |
filename |
) |
[virtual] |
|
void NL3D::CTextContextUser::erase |
( |
uint32 |
i |
) |
[virtual] |
|
uint32 NL3D::CTextContextUser::getFontSize |
( |
|
) |
const [virtual] |
|
bool NL3D::CTextContextUser::getKeep800x600Ratio |
( |
|
) |
const [virtual] |
|
float NL3D::CTextContextUser::getLastXBound |
( |
|
) |
const [virtual] |
|
float NL3D::CTextContextUser::getScaleX |
( |
|
) |
const [virtual] |
|
float NL3D::CTextContextUser::getScaleY |
( |
|
) |
const [virtual] |
|
bool NL3D::CTextContextUser::getShaded |
( |
|
) |
const [virtual] |
|
void NL3D::CTextContextUser::printAt |
( |
float |
x, |
|
|
float |
y, |
|
|
ucstring |
ucstr |
|
) |
[virtual] |
|
void NL3D::CTextContextUser::printAt |
( |
float |
x, |
|
|
float |
y, |
|
|
uint32 |
i |
|
) |
[virtual] |
|
void NL3D::CTextContextUser::printClipAt |
( |
float |
x, |
|
|
float |
y, |
|
|
uint32 |
i, |
|
|
float |
xmin, |
|
|
float |
ymin, |
|
|
float |
xmax, |
|
|
float |
ymax |
|
) |
[virtual] |
|
void NL3D::CTextContextUser::printfAt |
( |
float |
x, |
|
|
float |
y, |
|
|
const char * |
format, |
|
|
... |
|
|
) |
[virtual] |
|
void NL3D::CTextContextUser::render3D |
( |
const CMatrix & |
mat, |
|
|
const char * |
format, |
|
|
... |
|
|
) |
|
|
void NL3D::CTextContextUser::render3D |
( |
const CMatrix & |
mat, |
|
|
ucstring |
ucstr |
|
) |
|
|
void NL3D::CTextContextUser::setColor |
( |
NLMISC::CRGBA |
color |
) |
[virtual] |
|
void NL3D::CTextContextUser::setFontSize |
( |
uint32 |
fontSize |
) |
[virtual] |
|
void NL3D::CTextContextUser::setHotSpot |
( |
THotSpot |
hotSpot |
) |
[virtual] |
|
void NL3D::CTextContextUser::setKeep800x600Ratio |
( |
bool |
keep |
) |
[virtual] |
|
void NL3D::CTextContextUser::setScaleX |
( |
float |
scaleX |
) |
[virtual] |
|
void NL3D::CTextContextUser::setScaleY |
( |
float |
scaleY |
) |
[virtual] |
|
void NL3D::CTextContextUser::setShaded |
( |
bool |
b |
) |
[virtual] |
|
void NL3D::CTextContextUser::setShadeExtent |
( |
float |
shext |
) |
[virtual] |
|
uint32 NL3D::CTextContextUser::textPush |
( |
const ucstring & |
str |
) |
[virtual] |
|
uint32 NL3D::CTextContextUser::textPush |
( |
const char * |
format, |
|
|
... |
|
|
) |
[virtual] |
|
Member Data Documentation
IDriver* NL3D::CTextContextUser::_Driver [private]
|
|
CDriverUser* NL3D::CTextContextUser::_DriverUser [private]
|
|
|
Definition at line 49 of file text_context_user.h.
Referenced by clear, CTextContextUser, dumpCacheTexture, erase, getFontSize, getHotSpot, getKeep800x600Ratio, getScaleX, getScaleY, getShaded, getStringInfo, printAt, printClipAt, printfAt, render3D, setColor, setFontSize, setHotSpot, setKeep800x600Ratio, setScaleX, setScaleY, setShaded, setShadeExtent, and textPush. |
The documentation for this class was generated from the following files:
|
|