Freeciv-3.3: /fast/freeciv/nightly/main/client/gui-gtk-5.0/mapview.h Source File

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-5.0 */
27#include "canvas.h"
28#include "graphics.h"
29
30 GdkPixbuf *get_thumb_pixbuf(int onoff);
31
32#define CURSOR_INTERVAL 200 /* milliseconds */
33
34void overview_canvas_draw(GtkDrawingArea *w, cairo_t *cr,
35 int width, int height, gpointer data);
36void map_canvas_draw(GtkDrawingArea *w, cairo_t *cr,
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
43void put_unit_picture_city_overlays(struct unit *punit, GtkPicture *p,
44 int height, int *upkeep_cost, int happy_cost);
45
46void scrollbar_jump_callback(GtkAdjustment *adj, gpointer hscrollbar);
47void update_map_canvas_scrollbars_size(void);
48
49void pixmap_put_overlay_tile(GdkSurface *pixmap, float zoom,
50 int canvas_x, int canvas_y,
51 struct sprite *ssprite);
52
53void pixmap_put_overlay_tile_draw(struct canvas *pcanvas,
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 */
height
struct canvas int int struct sprite int int int int height
Definition canvas_g.h:44
canvas_y
struct canvas int int canvas_y
Definition canvas_g.h:43
canvas_x
struct canvas int canvas_x
Definition canvas_g.h:43
pcanvas
struct canvas * pcanvas
Definition canvas_g.h:42
width
struct canvas int int struct sprite int int int width
Definition canvas_g.h:44
citydlg_common.h
incite_cost
char * incite_cost
Definition comments.c:74
punit
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
fc_types.h
scrollbar_jump_callback
void scrollbar_jump_callback(GtkAdjustment *adj, gpointer hscrollbar)
Definition mapview.c:721
update_map_canvas_scrollbars_size
void update_map_canvas_scrollbars_size(void)
Definition mapview.c:696
mapview_freeze
void mapview_freeze(void)
Definition mapview.c:373
get_thumb_pixbuf
GdkPixbuf * get_thumb_pixbuf(int onoff)
Definition mapview.c:292
map_canvas_draw
gboolean map_canvas_draw(GtkWidget *w, cairo_t *cr, gpointer data)
Definition mapview.c:424
pixmap_put_overlay_tile
void pixmap_put_overlay_tile(GdkWindow *pixmap, float zoom, int canvas_x, int canvas_y, struct sprite *ssprite)
Definition mapview.c:543
pixmap_put_overlay_tile_draw
void pixmap_put_overlay_tile_draw(struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *ssprite, bool fog)
Definition mapview.c:566
mapview_is_frozen
bool mapview_is_frozen(void)
Definition mapview.c:395
mapview_thaw
void mapview_thaw(void)
Definition mapview.c:381
overview_canvas_draw
gboolean overview_canvas_draw(GtkWidget *w, cairo_t *cr, gpointer data)
Definition mapview.c:356
map_canvas_resize
void map_canvas_resize(GtkWidget *w, int width, int height, gpointer data)
Definition mapview.c:408
put_unit_picture_city_overlays
void put_unit_picture_city_overlays(struct unit *punit, GtkPicture *p, int height, int *upkeep_cost, int happy_cost)
Definition mapview.c:519
put_unit_picture
void put_unit_picture(struct unit *punit, GtkPicture *p, int height)
Definition mapview.c:494
canvas.h
graphics.h
mapview_common.h
mapview_g.h
canvas
Definition canvas.h:22
sprite
Definition sprite.h:22
unit
Definition unit.h:140