Rise
The Vieneo Province
Text Class Reference

#include <Text.h>

Collaboration diagram for Text:
[legend]

Public Member Functions

 Text (Logger *prmLogger, Bus *prmBus, DeviceObject *prmpDevice, ID3DXFont *prmFont, int prmX, int prmY, int prmWidth, int prmHeight)
 
void Draw (WCHAR *str)
 

Public Attributes

int x
 
int y
 
float z
 
D3DXCOLOR color
 
int width = 0
 
int height = 0
 
int flags = DT_NOCLIP | DT_SINGLELINE | DT_EXPANDTABS
 
std::string formattedText
 
std::string elementName
 
int font = 0
 

Private Attributes

RECT rect
 
Loggerlogger = nullptr
 
Busbus = nullptr
 
DeviceObjectpDevice = nullptr
 
ID3DXFont * pFont = nullptr
 
D3DXMATRIX transform
 

Detailed Description

Definition at line 50 of file Text.h.

Constructor & Destructor Documentation

◆ Text()

Text::Text ( Logger prmLogger,
Bus prmBus,
DeviceObject prmpDevice,
ID3DXFont *  prmFont,
int  prmX,
int  prmY,
int  prmWidth,
int  prmHeight 
)

Definition at line 3 of file Text.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ Draw()

void Text::Draw ( WCHAR *  str)

Definition at line 35 of file Text.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ bus

Bus* Text::bus = nullptr
private

Definition at line 54 of file Text.h.

◆ color

D3DXCOLOR Text::color

Definition at line 64 of file Text.h.

◆ elementName

std::string Text::elementName

Definition at line 68 of file Text.h.

◆ flags

int Text::flags = DT_NOCLIP | DT_SINGLELINE | DT_EXPANDTABS

Definition at line 66 of file Text.h.

◆ font

int Text::font = 0

Definition at line 69 of file Text.h.

◆ formattedText

std::string Text::formattedText

Definition at line 67 of file Text.h.

◆ height

int Text::height = 0

Definition at line 65 of file Text.h.

◆ logger

Logger* Text::logger = nullptr
private

Definition at line 53 of file Text.h.

◆ pDevice

DeviceObject* Text::pDevice = nullptr
private

Definition at line 55 of file Text.h.

◆ pFont

ID3DXFont* Text::pFont = nullptr
private

Definition at line 57 of file Text.h.

◆ rect

RECT Text::rect
private

Definition at line 52 of file Text.h.

◆ transform

D3DXMATRIX Text::transform
private

Definition at line 58 of file Text.h.

◆ width

int Text::width = 0

Definition at line 65 of file Text.h.

◆ x

int Text::x

Definition at line 62 of file Text.h.

◆ y

int Text::y

Definition at line 62 of file Text.h.

◆ z

float Text::z

Definition at line 63 of file Text.h.


The documentation for this class was generated from the following files: