UGDK
0.5.0
|
#include <ugdk/text/label.h>
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::Vector2D & | size () 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::Vector2D & | hotspot () 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_ |
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 | ( | ) |
void ugdk::text::Label::ChangeMessage | ( | const std::string & | utf8_message | ) |
This operation is slow.
void ugdk::text::Label::ChangeMessage | ( | const std::u32string & | ucs4_message | ) |
|
overridevirtual |
Implements ugdk::ui::Drawable.
|
overridevirtual |
Implements ugdk::ui::Drawable.