UGDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
ugdk::graphic::Drawable Class Reference

#include <drawable.h>

Inheritance diagram for ugdk::graphic::Drawable:
Inheritance graph
[legend]
Collaboration diagram for ugdk::graphic::Drawable:
Collaboration graph
[legend]

List of all members.

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 Vector2Dsize () const =0
void set_hotspot (const Vector2D &hotspot)
void set_hotspot (const HookPoint &hook)
const double width () const
const double height () const
const Vector2Dhotspot () const

Protected Member Functions

 Drawable ()

Protected Attributes

ugdk::Vector2D hotspot_

Member Enumeration Documentation

Enumerator:
TOP_LEFT 
TOP 
TOP_RIGHT 
LEFT 
CENTER 
RIGHT 
BOTTOM_LEFT 
BOTTOM 
BOTTOM_RIGHT 

Constructor & Destructor Documentation

virtual ugdk::graphic::Drawable::~Drawable ( ) [inline, virtual]
ugdk::graphic::Drawable::Drawable ( ) [inline, protected]

Member Function Documentation

virtual void ugdk::graphic::Drawable::Draw ( ) const [pure virtual]
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]
virtual void ugdk::graphic::Drawable::Update ( double  dt) [pure virtual]
const double ugdk::graphic::Drawable::width ( ) const [inline]

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines