- more menu cleanup
[supertux.git] / src / type.h
1 //
2 // C Interface: type
3 //
4 // Description: 
5 //
6 //
7 // Author: Tobias Glaesser <tobi.web@gmx.de>, (C) 2004
8 //
9 // Copyright: See COPYING file that comes with this distribution
10 //
11 //
12
13 #ifndef SUPERTUX_TYPE_H
14 #define SUPERTUX_TYPE_H
15
16 #include "SDL.h"
17
18 /* 'Base' type for game objects */
19
20 typedef struct base_type
21   {
22     float x;
23     float y;
24     float xm;
25     float ym;
26     float width;
27     float height;
28   }
29 base_type;
30
31
32 typedef struct string_list_type
33 {
34  int num_items;
35  int active_item;
36  char **item;
37  }
38 string_list_type;
39
40 void  string_list_init(string_list_type* pstring_list);
41 char* string_list_active(string_list_type* pstring_list);
42 void  string_list_copy(string_list_type* pstring_list, string_list_type pstring_list_orig);
43 int   string_list_find(string_list_type* pstring_list, const char* str);
44 void  string_list_sort(string_list_type* pstring_list);
45 void  string_list_add_item(string_list_type* pstring_list, const char* str);
46 void  string_list_free(string_list_type* pstring_list);
47
48 #endif /*SUPERTUX_TYPE_H*/
49