Google
Web alhem.net
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

guitypedefs.h

Go to the documentation of this file.
00001 00006 /* 00007 Copyright (C) 2004 Anders Hedstrom 00008 00009 This program is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU General Public License 00011 as published by the Free Software Foundation; either version 2 00012 of the License, or (at your option) any later version. 00013 00014 This program is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with this program; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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 // ScrollBar width/height 00046 #define SBSIZE 16 00047 00048 // -- begin 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 // -- end 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 // a surface_event_t struct is sent to parent when child generates an event 00080 typedef struct surface_event_struct 00081 { 00082 Uint8 type; // GUI_EVENT_xx 00083 unsigned long id; 00084 unsigned long local_id; 00085 Surface *ptr; 00086 } surface_event_t; 00087 00088 } 00089 00090 00091 #endif // _GUITYPEDEF_H

Generated for My SDL C++ Gui by doxygen 1.3.6

www.TV-friendship.com
The matchmaking service with an all new twist.

Quantum 'Teleportation'
Some thoughts
Page, code, and content Copyright (C) 2004 by Anders Hedström