VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
trpgTextStyle Class Reference
Inheritance diagram for trpgTextStyle:
Inheritance graph
[legend]

Public Member Functions

 trpgTextStyle (void)
 
 ~trpgTextStyle (void)
 
bool operator== (const trpgTextStyle &) const
 
void SetMaterial (int)
 
int GetMaterial (void) const
 
void SetFont (std::string &)
 
const std::string * GetFont (void) const
 
void SetBold (bool)
 
bool GetBold (void) const
 
void SetItalic (bool)
 
bool GetItalic (void) const
 
void SetUnderline (bool)
 
bool GetUnderline (void) const
 
void SetCharacterSize (float32)
 
float32 GetCharacterSize (void) const
 
bool Write (trpgWriteBuffer &)
 
bool Read (trpgReadBuffer &)
 
bool Print (trpgPrintBuffer &) const
 
void Reset (void)
 
bool isValid (void) const
 
- Public Member Functions inherited from trpgReadWriteable
 trpgReadWriteable ()
 
const chargetErrMess () const
 
- Public Member Functions inherited from trpgCheckable
 trpgCheckable (void)
 
virtual ~trpgCheckable (void)
 
bool isValid (void) const
 
virtual TeAttrHdl GetHandle () const
 
virtual void SetHandle (TeAttrHdl hdl)
 

Protected Attributes

std::string font
 
bool bold
 
bool italic
 
bool underline
 
float32 characterSize
 
int matId
 
- Protected Attributes inherited from trpgReadWriteable
char errMess [512]
 
- Protected Attributes inherited from trpgCheckable
bool valid
 
TeAttrHdl handle
 
bool writeHandle
 

Constructor & Destructor Documentation

trpgTextStyle::trpgTextStyle ( void  )
trpgTextStyle::~trpgTextStyle ( void  )

Member Function Documentation

bool trpgTextStyle::operator== ( const trpgTextStyle ) const
void trpgTextStyle::SetMaterial ( int  )

Set the material ID. Should point into trpgMatTable.

int trpgTextStyle::GetMaterial ( void  ) const

Get the material ID. Points into trpgMatTable.

void trpgTextStyle::SetFont ( std::string &  )

Set the font description.

const std::string* trpgTextStyle::GetFont ( void  ) const

Get the font description.

void trpgTextStyle::SetBold ( bool  )

Set bold to on/off.

bool trpgTextStyle::GetBold ( void  ) const

Return value of bold status.

void trpgTextStyle::SetItalic ( bool  )

Set italic on/off.

bool trpgTextStyle::GetItalic ( void  ) const

Return value of italic status.

void trpgTextStyle::SetUnderline ( bool  )

Set underline on/off.

bool trpgTextStyle::GetUnderline ( void  ) const

Return value of underline status.

void trpgTextStyle::SetCharacterSize ( float32  )

Set character size: MUST BE IN METER.

float32 trpgTextStyle::GetCharacterSize ( void  ) const

Get character (e.g. font) size.

bool trpgTextStyle::Write ( trpgWriteBuffer )
virtual

Write this class to a write buffer.

Implements trpgReadWriteable.

bool trpgTextStyle::Read ( trpgReadBuffer )
virtual

Reads this class from a read buffer.

Reimplemented from trpgReadWriteable.

bool trpgTextStyle::Print ( trpgPrintBuffer ) const
virtual

Prints this class to a print buffer.

Reimplemented from trpgReadWriteable.

void trpgTextStyle::Reset ( void  )
virtual

Reset the contents back to empty.

Implements trpgReadWriteable.

bool trpgTextStyle::isValid ( void  ) const

Return object validity.

Member Data Documentation

std::string trpgTextStyle::font
protected
bool trpgTextStyle::bold
protected
bool trpgTextStyle::italic
protected
bool trpgTextStyle::underline
protected
float32 trpgTextStyle::characterSize
protected
int trpgTextStyle::matId
protected

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)