UGDK
0.5.0
|
#include <ugdk/text/textbox.h>
Public Types | |
enum | IdentStyle { LEFT, CENTER, RIGHT } |
Public Member Functions | |
TextBox (const std::string &message, double width, Font *font) | |
~TextBox () | |
void | ChangeMessage (const std::string &message) |
This operation is slow. More... | |
void | Draw (graphic::Canvas &) const override |
void | set_ident_style (IdentStyle style) |
double | width () const |
const ugdk::math::Vector2D & | size () const override |
IdentStyle | ident_style () const |
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::TextBox::TextBox | ( | const std::string & | message, |
double | width, | ||
Font * | font | ||
) |
ugdk::text::TextBox::~TextBox | ( | ) |
void ugdk::text::TextBox::ChangeMessage | ( | const std::string & | message | ) |
This operation is slow.
|
overridevirtual |
Implements ugdk::ui::Drawable.
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements ugdk::ui::Drawable.
|
inline |