OSDN Git Service

import nethack-3.6.0
[jnethack/source.git] / win / gnome / gnglyph.h
1 /* NetHack 3.6  gnglyph.h       $NHDT-Date: 1432512806 2015/05/25 00:13:26 $  $NHDT-Branch: master $:$NHDT-Revision: 1.8 $ */
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 extern short glyph2tile[]; /* From tile.c */
25
26 typedef struct {
27     GdkImlibImage *im;
28     int count;
29     int width;
30     int height;
31 } GHackGlyphs;
32
33 extern int ghack_init_glyphs(const char *);
34 extern void ghack_free_glyphs(void);
35 extern void ghack_dispose_glyphs(void);
36 extern int ghack_glyph_count(void);
37 extern GdkImlibImage *ghack_image_from_glyph(int, gboolean);
38 extern int ghack_glyph_height(void);
39 extern int ghack_glyph_width(void);
40
41 #endif /* GnomeHackGlyph_h */