1 /**********************************************************************
2  Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3    This program is free software; you can redistribute it and/or modify
4    it under the terms of the GNU General Public License as published by
5    the Free Software Foundation; either version 2, or (at your option)
6    any later version.
7 
8    This program is distributed in the hope that it will be useful,
9    but WITHOUT ANY WARRANTY; without even the implied warranty of
10    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11    GNU General Public License for more details.
12 ***********************************************************************/
13 #ifndef FC__MAPVIEW_H
14 #define FC__MAPVIEW_H
15 
16 #include <X11/Intrinsic.h>
17 
18 #include "fc_types.h"
19 
20 #include "mapview_g.h"
21 
22 #include "citydlg_common.h"
23 
24 #include "graphics.h"
25 
26 Pixmap get_thumb_pixmap(int onoff);
27 Pixmap get_citizen_pixmap(enum citizen_category type, int cnum,
28 			  struct city *pcity);
29 
30 void put_unit_pixmap_city_overlays(struct unit *punit, Pixmap pm,
31                                    int *upkeep_cost, int happy_cost);
32 
33 void overview_canvas_expose(Widget w, XEvent *event, Region exposed,
34 			    void *client_data);
35 void map_canvas_expose(Widget w, XEvent *event, Region exposed,
36 		       void *client_data);
37 
38 void scrollbar_jump_callback(Widget scrollbar, XtPointer client_data,
39 			     XtPointer percent_ptr);
40 void scrollbar_scroll_callback(Widget w, XtPointer client_data,
41 			     XtPointer position_ptr);
42 
43 #endif  /* FC__MAPVIEW_H */
44