00001
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
#ifndef _GUITYPEDEF_H
00024
#define _GUITYPEDEF_H
00025
00026
#ifdef WIN32
00027
#define STL_USING_ALL
00028
#include "stlhelper.h"
00029
#else
00030
#include <vector>
00031
#include <string>
00032
#include <map>
00033
#endif
00034
00035
00036
#ifndef DEB
00037
#ifdef _DEBUG
00038
#define DEB(x) x
00039
#else
00040 #define DEB(x)
00041
#endif
00042
#endif
00043
00044
00045
00046 #define SBSIZE 16
00047
00048
00049 #define SDL_USEREVENT_PAINT 1000
00050 #define SDL_USEREVENT_INVALIDATE 1001
00051 #define SDL_USEREVENT_INVALIDATERECT 1002
00052 #define SDL_USEREVENT_LOSTFOCUS 1003
00053 #define SDL_USEREVENT_FILLRECT 1004
00054 #define SDL_USEREVENT_RESETFILLRECTS 1005
00055 #define SDL_USEREVENT_UICOMMAND 1006
00056 #define SDL_USEREVENT_TIMER 1007
00057
00058 #define UICOMMAND_NONE -1
00059
00060 #define GUI_EVENT_MOUSEIN 1
00061 #define GUI_EVENT_MOUSEOUT 2
00062 #define GUI_EVENT_BUTTON 3
00063 #define GUI_EVENT_CLOSE 4
00064 #define GUI_EVENT_EDIT 5 // return pressed in edit field
00065
00066
00067
00068
using std::string;
00069
00070
namespace gui
00071 {
00072 typedef Uint32
color_t;
00073 typedef short coord_t;
00074 typedef unsigned char alpha_t;
00075 typedef short style_t;
00076 typedef std::vector<class Surface *>
surfacevector_t;
00077 typedef std::vector<std::string>
stringvector_t;
00078 typedef std::vector<SDL_Rect>
rectvector_t;
00079
00080 typedef struct surface_event_struct
00081 {
00082 Uint8
type;
00083 unsigned long id;
00084 unsigned long local_id;
00085 Surface *
ptr;
00086 }
surface_event_t;
00087
00088 }
00089
00090
00091
#endif // _GUITYPEDEF_H