Crossfire Client, Trunk
crossfire-crossfire-client
gtk-v2
src
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
;
47
guint16
icon_width
,
icon_height
;
48
/* "Full icons", used in the spell list and inventory table view */
49
/* Same as above, but not scaled */
50
GdkPixbuf *
full_icon_image
;
51
guint16
full_icon_width
,
full_icon_height
;
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
57
extern
PixmapInfo
*
pixmaps
[
MAXPIXMAPNUM
];
58
extern
int
have_new_image
;
PixmapInfo::smooth_face
guint16 smooth_face
Definition:
image.h:54
PixmapInfo::icon_width
guint16 icon_width
Definition:
image.h:47
PixmapInfo::icon_height
guint16 icon_height
Definition:
image.h:47
have_new_image
int have_new_image
Definition:
image.c:37
PixmapInfo
Definition:
image.h:43
MAXPIXMAPNUM
#define MAXPIXMAPNUM
Definition:
image.h:41
PixmapInfo::full_icon_image
GdkPixbuf * full_icon_image
Definition:
image.h:50
pixmaps
PixmapInfo * pixmaps[MAXPIXMAPNUM]
Definition:
image.c:34
PixmapInfo::full_icon_height
guint16 full_icon_height
Definition:
image.h:51
PixmapInfo
struct PixmapInfo PixmapInfo
PixmapInfo::icon_image
GdkPixbuf * icon_image
Definition:
image.h:46
PixmapInfo::full_icon_width
guint16 full_icon_width
Definition:
image.h:51
PixmapInfo::map_image
void * map_image
Definition:
image.h:53
Generated by
1.8.17