Public Member Functions | Protected Attributes | List of all members
nom::Transformable Class Reference
Inheritance diagram for nom::Transformable:
[legend]
Collaboration diagram for nom::Transformable:
[legend]

Public Member Functions

 Transformable (const Coords &coords)
 
 Transformable (const Coords &coords, const Color &color)
 
const Coords getPosition (void) const
 
const Coords getSize (void) const
 
void setPosition (int32 x, int32 y)
 
void setPosition (int32 x, int32 y, int32 width, int32 height)
 
void setPosition (const Coords &coords)
 
void setSize (int32 width, int32 height)
 
void setSize (const Coords &size)
 
void move (uint32 x=0, uint32 y=0)
 
void move (const Coords &offsets=Coords(0, 0))
 
const Color & getColor (void) const
 
void setColor (uint8 red, uint8 green, uint8 blue, uint8 alpha=255)
 
void setColor (const Color &color)
 
- Public Member Functions inherited from nom::IDrawable
 IDrawable (void)
 Do nothing at all default constructor.
 
virtual ~IDrawable (void)
 Do nothing at all destructor.
 
virtual void update (void)=0
 
virtual void draw (RenderTarget) const =0
 Render the object onto the primary video buffer – your visible screen.
 

Protected Attributes

Coords coords
 
Color color
 

Additional Inherited Members

- Public Types inherited from nom::IDrawable
typedef std::unique_ptr
< IDrawable > 
UniquePtr
 std::unique_ptr definition type for your convenience, sir!
 
typedef std::shared_ptr
< IDrawable > 
SharedPtr
 std::shared_ptr definition type at your leisure, sir!
 
typedef std::vector
< std::shared_ptr< IDrawable > > 
SharedDrawables
 Vector of std::shared_ptr definition type for the brotherhood, sir!
 
typedef std::vector
< std::unique_ptr< IDrawable > > 
UniqueDrawables
 std::unique_ptr vector container type
 
typedef const Window & RenderTarget
 

Detailed Description

Definition at line 39 of file Transformable.hpp.


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