|
Freeciv-3.2
|
#include <gtk/gtk.h>#include "fcintl.h"#include "support.h"#include "combat.h"#include "game.h"#include "map.h"#include "player.h"#include "unit.h"#include "overview_common.h"#include "client_main.h"#include "climap.h"#include "climisc.h"#include "control.h"#include "editor.h"#include "tilespec.h"#include "text.h"#include "zoom.h"#include "cma_core.h"#include "chatline.h"#include "citydlg.h"#include "colors.h"#include "dialogs.h"#include "editgui.h"#include "graphics.h"#include "gui_main.h"#include "infradlg.h"#include "inputdlg.h"#include "mapview.h"#include "menu.h"#include "rallypointdlg.h"#include "mapctrl.h"Go to the source code of this file.
Variables | |
| gint | cur_x |
| gint | cur_y |
| gboolean leave_mapcanvas | ( | GtkEventControllerMotion * | controller, |
| gpointer | data | ||
| ) |
| gboolean left_butt_down_mapcanvas | ( | GtkGestureClick * | gesture, |
| int | n_press, | ||
| double | x, | ||
| double | y, | ||
| gpointer | data | ||
| ) |
Handle all left mouse button presses on canvas. Future feature: User-configurable mouse clicks.
Definition at line 208 of file mapctrl.c.
Referenced by setup_widgets().
| gboolean left_butt_down_overviewcanvas | ( | GtkGestureClick * | gesture, |
| int | n_press, | ||
| double | x, | ||
| double | y, | ||
| gpointer | data | ||
| ) |
Left button pressed at overview
Definition at line 476 of file mapctrl.c.
Referenced by setup_widgets().
| gboolean left_butt_up_mapcanvas | ( | GtkGestureClick * | gesture, |
| int | n_press, | ||
| double | x, | ||
| double | y, | ||
| gpointer | data | ||
| ) |
Handle 'Left mouse button released'. Because of the quickselect feature, the release of both left and right mousebutton can launch the goto.
Definition at line 166 of file mapctrl.c.
Referenced by setup_widgets().
| gboolean middle_butt_down_mapcanvas | ( | GtkGestureClick * | gesture, |
| int | n_press, | ||
| double | x, | ||
| double | y, | ||
| gpointer | data | ||
| ) |
Handle all middle mouse button presses on canvas. Future feature: User-configurable mouse clicks.
Definition at line 332 of file mapctrl.c.
Referenced by setup_widgets().
| gboolean move_mapcanvas | ( | GtkEventControllerMotion * | controller, |
| gdouble | x, | ||
| gdouble | y, | ||
| gpointer | data | ||
| ) |
| gboolean move_overviewcanvas | ( | GtkEventControllerMotion * | controller, |
| gdouble | x, | ||
| gdouble | y, | ||
| gpointer | data | ||
| ) |
| gboolean right_butt_down_mapcanvas | ( | GtkGestureClick * | gesture, |
| int | n_press, | ||
| double | x, | ||
| double | y, | ||
| gpointer | data | ||
| ) |
Handle all right mouse button presses on canvas. Future feature: User-configurable mouse clicks.
Definition at line 263 of file mapctrl.c.
Referenced by setup_widgets().
| gboolean right_butt_down_overviewcanvas | ( | GtkGestureClick * | gesture, |
| int | n_press, | ||
| double | x, | ||
| double | y, | ||
| gpointer | data | ||
| ) |
Right button pressed at overview
Definition at line 501 of file mapctrl.c.
Referenced by setup_widgets().
| gboolean right_butt_up_mapcanvas | ( | GtkGestureClick * | gesture, |
| int | n_press, | ||
| double | x, | ||
| double | y, | ||
| gpointer | data | ||
| ) |
Handle 'Right mouse button released'. Because of the quickselect feature, the release of both left and right mousebutton can launch the goto.
Definition at line 183 of file mapctrl.c.
Referenced by setup_widgets().
The Area Selection rectangle. Called by center_tile_mapcanvas() and when the mouse pointer moves.
|
extern |
Definition at line 182 of file gui_main.c.
Referenced by mouse_scroll_mapcanvas(), and mouse_scroll_mapcanvas().