UGDK
0.5.0
|
#include <ugdk/ui/drawable.h>
Public Member Functions | |
virtual | ~Drawable () |
virtual void | Draw (graphic::Canvas &) const =0 |
virtual const math::Vector2D & | size () const =0 |
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 |
Protected Member Functions | |
Drawable () | |
Protected Attributes | |
math::Vector2D | hotspot_ |
std::function< void(const Drawable *, graphic::Canvas &)> | draw_setup_function_ |
|
inlinevirtual |
|
inlineprotected |
|
pure virtual |
Implemented in ugdk::text::Label, ugdk::text::TextBox, ugdk::ui::DrawablePrimitive, and ugdk::ui::TexturedRectangle.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
pure virtual |
Implemented in ugdk::text::TextBox, ugdk::text::Label, ugdk::ui::TexturedRectangle, and ugdk::ui::DrawablePrimitive.
|
inline |
|
protected |
|
protected |