UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ugdk::ui::Drawable Class Referenceabstract

#include <ugdk/ui/drawable.h>

Inheritance diagram for ugdk::ui::Drawable:
Collaboration diagram for ugdk::ui::Drawable:

Public Member Functions

virtual ~Drawable ()
 
virtual void Draw (graphic::Canvas &) const =0
 
virtual const math::Vector2Dsize () 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::Vector2Dhotspot () const
 

Protected Member Functions

 Drawable ()
 

Protected Attributes

math::Vector2D hotspot_
 
std::function< void(const
Drawable *, graphic::Canvas &)> 
draw_setup_function_
 

Constructor & Destructor Documentation

virtual ugdk::ui::Drawable::~Drawable ( )
inlinevirtual
ugdk::ui::Drawable::Drawable ( )
inlineprotected

Member Function Documentation

virtual void ugdk::ui::Drawable::Draw ( graphic::Canvas ) const
pure virtual
double ugdk::ui::Drawable::height ( ) const
inline
const math::Vector2D& ugdk::ui::Drawable::hotspot ( ) const
inline
void ugdk::ui::Drawable::set_draw_setup_function ( const std::function< void(const Drawable *, graphic::Canvas &)> &  func)
inline
void ugdk::ui::Drawable::set_hotspot ( const ugdk::math::Vector2D _hotspot)
inline
void ugdk::ui::Drawable::set_hotspot ( const HookPoint hook)
inline
virtual const math::Vector2D& ugdk::ui::Drawable::size ( ) const
pure virtual
double ugdk::ui::Drawable::width ( ) const
inline

Member Data Documentation

std::function<void (const Drawable*, graphic::Canvas&)> ugdk::ui::Drawable::draw_setup_function_
protected
math::Vector2D ugdk::ui::Drawable::hotspot_
protected

The documentation for this class was generated from the following file: