Crossfire Client, Trunk
image.h
Go to the documentation of this file.
1 /*
2  * char *rcsid_gtk2_image_h =
3  * "$Id$";
4  */
5 
6 /*
7  Crossfire client, a client program for the crossfire program.
8 
9  Copyright (C) 2005-2008,2010 Mark Wedel & Crossfire Development Team
10 
11  This program is free software; you can redistribute it and/or modify
12  it under the terms of the GNU General Public License as published by
13  the Free Software Foundation; either version 2 of the License, or
14  (at your option) any later version.
15 
16  This program is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  GNU General Public License for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with this program; if not, write to the Free Software
23  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 
25  The author can be reached via e-mail to crossfire@metalforge.org
26 */
27 
40 #define DEFAULT_IMAGE_SIZE 32
41 #define MAXPIXMAPNUM 10000
42 
43 typedef struct PixmapInfo {
44  /* Icons, used in the inventory tree view */
45  /* Scaled according to inventory scale config */
46  GdkPixbuf *icon_image;
48  /* "Full icons", used in the spell list and inventory table view */
49  /* Same as above, but not scaled */
50  GdkPixbuf *full_icon_image;
52  /* Map images */
53  void *map_image; // same as full_icon_image, but as a cairo_surface_t
54  guint16 smooth_face;
55 } PixmapInfo;
56 
58 extern int have_new_image;
PixmapInfo::full_icon_width
guint16 full_icon_width
Definition: image.h:51
PixmapInfo::full_icon_height
guint16 full_icon_height
Definition: image.h:51
PixmapInfo::full_icon_image
GdkPixbuf * full_icon_image
Definition: image.h:50
have_new_image
int have_new_image
Definition: image.c:37
PixmapInfo::icon_height
guint16 icon_height
Definition: image.h:47
PixmapInfo::smooth_face
guint16 smooth_face
Definition: image.h:54
MAXPIXMAPNUM
#define MAXPIXMAPNUM
Definition: image.h:41
pixmaps
PixmapInfo * pixmaps[MAXPIXMAPNUM]
Definition: image.c:34
PixmapInfo::map_image
void * map_image
Definition: image.h:53
PixmapInfo::icon_image
GdkPixbuf * icon_image
Definition: image.h:46
PixmapInfo
struct PixmapInfo PixmapInfo
PixmapInfo
Definition: image.h:43
PixmapInfo::icon_width
guint16 icon_width
Definition: image.h:47