UGDK  0.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ugdk::graphic::SolidRectangle Class Reference

#include <ugdk/graphic/drawable/solidrectangle.h>

Inheritance diagram for ugdk::graphic::SolidRectangle:
Collaboration diagram for ugdk::graphic::SolidRectangle:

Public Member Functions

 SolidRectangle (const Vector2D &size)
 
 ~SolidRectangle ()
 
void Update (double dt)
 
void Draw () const
 
const Vector2Dsize () const
 
void set_size (const Vector2D &size)
 
const Colorcolor () const
 
void set_color (const Color &color)
 
- Public Member Functions inherited from ugdk::graphic::Shape
virtual ~Shape ()
 
- Public Member Functions inherited from ugdk::graphic::Drawable
virtual ~Drawable ()
 
void set_hotspot (const Vector2D &hotspot)
 
void set_hotspot (const HookPoint &hook)
 
const double width () const
 
const double height () const
 
const Vector2Dhotspot () const
 

Additional Inherited Members

- Public Types inherited from ugdk::graphic::Drawable
enum  HookPoint {
  TOP_LEFT, TOP, TOP_RIGHT, LEFT,
  CENTER, RIGHT, BOTTOM_LEFT, BOTTOM,
  BOTTOM_RIGHT
}
 
- Protected Member Functions inherited from ugdk::graphic::Shape
 Shape ()
 
- Protected Attributes inherited from ugdk::graphic::Drawable
ugdk::Vector2D hotspot_
 

Constructor & Destructor Documentation

ugdk::graphic::SolidRectangle::SolidRectangle ( const Vector2D size)
ugdk::graphic::SolidRectangle::~SolidRectangle ( )

Member Function Documentation

const Color& ugdk::graphic::SolidRectangle::color ( ) const
inline
void ugdk::graphic::SolidRectangle::Draw ( ) const
virtual
void ugdk::graphic::SolidRectangle::set_color ( const Color color)
inline
void ugdk::graphic::SolidRectangle::set_size ( const Vector2D size)
inline
const Vector2D& ugdk::graphic::SolidRectangle::size ( ) const
inlinevirtual
void ugdk::graphic::SolidRectangle::Update ( double  dt)
virtual

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