Font.
More...
#include <Font.h>
List of all members.
Public Member Functions |
| CFont (const std::string &fontFace, int height, bool bold, bool italic, bool underlined) |
| Constructor.
|
virtual | ~CFont () |
| Destructor.
|
RECT | CalcualteSize (const std::string &text, int align) |
| Calcualte size.
|
RECT | CalcualteSize (const std::string &text, int align, RECT rectSize) |
| Calcualte size.
|
void | DrawText (const std::string &text, int x, int y, D3DCOLOR rgbFontColour=NULL, int align=-1) |
| Draw text.
|
void | DrawText (const std::string &text, RECT *rect, D3DCOLOR rgbFontColour=NULL, int align=-1) |
| Draw text.
|
void | SetAlign (int algin) |
| Sets an align.
|
void | SetColor (D3DCOLOR rgbFontColour) |
| Sets a color.
|
HRESULT | OnLostDevice () |
| Executes the lost device action.
|
HRESULT | OnResetDevice () |
| Executes the reset device action.
|
void | SetAlphaBlending (int alphaBlending) |
| Sets an alpha blending.
|
Detailed Description
Font.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
Constructor & Destructor Documentation
CFont::CFont |
( |
const std::string & |
fontFace, |
|
|
int |
height, |
|
|
bool |
bold, |
|
|
bool |
italic, |
|
|
bool |
underlined |
|
) |
| |
Constructor.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
fontFace | The font face. |
height | The height. |
bold | true to bold. |
italic | true to italic. |
underlined | true to underlined. |
Destructor.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
Member Function Documentation
Calcualte size.
- Author:
- Christian Knobloch
- Date:
- 13.09.2010
- Parameters:
-
text | The text. |
align | The align. |
- Returns:
- .
Calcualte size.
- Author:
- Christian Knobloch
- Date:
- 13.09.2010
- Parameters:
-
text | The text. |
align | The align. |
rectSize | Size of the rectangle. |
- Returns:
- .
void CFont::DrawText |
( |
const std::string & |
text, |
|
|
int |
x, |
|
|
int |
y, |
|
|
D3DCOLOR |
rgbFontColour = NULL , |
|
|
int |
align = -1 |
|
) |
| |
Draw text.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
text | The text. |
x | The x coordinate. |
y | The y coordinate. |
rgbFontColour | The rgb font colour. |
align | The align. |
void CFont::DrawText |
( |
const std::string & |
text, |
|
|
RECT * |
rect, |
|
|
D3DCOLOR |
rgbFontColour = NULL , |
|
|
int |
align = -1 |
|
) |
| |
Draw text.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
| text | The text. |
[in,out] | Rect | If non-null, the rectangle. |
| rgbFontColour | The rgb font colour. |
| align | The align. |
Executes the lost device action.
- Author:
- Christian Knobloch
- Date:
- 01.06.2010
- Returns:
- .
Executes the reset device action.
- Author:
- Christian Knobloch
- Date:
- 01.06.2010
- Returns:
- .
Sets an align.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
Sets an alpha blending.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
alphaBlending | The alpha blending. |
Sets a color.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
rgbFontColour | The rgb font colour. |
The documentation for this class was generated from the following files:
- D:/source/c++/Programme/sally/sally/sallyAPI/Font.h
- D:/source/c++/Programme/sally/sally/sallyAPI/Font.cpp