1 | // This file is part of SmallBASIC |
2 | // |
3 | // Copyright(C) 2001-2014 Chris Warren-Smith. |
4 | // |
5 | // This program is distributed under the terms of the GPL v2.0 or later |
6 | // Download the GNU Public License (GPL) from www.gnu.org |
7 | // |
8 | |
9 | #ifndef SHAPE_H |
10 | #define SHAPE_H |
11 | |
12 | struct Shape { |
13 | Shape(int x, int y, int w, int h) : _x(x), _y(y), _width(w), _height(h) {} |
14 | virtual ~Shape() {} |
15 | virtual void draw(int x, int y, int w, int h, int cw) {} |
16 | bool isFullScreen() const; |
17 | |
18 | int w() { return _width; } |
19 | int h() { return _height; } |
20 | int _x, _y, _width, _height; |
21 | }; |
22 | |
23 | #endif |
24 | |