-////////////////////////////////////////////////////////////////////////////////
-// This program is free software; you can redistribute it and/or //
-// modify it under the terms of the GNU General Public License //
-// version 2 as published by the Free Software Foundation. //
-// //
-// This program is distributed in the hope that it will be useful, but //
-// WITHOUT ANY WARRANTY; without even the implied warranty of //
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU //
-// General Public License for more details. //
-// //
-// Written and (C) by François Fleuret //
-// Contact <francois.fleuret@epfl.ch> for comments & bug reports //
-////////////////////////////////////////////////////////////////////////////////
+// Written and (C) by Francois Fleuret
+// Contact <francois.fleuret@idiap.ch> for comments & bug reports
#ifndef SIMPLE_WINDOW_H
#define SIMPLE_WINDOW_H
int _width, _height;
public:
- SimpleWindow(char *name, int x, int y, int w, int h);
+ SimpleWindow(const char *name, int x, int y, int w, int h);
virtual ~SimpleWindow();
virtual int width();
virtual void draw_point(int x, int y);
virtual void draw_line(int x1, int y1, int x2, int y2);
virtual void draw_circle(int x, int y, int r);
- virtual void draw_text(char *s, int x, int y);
+ virtual void draw_text(const char *s, int x, int y);
virtual void fill_rectangle(int x, int y, int w, int h);
virtual void fill_polygon(int nb, int *x, int *y);
virtual void show();