UGDK
0.5.0
|
#include <ugdk/ui/drawable/primitive.h>
Public Member Functions | |
DrawablePrimitive (const std::shared_ptr< ugdk::graphic::Primitive > &primitive) | |
~DrawablePrimitive () | |
void | Draw (graphic::Canvas &) const override |
const 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 |
Protected Member Functions | |
void | UpdateSize () |
Protected Member Functions inherited from ugdk::ui::Drawable | |
Drawable () | |
Protected Attributes | |
std::shared_ptr < ugdk::graphic::Primitive > | primitive_ |
math::Vector2D | size_ |
Protected Attributes inherited from ugdk::ui::Drawable | |
math::Vector2D | hotspot_ |
std::function< void(const Drawable *, graphic::Canvas &)> | draw_setup_function_ |
ugdk::ui::DrawablePrimitive::DrawablePrimitive | ( | const std::shared_ptr< ugdk::graphic::Primitive > & | primitive | ) |
ugdk::ui::DrawablePrimitive::~DrawablePrimitive | ( | ) |
|
overridevirtual |
Implements ugdk::ui::Drawable.
|
overridevirtual |
Implements ugdk::ui::Drawable.
|
protected |
|
protected |
|
protected |