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

Freeciv-3.3

Loading...
Searching...
No Matches
mapctrl.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__MAPCTRL_H
14#define FC__MAPCTRL_H
15
16#include <gtk/gtk.h>
17
18/* common */
19#include "fc_types.h"
20
21/* client */
22#include "mapctrl_g.h"
23
24 gboolean left_butt_up_mapcanvas(GtkGestureClick *gesture, int n_press,
25 double x, double y, gpointer data);
26 gboolean right_butt_up_mapcanvas(GtkGestureClick *gesture, int n_press,
27 double x, double y, gpointer data);
28 gboolean left_butt_down_mapcanvas(GtkGestureClick *gesture, int n_press,
29 double x, double y, gpointer data);
30 gboolean right_butt_down_mapcanvas(GtkGestureClick *gesture, int n_press,
31 double x, double y, gpointer data);
32 gboolean middle_butt_down_mapcanvas(GtkGestureClick *gesture, int n_press,
33 double x, double y, gpointer data);
34 gboolean left_butt_down_overviewcanvas(GtkGestureClick *gesture, int n_press,
35 double x, double y, gpointer data);
36 gboolean right_butt_down_overviewcanvas(GtkGestureClick *gesture, int n_press,
37 double x, double y, gpointer data);
38 gboolean move_mapcanvas(GtkEventControllerMotion *controller,
39 gdouble x, gdouble y, gpointer data);
40 gboolean leave_mapcanvas(GtkEventControllerMotion *controller,
41 gpointer data);
42 gboolean move_overviewcanvas(GtkEventControllerMotion *controller,
43 gdouble x, gdouble y, gpointer data);
44
45void center_on_unit(void);
46
47void popupinfo_popdown_callback(GtkWidget *w, gpointer data);
48
49#endif /* FC__MAPCTRL_H */
incite_cost
char * incite_cost
Definition comments.c:74
fc_types.h
move_overviewcanvas
gboolean move_overviewcanvas(GtkWidget *w, GdkEventMotion *ev, gpointer data)
Definition mapctrl.c:463
center_on_unit
void center_on_unit(void)
Definition mapctrl.c:496
move_mapcanvas
gboolean move_mapcanvas(GtkWidget *w, GdkEventMotion *ev, gpointer data)
Definition mapctrl.c:406
leave_mapcanvas
gboolean leave_mapcanvas(GtkWidget *widget, GdkEventCrossing *event)
Definition mapctrl.c:435
popupinfo_popdown_callback
void popupinfo_popdown_callback(GtkWidget *w, gpointer data)
Definition mapctrl.c:167
right_butt_down_overviewcanvas
gboolean right_butt_down_overviewcanvas(GtkGestureClick *gesture, int n_press, double x, double y, gpointer data)
Definition mapctrl.c:499
left_butt_up_mapcanvas
gboolean left_butt_up_mapcanvas(GtkGestureClick *gesture, int n_press, double x, double y, gpointer data)
Definition mapctrl.c:164
right_butt_up_mapcanvas
gboolean right_butt_up_mapcanvas(GtkGestureClick *gesture, int n_press, double x, double y, gpointer data)
Definition mapctrl.c:181
left_butt_down_overviewcanvas
gboolean left_butt_down_overviewcanvas(GtkGestureClick *gesture, int n_press, double x, double y, gpointer data)
Definition mapctrl.c:474
left_butt_down_mapcanvas
gboolean left_butt_down_mapcanvas(GtkGestureClick *gesture, int n_press, double x, double y, gpointer data)
Definition mapctrl.c:206
right_butt_down_mapcanvas
gboolean right_butt_down_mapcanvas(GtkGestureClick *gesture, int n_press, double x, double y, gpointer data)
Definition mapctrl.c:261
middle_butt_down_mapcanvas
gboolean middle_butt_down_mapcanvas(GtkGestureClick *gesture, int n_press, double x, double y, gpointer data)
Definition mapctrl.c:330
mapctrl_g.h
y
struct sprite int int y
Definition sprite_g.h:31
x
struct sprite int x
Definition sprite_g.h:31