Atrinik Client 2.5
include/popup.h
Go to the documentation of this file.
00001 /************************************************************************
00002 *            Atrinik, a Multiplayer Online Role Playing Game            *
00003 *                                                                       *
00004 *    Copyright (C) 2009-2011 Alex Tokar and Atrinik Development Team    *
00005 *                                                                       *
00006 * Fork from Daimonin (Massive Multiplayer Online Role Playing Game)     *
00007 * and Crossfire (Multiplayer game for X-windows).                       *
00008 *                                                                       *
00009 * This program is free software; you can redistribute it and/or modify  *
00010 * it under the terms of the GNU General Public License as published by  *
00011 * the Free Software Foundation; either version 2 of the License, or     *
00012 * (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., 675 Mass Ave, Cambridge, MA 02139, USA.             *
00022 *                                                                       *
00023 * The author can be reached at admin@atrinik.org                        *
00024 ************************************************************************/
00025 
00030 #ifndef POPUP_H
00031 #define POPUP_H
00032 
00034 typedef struct popup_struct
00035 {
00039     SDL_Surface *surface;
00040 
00042     int bitmap_id;
00043 
00047     SDL_Surface *overlay;
00048 
00050     void *custom_data;
00051 
00053     char *buf;
00054 
00056     sint64 i[3];
00057 
00059     int x;
00060 
00062     int y;
00063 
00067     void (*draw_func)(struct popup_struct *popup);
00068 
00073     void (*draw_func_post)(struct popup_struct *popup);
00074 
00082     int (*event_func)(struct popup_struct *popup, SDL_Event *event);
00083 
00090     int (*destroy_callback_func)(struct popup_struct *popup);
00091 } popup_struct;
00092 
00093 #endif