X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=simple_window.h;h=81c31167299de29b9697276a7ec6ab0a565d4bb6;hb=18b655f5e908b7a57709b9dec9f00428ed339839;hp=f42e931c8d9f4da583e5a6417c062b89d999a427;hpb=ba46b057f3e2613a86f2dea7fa8022990482c735;p=universe.git diff --git a/simple_window.h b/simple_window.h index f42e931..81c3116 100644 --- a/simple_window.h +++ b/simple_window.h @@ -1,19 +1,6 @@ -//////////////////////////////////////////////////////////////////////////////// -// 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 for comments & bug reports // -//////////////////////////////////////////////////////////////////////////////// - -// $Id: simple_window.h,v 1.2 2007-04-24 21:22:52 fleuret Exp $ +// Written and (C) by Francois Fleuret +// Contact for comments & bug reports #ifndef SIMPLE_WINDOW_H #define SIMPLE_WINDOW_H @@ -25,6 +12,7 @@ using namespace std; #include #include +#include class SimpleEvent { public: @@ -54,7 +42,7 @@ protected: 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(); @@ -66,7 +54,7 @@ public: 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();