Smart Matrix
|
The interface for other graphics objects. More...
#include <Graphics.hpp>
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. | |
Screen & | getScreen () 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 | |
Screen & | w |
vector | size |
vector | location |
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.