All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | List of all members
star::TextComponent Class Reference

#include <TextComponent.h>

Inheritance diagram for star::TextComponent:
Inheritance graph
Collaboration diagram for star::TextComponent:
Collaboration graph

Public Member Functions

 TextComponent (const tstring &fileName, const tstring &tag, int fontSize, bool bInFront=true)
virtual ~TextComponent ()
void Draw ()
virtual void Update (const Context &context)
void SetText (const tstring &text)
const tstringGetText () const
void SetColor (const Color &color)
const ColorGetColor () const
void SetWrapWidth (float width)
float GetWrapWidth () const
- Public Member Functions inherited from star::BaseComponent
 BaseComponent (void)
 BaseComponent (Object *parent)
virtual ~BaseComponent (void)
void Initialize ()
bool IsInitialized () const
ObjectGetParent () const
void SetParent (Object *parent)
BaseSceneGetGameScene () const
TransformComponentGetTransform () const

Protected Member Functions

virtual void InitializeComponent ()

Additional Inherited Members

- Protected Attributes inherited from star::BaseComponent
bool m_bInitialized

Constructor & Destructor Documentation

star::TextComponent::TextComponent ( const tstring fileName,
const tstring tag,
int  fontSize,
bool  bInFront = true 
star::TextComponent::~TextComponent ( )

Member Function Documentation

void star::TextComponent::Draw ( )

Implements star::BaseComponent.

const Color & star::TextComponent::GetColor ( ) const
const tstring & star::TextComponent::GetText ( ) const
float star::TextComponent::GetWrapWidth ( ) const
void star::TextComponent::InitializeComponent ( )

Implements star::BaseComponent.

void star::TextComponent::SetColor ( const Color color)
void star::TextComponent::SetText ( const tstring text)
void star::TextComponent::SetWrapWidth ( float  width)
void star::TextComponent::Update ( const Context context)

Implements star::BaseComponent.

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