rayzor

diff src/screen.cc @ 9:70e332156d02

moving along
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 10 Apr 2014 02:31:31 +0300
parents
children be616b58df99
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/screen.cc	Thu Apr 10 02:31:31 2014 +0300
     1.3 @@ -0,0 +1,49 @@
     1.4 +#include <string.h>
     1.5 +#include "screen.h"
     1.6 +
     1.7 +Screen::Screen()
     1.8 +{
     1.9 +	name = 0;
    1.10 +}
    1.11 +
    1.12 +Screen::~Screen()
    1.13 +{
    1.14 +	delete [] name;
    1.15 +}
    1.16 +
    1.17 +bool Screen::init()
    1.18 +{
    1.19 +	return true;
    1.20 +}
    1.21 +
    1.22 +void Screen::shutdown()
    1.23 +{
    1.24 +}
    1.25 +
    1.26 +void Screen::set_name(const char *name)
    1.27 +{
    1.28 +	delete [] this->name;
    1.29 +	this->name = new char[strlen(name) + 1];
    1.30 +	strcpy(this->name, name);
    1.31 +}
    1.32 +
    1.33 +const char *Screen::get_name() const
    1.34 +{
    1.35 +	return name ? name : "<unnamed>";
    1.36 +}
    1.37 +
    1.38 +void Screen::update()
    1.39 +{
    1.40 +}
    1.41 +
    1.42 +void Screen::handle_keyboard(int key, bool press)
    1.43 +{
    1.44 +}
    1.45 +
    1.46 +void Screen::handle_mbutton(int bn, bool press, int x, int y)
    1.47 +{
    1.48 +}
    1.49 +
    1.50 +void Screen::handle_mmotion(int x, int y)
    1.51 +{
    1.52 +}