Avionics
Dropship Simulator
Text Class Reference

#include <Text.h>

Collaboration diagram for Text:
[legend]

Public Member Functions

void Initialize (Logger *prmLogger, Bus *prmBus, DEVICE_OBJECT *prmpDevice, int elementX, int elementY, ID3DX10Font *prmFont, bool prmFlip)
 
void Draw (WCHAR *str)
 

Public Attributes

int x
 
int y
 
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
 
DEVICE_OBJECTpDevice = nullptr
 
ID3DX10Font * pFont = nullptr
 
bool flip = false
 

Detailed Description

Definition at line 46 of file Text.h.

Member Function Documentation

◆ Draw()

void Text::Draw ( WCHAR *  str)
inline

Definition at line 80 of file Text.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Initialize()

void Text::Initialize ( Logger prmLogger,
Bus prmBus,
DEVICE_OBJECT prmpDevice,
int  elementX,
int  elementY,
ID3DX10Font *  prmFont,
bool  prmFlip 
)
inline

Definition at line 66 of file Text.h.

Here is the caller graph for this function:

Member Data Documentation

◆ bus

Bus* Text::bus = nullptr
private

Definition at line 51 of file Text.h.

◆ color

D3DXCOLOR Text::color

Definition at line 59 of file Text.h.

◆ elementName

std::string Text::elementName

Definition at line 63 of file Text.h.

◆ flags

int Text::flags = DT_NOCLIP | DT_SINGLELINE | DT_EXPANDTABS

Definition at line 61 of file Text.h.

◆ flip

bool Text::flip = false
private

Definition at line 54 of file Text.h.

◆ font

int Text::font = 0

Definition at line 64 of file Text.h.

◆ formattedText

std::string Text::formattedText

Definition at line 62 of file Text.h.

◆ height

int Text::height = 0

Definition at line 60 of file Text.h.

◆ logger

Logger* Text::logger = nullptr
private

Definition at line 50 of file Text.h.

◆ pDevice

DEVICE_OBJECT* Text::pDevice = nullptr
private

Definition at line 52 of file Text.h.

◆ pFont

ID3DX10Font* Text::pFont = nullptr
private

Definition at line 53 of file Text.h.

◆ rect

RECT Text::rect
private

Definition at line 49 of file Text.h.

◆ width

int Text::width = 0

Definition at line 60 of file Text.h.

◆ x

int Text::x

Definition at line 58 of file Text.h.

◆ y

int Text::y

Definition at line 58 of file Text.h.


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