UGDK  0.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ugdk::graphic::Text Class Reference

#include <ugdk/graphic/drawable/text.h>

Inheritance diagram for ugdk::graphic::Text:
Collaboration diagram for ugdk::graphic::Text:

Public Member Functions

 Text (const std::wstring &message, Font *font)
 
 Text (const std::vector< std::wstring > &message, Font *font)
 
 ~Text ()
 
void SetMessage (const std::wstring &message)
 
void SetMessage (const std::vector< std::wstring > &message)
 
void Update (double dt)
 
void Draw () const
 
virtual const Vector2Dsize () const
 
- Public Member Functions inherited from ugdk::graphic::Drawable
virtual ~Drawable ()
 
void set_hotspot (const Vector2D &hotspot)
 
void set_hotspot (const HookPoint &hook)
 
const double width () const
 
const double height () const
 
const Vector2Dhotspot () const
 

Additional Inherited Members

- Public Types inherited from ugdk::graphic::Drawable
enum  HookPoint {
  TOP_LEFT, TOP, TOP_RIGHT, LEFT,
  CENTER, RIGHT, BOTTOM_LEFT, BOTTOM,
  BOTTOM_RIGHT
}
 
- Protected Member Functions inherited from ugdk::graphic::Drawable
 Drawable ()
 
- Protected Attributes inherited from ugdk::graphic::Drawable
ugdk::Vector2D hotspot_
 

Constructor & Destructor Documentation

ugdk::graphic::Text::Text ( const std::wstring &  message,
Font font 
)
ugdk::graphic::Text::Text ( const std::vector< std::wstring > &  message,
Font font 
)
ugdk::graphic::Text::~Text ( )
inline

Member Function Documentation

void ugdk::graphic::Text::Draw ( ) const
virtual
void ugdk::graphic::Text::SetMessage ( const std::wstring &  message)
void ugdk::graphic::Text::SetMessage ( const std::vector< std::wstring > &  message)
const Vector2D & ugdk::graphic::Text::size ( ) const
virtual
void ugdk::graphic::Text::Update ( double  dt)
virtual

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