OSDN Git Service

add vs2008-specific files
[nethackexpress/trunk.git] / win / gnome / gnglyph.h
1 /*      SCCS Id: @(#)gnglyph.h  3.4     2000/07/16      */
2 /* Copyright (C) 1998 by Erik Andersen <andersee@debian.org> */
3 /* NetHack may be freely redistributed.  See license for details. */
4
5 #ifndef GnomeHackGlyph_h
6 #define GnomeHackGlyph_h
7
8 #include "config.h"
9 #include "global.h"
10
11 /* the prototypes in system headers contain useless argument names
12    that trigger spurious warnings if gcc's `-Wshadow' option is used */
13 #undef index
14 #define index _hide_index_
15 #define time  _hide_time_
16
17 #include <gdk_imlib.h>
18 #include <gdk/gdk.h>
19
20 #undef index
21 #define index strchr
22 #undef time
23
24
25 extern short glyph2tile[];     /* From tile.c */
26
27 typedef struct {
28   GdkImlibImage* im;
29   int            count;
30   int            width;
31   int            height;
32 } GHackGlyphs;
33
34 extern int            ghack_init_glyphs( const char *);
35 extern void           ghack_free_glyphs( void);
36 extern void           ghack_dispose_glyphs( void);
37 extern int            ghack_glyph_count( void);
38 extern GdkImlibImage* ghack_image_from_glyph( int, gboolean);
39 extern int            ghack_glyph_height( void);
40 extern int            ghack_glyph_width( void);
41
42 #endif  /* GnomeHackGlyph_h */