Freeciv-3.3
|
Go to the source code of this file.
Functions | |
gboolean | butt_release_mapcanvas (GtkWidget *w, GdkEventButton *ev, gpointer data) |
gboolean | butt_down_mapcanvas (GtkWidget *w, GdkEventButton *ev, gpointer data) |
gboolean | butt_down_overviewcanvas (GtkWidget *w, GdkEventButton *ev, gpointer data) |
gboolean | move_mapcanvas (GtkWidget *w, GdkEventMotion *ev, gpointer data) |
gboolean | leave_mapcanvas (GtkWidget *widget, GdkEventCrossing *event) |
gboolean | move_overviewcanvas (GtkWidget *w, GdkEventMotion *ev, gpointer data) |
void | center_on_unit (void) |
void | popupinfo_popdown_callback (GtkWidget *w, gpointer data) |
gboolean butt_down_mapcanvas | ( | GtkWidget * | w, |
GdkEventButton * | ev, | ||
gpointer | data | ||
) |
Handle all mouse button press on canvas. Future feature: User-configurable mouse clicks.
Definition at line 242 of file mapctrl.c.
Referenced by setup_widgets().
gboolean butt_down_overviewcanvas | ( | GtkWidget * | w, |
GdkEventButton * | ev, | ||
gpointer | data | ||
) |
gboolean butt_release_mapcanvas | ( | GtkWidget * | w, |
GdkEventButton * | ev, | ||
gpointer | data | ||
) |
Handle 'Mouse button released'. Because of the quickselect feature, the release of both left and right mousebutton can launch the goto.
Definition at line 221 of file mapctrl.c.
Referenced by setup_widgets().
gboolean leave_mapcanvas | ( | GtkWidget * | widget, |
GdkEventCrossing * | event | ||
) |
This function will reset the mouse cursor if it leaves the map.
Definition at line 435 of file mapctrl.c.
Referenced by setup_widgets().
gboolean move_mapcanvas | ( | GtkWidget * | w, |
GdkEventMotion * | ev, | ||
gpointer | data | ||
) |
Triggered by the mouse moving on the mapcanvas, this function will update the mouse cursor and goto lines.
Definition at line 406 of file mapctrl.c.
Referenced by setup_widgets().
gboolean move_overviewcanvas | ( | GtkWidget * | w, |
GdkEventMotion * | ev, | ||
gpointer | data | ||
) |