Smart Matrix
Graphics Class Referenceabstract

The interface for other graphics objects. More...

#include <Graphics.hpp>

Inheritance diagram for Graphics:
AnimatedImage Image String

Public Member Functions

 Graphics (Screen &w, vector size, vector location)
 Graphics constructor. More...
 
virtual void draw ()=0
 draw graphics object on the screen.
 
vector getSize () const
 return the size of a graphics object.
 
vector getLocation () const
 return the location of a graphics object.
 
ScreengetScreen () const
 return the screen used by graphics object
 
void setLocation (vector l)
 change the location of a graphics object.
 
void setSize (vector s)
 change the size of a graphics object
 

Protected Attributes

Screenw
 
vector size
 
vector location
 

Detailed Description

The interface for other graphics objects.

Graphics class is an abstract class used as an interface for other graphic objects like Image, String and Animated Image. This is an abstract class. It can be used only as a base for other objects.

Constructor & Destructor Documentation

Graphics::Graphics ( Screen w,
vector  size,
vector  location 
)
inline

Graphics constructor.

Screen to draw graphics on it e.g. matrix. Size is the size of object and location is the pixels position on the screen.


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