Freeciv-3.3
Loading...
Searching...
No Matches
mapview.h
Go to the documentation of this file.
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 <gtk/gtk.h>
17
18/* common */
19#include "fc_types.h"
20
21/* client */
22#include "citydlg_common.h"
23#include "mapview_g.h"
24#include "mapview_common.h"
25
26/* client/gui-gtk-4.0 */
27#include "canvas.h"
28#include "graphics.h"
29
31
32#define CURSOR_INTERVAL 200 /* milliseconds */
33
35 int width, int height, gpointer data);
37 int width, int height, gpointer data);
38void map_canvas_resize(GtkWidget *w, int width, int height,
39 gpointer data);
40
41void put_unit_picture(struct unit *punit, GtkPicture *p, int height);
42
44 int height, int *upkeep_cost, int happy_cost);
45
48
50 int canvas_x, int canvas_y,
51 struct sprite *ssprite);
52
54 int canvas_x, int canvas_y,
55 struct sprite *ssprite,
56 bool fog);
57
58void mapview_freeze(void);
59void mapview_thaw(void);
60bool mapview_is_frozen(void);
61
62#endif /* FC__MAPVIEW_H */
struct canvas int int struct sprite int int int int height
Definition canvas_g.h:44
struct canvas int int canvas_y
Definition canvas_g.h:43
struct canvas int canvas_x
Definition canvas_g.h:43
struct canvas * pcanvas
Definition canvas_g.h:42
struct canvas int int struct sprite int int int width
Definition canvas_g.h:44
char * incite_cost
Definition comments.c:76
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
Definition dialogs_g.h:74
void scrollbar_jump_callback(GtkAdjustment *adj, gpointer hscrollbar)
Definition mapview.c:721
void update_map_canvas_scrollbars_size(void)
Definition mapview.c:696
void mapview_freeze(void)
Definition mapview.c:373
GdkPixbuf * get_thumb_pixbuf(int onoff)
Definition mapview.c:292
gboolean map_canvas_draw(GtkWidget *w, cairo_t *cr, gpointer data)
Definition mapview.c:424
void pixmap_put_overlay_tile(GdkWindow *pixmap, float zoom, int canvas_x, int canvas_y, struct sprite *ssprite)
Definition mapview.c:543
void pixmap_put_overlay_tile_draw(struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *ssprite, bool fog)
Definition mapview.c:566
bool mapview_is_frozen(void)
Definition mapview.c:395
void mapview_thaw(void)
Definition mapview.c:381
gboolean overview_canvas_draw(GtkWidget *w, cairo_t *cr, gpointer data)
Definition mapview.c:356
void map_canvas_resize(GtkWidget *w, int width, int height, gpointer data)
Definition mapview.c:408
void put_unit_picture_city_overlays(struct unit *punit, GtkPicture *p, int height, int *upkeep_cost, int happy_cost)
Definition mapview.c:519
void put_unit_picture(struct unit *punit, GtkPicture *p, int height)
Definition mapview.c:494
Definition unit.h:140