Freeciv-3.1
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
24gboolean left_butt_up_mapcanvas(GtkGestureClick *gesture, int n_press,
25 double x, double y, gpointer data);
26gboolean right_butt_up_mapcanvas(GtkGestureClick *gesture, int n_press,
27 double x, double y, gpointer data);
28gboolean left_butt_down_mapcanvas(GtkGestureClick *gesture, int n_press,
29 double x, double y, gpointer data);
30gboolean right_butt_down_mapcanvas(GtkGestureClick *gesture, int n_press,
31 double x, double y, gpointer data);
32gboolean middle_butt_down_mapcanvas(GtkGestureClick *gesture, int n_press,
33 double x, double y, gpointer data);
34gboolean left_butt_down_overviewcanvas(GtkGestureClick *gesture, int n_press,
35 double x, double y, gpointer data);
36gboolean right_butt_down_overviewcanvas(GtkGestureClick *gesture, int n_press,
37 double x, double y, gpointer data);
38gboolean move_mapcanvas(GtkEventControllerMotion *controller,
39 gdouble x, gdouble y, gpointer data);
40gboolean leave_mapcanvas(GtkEventControllerMotion *controller,
41 gpointer data);
42gboolean 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 */
gboolean move_overviewcanvas(GtkWidget *w, GdkEventMotion *ev, gpointer data)
Definition mapctrl.c:458
void center_on_unit(void)
Definition mapctrl.c:490
gboolean move_mapcanvas(GtkWidget *w, GdkEventMotion *ev, gpointer data)
Definition mapctrl.c:400
gboolean leave_mapcanvas(GtkWidget *widget, GdkEventCrossing *event)
Definition mapctrl.c:429
void popupinfo_popdown_callback(GtkWidget *w, gpointer data)
Definition mapctrl.c:164
gboolean right_butt_down_overviewcanvas(GtkGestureClick *gesture, int n_press, double x, double y, gpointer data)
Definition mapctrl.c:499
gboolean left_butt_up_mapcanvas(GtkGestureClick *gesture, int n_press, double x, double y, gpointer data)
Definition mapctrl.c:164
gboolean right_butt_up_mapcanvas(GtkGestureClick *gesture, int n_press, double x, double y, gpointer data)
Definition mapctrl.c:181
gboolean left_butt_down_overviewcanvas(GtkGestureClick *gesture, int n_press, double x, double y, gpointer data)
Definition mapctrl.c:474
gboolean left_butt_down_mapcanvas(GtkGestureClick *gesture, int n_press, double x, double y, gpointer data)
Definition mapctrl.c:206
gboolean right_butt_down_mapcanvas(GtkGestureClick *gesture, int n_press, double x, double y, gpointer data)
Definition mapctrl.c:261
gboolean middle_butt_down_mapcanvas(GtkGestureClick *gesture, int n_press, double x, double y, gpointer data)
Definition mapctrl.c:330