UGDK
|
#include <drawable.h>
Public Types | |
enum | HookPoint { TOP_LEFT, TOP, TOP_RIGHT, LEFT, CENTER, RIGHT, BOTTOM_LEFT, BOTTOM, BOTTOM_RIGHT } |
Public Member Functions | |
virtual | ~Drawable () |
virtual void | Update (double dt)=0 |
virtual void | Draw () const =0 |
virtual const Vector2D & | size () const =0 |
void | set_hotspot (const Vector2D &hotspot) |
void | set_hotspot (const HookPoint &hook) |
const double | width () const |
const double | height () const |
const Vector2D & | hotspot () const |
Protected Member Functions | |
Drawable () | |
Protected Attributes | |
ugdk::Vector2D | hotspot_ |
virtual ugdk::graphic::Drawable::~Drawable | ( | ) | [inline, virtual] |
ugdk::graphic::Drawable::Drawable | ( | ) | [inline, protected] |
virtual void ugdk::graphic::Drawable::Draw | ( | ) | const [pure virtual] |
Implemented in ugdk::graphic::Text, ugdk::graphic::Sprite, ugdk::graphic::TexturedRectangle, and ugdk::graphic::SolidRectangle.
const double ugdk::graphic::Drawable::height | ( | ) | const [inline] |
const Vector2D& ugdk::graphic::Drawable::hotspot | ( | ) | const [inline] |
void ugdk::graphic::Drawable::set_hotspot | ( | const Vector2D & | hotspot | ) | [inline] |
void ugdk::graphic::Drawable::set_hotspot | ( | const HookPoint & | hook | ) | [inline] |
virtual const Vector2D& ugdk::graphic::Drawable::size | ( | ) | const [pure virtual] |
Implemented in ugdk::graphic::Text, ugdk::graphic::Sprite, ugdk::graphic::TexturedRectangle, and ugdk::graphic::SolidRectangle.
virtual void ugdk::graphic::Drawable::Update | ( | double | dt | ) | [pure virtual] |
Implemented in ugdk::graphic::Text, ugdk::graphic::Sprite, ugdk::graphic::TexturedRectangle, and ugdk::graphic::SolidRectangle.
const double ugdk::graphic::Drawable::width | ( | ) | const [inline] |
ugdk::Vector2D ugdk::graphic::Drawable::hotspot_ [protected] |