Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::gui::Text Class Reference

#include <Text.h>

Inheritance diagram for kge::gui::Text:
kge::gui::Control kge::KgeUnknown

Public Member Functions

 Text (core::RectI rect, gfx::Renderer *pRenderer, const wchar_t *text, int FontSize, Font *pFont)
 Constructor.
 ~Text ()
 Destructor.
void setColor (const gfx::Color &textColor)
 Set Font Color.
gfx::Color getColor ()
 Get Font Color.
void Render ()
 Renders the static text.
- Public Member Functions inherited from kge::gui::Control
virtual ~Control ()
virtual bool CheckClick (int X, int Y)
 Checks if control clicked.
virtual void Connect (EventType eventtype, core::Functor2< void, Control *, EventArgs * > *Function)
 Connect an event.
virtual void SetPosistion (int X, int Y)
 Sets the control position.
virtual void SetSize (int Width, int Height)
 Sets Control size.
virtual void SetRect (int X, int Y, int Width, int Height)
 Sets the control rect.
virtual void SetRect (core::RectI rect)
 Sets the control rect.
virtual bool GetFocus ()
 Gets The Focuse Status.
virtual void SetFocus (bool FocusStatus)
 Set The Focuse Status.
- Public Member Functions inherited from kge::KgeUnknown
 KgeUnknown ()
 Constructor.
virtual ~KgeUnknown ()
 Destructor.
virtual void AddRef ()
 Add a reference to the object.
virtual void DecRef ()
 Decrease a reference from the object. if its reference count get 0 then the object will destroy.
u32 GetRefCount ()
 Return resource reference count.
const char * GetDebugText ()
 returns the instance debug text.

Protected Member Functions

virtual void Update ()
virtual void CreateChars ()
virtual wchar_t CalcChar (int id, bool prev, bool next)

Protected Attributes

Fontm_pFont
ul32 m_FontSize
wchar_t * m_pText
gfx::Color m_Color
u32 m_iVcount
u32 m_iIcount
gfx::HardwareBufferm_pVertexBuffer
gfx::HardwareBufferm_pIndexBuffer
- Protected Attributes inherited from kge::gui::Control
kge::u16m_pIndices
core::RectI m_Rect
gfx::Rendererm_pRenderer
bool m_bMouseOver
bool m_bFocus
std::vector< EventTypem_vEventTypes
std::vector< core::Functor2
< void, Control *, EventArgs * > * > 
m_vFunctors

Additional Inherited Members

- Public Attributes inherited from kge::gui::Control
kge::gfx::Texturem_BackImage

Detailed Description

Definition at line 16 of file Text.h.

Constructor & Destructor Documentation

kge::gui::Text::Text ( core::RectI  rect,
gfx::Renderer pRenderer,
const wchar_t *  text,
int  FontSize,
Font pFont 
)

Constructor.

kge::gui::Text::~Text ( )

Destructor.

Member Function Documentation

virtual wchar_t kge::gui::Text::CalcChar ( int  id,
bool  prev,
bool  next 
)
protectedvirtual
virtual void kge::gui::Text::CreateChars ( )
protectedvirtual
gfx::Color kge::gui::Text::getColor ( )
inline

Get Font Color.

Definition at line 37 of file Text.h.

void kge::gui::Text::Render ( )
virtual

Renders the static text.

Implements kge::gui::Control.

void kge::gui::Text::setColor ( const gfx::Color textColor)
inline

Set Font Color.

Definition at line 31 of file Text.h.

virtual void kge::gui::Text::Update ( )
protectedvirtual

Reimplemented from kge::gui::Control.

Member Data Documentation

gfx::Color kge::gui::Text::m_Color
protected

Definition at line 49 of file Text.h.

ul32 kge::gui::Text::m_FontSize
protected

Definition at line 47 of file Text.h.

u32 kge::gui::Text::m_iIcount
protected

Definition at line 50 of file Text.h.

u32 kge::gui::Text::m_iVcount
protected

Definition at line 50 of file Text.h.

Font* kge::gui::Text::m_pFont
protected

Definition at line 46 of file Text.h.

gfx::HardwareBuffer * kge::gui::Text::m_pIndexBuffer
protected

Definition at line 53 of file Text.h.

wchar_t* kge::gui::Text::m_pText
protected

Definition at line 48 of file Text.h.

gfx::HardwareBuffer* kge::gui::Text::m_pVertexBuffer
protected

Definition at line 53 of file Text.h.


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