nuclear@0: #ifndef SCR_OVERLAY_H_ nuclear@0: #define SCR_OVERLAY_H_ nuclear@0: nuclear@0: #include "screen.h" nuclear@0: nuclear@0: // abstract base class for overlay screens nuclear@0: class OverlayScreen : public Screen { nuclear@0: protected: nuclear@0: Screen *prev; nuclear@0: nuclear@0: public: nuclear@0: virtual void start(); nuclear@0: virtual void stop(); nuclear@0: nuclear@0: virtual long redisplay_interval() const; nuclear@0: nuclear@0: virtual void pre_draw() const; nuclear@0: virtual void display() const; nuclear@0: virtual void post_draw() const; nuclear@0: nuclear@0: virtual void keyboard(int key, bool pressed); nuclear@0: virtual void motion(int x, int y, bool pressed); nuclear@0: virtual void button(int bn, bool pressed, int x, int y); nuclear@0: virtual void reshape(int x, int y); nuclear@0: }; nuclear@0: nuclear@0: #endif // SCR_OVERLAY_H_