Removed that logo from this bramch aswell..
[dbw.git] / src / CWidget.h
blobc965090026f33643b684b52148b65f89eb1d779d
1 /*
2 Copyright (C) 2004 Parallel Realities
3 Copyright (C) 2007 Kővágó Zoltán
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 See the GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 #ifndef CWIDGET_H
23 #define CWIDGET_H
25 #include "CGameObject.h"
26 #include <SDL/SDL.h>
28 class Widget : public GameObject {
30 public:
32 char name[50], groupName[50], label[80], options[100];
34 int type;
36 int x, y;
38 int *value; // NB - THIS IS A POINTER!!
40 int min, max;
42 bool enabled, visible, changed;
44 SDL_Surface *image;
46 Widget *previous;
48 Widget();
49 void setProperties(char *name, char *groupName, char *label, char *options, int x, int y, int min, int max);
50 void setValue(int *value);
51 void redraw();
55 #endif //CWIDGET_H