rayzor
view 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 source
1 #include <string.h>
2 #include "screen.h"
4 Screen::Screen()
5 {
6 name = 0;
7 }
9 Screen::~Screen()
10 {
11 delete [] name;
12 }
14 bool Screen::init()
15 {
16 return true;
17 }
19 void Screen::shutdown()
20 {
21 }
23 void Screen::set_name(const char *name)
24 {
25 delete [] this->name;
26 this->name = new char[strlen(name) + 1];
27 strcpy(this->name, name);
28 }
30 const char *Screen::get_name() const
31 {
32 return name ? name : "<unnamed>";
33 }
35 void Screen::update()
36 {
37 }
39 void Screen::handle_keyboard(int key, bool press)
40 {
41 }
43 void Screen::handle_mbutton(int bn, bool press, int x, int y)
44 {
45 }
47 void Screen::handle_mmotion(int x, int y)
48 {
49 }