lab 6 start
This commit is contained in:
21
Lab6/drawbase.h
Normal file
21
Lab6/drawbase.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef DRAWBASE_H
|
||||
#define DRAWBASE_H
|
||||
|
||||
// forward reference
|
||||
class GraphicsContext;
|
||||
|
||||
class DrawingBase
|
||||
{
|
||||
public:
|
||||
// prevent warnings
|
||||
virtual ~DrawingBase(){}
|
||||
virtual void paint(GraphicsContext* gc){}
|
||||
virtual void keyDown(GraphicsContext* gc, unsigned int keycode){}
|
||||
virtual void keyUp(GraphicsContext* gc, unsigned int keycode){}
|
||||
virtual void mouseButtonDown(GraphicsContext* gc,
|
||||
unsigned int button, int x, int y){}
|
||||
virtual void mouseButtonUp(GraphicsContext* gc,
|
||||
unsigned int button, int x, int y){}
|
||||
virtual void mouseMove(GraphicsContext* gc, int x, int y){}
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user