UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ugdk::text::Label Class Reference

#include <ugdk/text/label.h>

Inheritance diagram for ugdk::text::Label:
Collaboration diagram for ugdk::text::Label:

Public Member Functions

 Label (const std::string &utf8_message, Font *font)
 
 Label (const std::u32string &ucs4_message, Font *font)
 
 ~Label ()
 
void ChangeMessage (const std::string &utf8_message)
 This operation is slow. More...
 
void ChangeMessage (const std::u32string &ucs4_message)
 
void Draw (graphic::Canvas &) const override
 
const ugdk::math::Vector2Dsize () const override
 
- Public Member Functions inherited from ugdk::ui::Drawable
virtual ~Drawable ()
 
void set_draw_setup_function (const std::function< void(const Drawable *, graphic::Canvas &)> &func)
 
void set_hotspot (const ugdk::math::Vector2D &_hotspot)
 
void set_hotspot (const HookPoint &hook)
 
double width () const
 
double height () const
 
const math::Vector2Dhotspot () const
 

Additional Inherited Members

- Protected Member Functions inherited from ugdk::ui::Drawable
 Drawable ()
 
- Protected Attributes inherited from ugdk::ui::Drawable
math::Vector2D hotspot_
 
std::function< void(const
Drawable *, graphic::Canvas &)> 
draw_setup_function_
 

Constructor & Destructor Documentation

ugdk::text::Label::Label ( const std::string &  utf8_message,
Font font 
)
ugdk::text::Label::Label ( const std::u32string &  ucs4_message,
Font font 
)
ugdk::text::Label::~Label ( )

Member Function Documentation

void ugdk::text::Label::ChangeMessage ( const std::string &  utf8_message)

This operation is slow.

void ugdk::text::Label::ChangeMessage ( const std::u32string &  ucs4_message)
void ugdk::text::Label::Draw ( graphic::Canvas ) const
overridevirtual

Implements ugdk::ui::Drawable.

const ugdk::math::Vector2D& ugdk::text::Label::size ( ) const
overridevirtual

Implements ugdk::ui::Drawable.


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