vrshoot

diff src/scr_overlay.cc @ 0:b2f14e535253

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 01 Feb 2014 19:58:19 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/scr_overlay.cc	Sat Feb 01 19:58:19 2014 +0200
     1.3 @@ -0,0 +1,55 @@
     1.4 +#include "scr_overlay.h"
     1.5 +#include "logger.h"
     1.6 +
     1.7 +void OverlayScreen::start()
     1.8 +{
     1.9 +	if(!(prev = previous_screen())) {
    1.10 +		error_log("Failed to start overlay screen: %s. No previous screen found.\n", get_name());
    1.11 +	}
    1.12 +	prev->start();
    1.13 +}
    1.14 +
    1.15 +void OverlayScreen::stop()
    1.16 +{
    1.17 +	prev->stop();
    1.18 +}
    1.19 +
    1.20 +long OverlayScreen::redisplay_interval() const
    1.21 +{
    1.22 +	return prev->redisplay_interval();
    1.23 +}
    1.24 +
    1.25 +void OverlayScreen::pre_draw() const
    1.26 +{
    1.27 +	prev->pre_draw();
    1.28 +}
    1.29 +
    1.30 +void OverlayScreen::display() const
    1.31 +{
    1.32 +	prev->display();
    1.33 +}
    1.34 +
    1.35 +void OverlayScreen::post_draw() const
    1.36 +{
    1.37 +	prev->post_draw();
    1.38 +}
    1.39 +
    1.40 +void OverlayScreen::keyboard(int key, bool pressed)
    1.41 +{
    1.42 +	prev->keyboard(key, pressed);
    1.43 +}
    1.44 +
    1.45 +void OverlayScreen::motion(int x, int y, bool pressed)
    1.46 +{
    1.47 +	prev->motion(x, y, pressed);
    1.48 +}
    1.49 +
    1.50 +void OverlayScreen::button(int bn, bool pressed, int x, int y)
    1.51 +{
    1.52 +	prev->button(bn, pressed, x, y);
    1.53 +}
    1.54 +
    1.55 +void OverlayScreen::reshape(int x, int y)
    1.56 +{
    1.57 +	prev->reshape(x, y);
    1.58 +}