227 if (
ev->button == 1 ||
ev->button == 3) {
259 switch (
ev->button) {
bool can_client_issue_orders(void)
bool can_client_change_view(void)
enum known_type client_tile_get_known(const struct tile *ptile)
void do_map_click(struct tile *ptile, enum quickselect_type qtype)
struct unit_list * get_units_in_focus(void)
void request_center_focus_unit(void)
enum cursor_hover_state hover_state
void finish_city(struct tile *ptile, const char *name)
struct unit * find_visible_unit(struct tile *ptile)
void control_mouse_cursor(struct tile *ptile)
void cancel_city(struct tile *ptile)
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
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 int const struct action *paction struct unit struct city * pcity
bool editor_is_active(void)
void inputline_make_chat_link(struct tile *ptile, bool unit)
gboolean handle_edit_mouse_button_release(GdkEventButton *ev)
gboolean handle_edit_mouse_button_press(GdkEventButton *ev)
gboolean handle_edit_mouse_move(GdkEventMotion *ev)
GtkWidget * turn_done_button
GtkWidget * overview_canvas
void update_turn_done_tooltip(void)
#define GUI_GTK_OPTION(optname)
bool infra_placement_mode(void)
void infra_placement_set_tile(struct tile *ptile)
gboolean butt_release_mapcanvas(GtkWidget *w, GdkEventButton *ev, gpointer data)
gboolean move_overviewcanvas(GtkWidget *w, GdkEventMotion *ev, gpointer data)
gboolean butt_down_overviewcanvas(GtkWidget *w, GdkEventButton *ev, gpointer data)
void popup_newcity_dialog(struct unit *punit, const char *suggestname)
void center_on_unit(void)
void create_line_at_mouse_pos(void)
static gboolean popit_button_release(GtkWidget *w, GdkEventButton *ev)
gboolean butt_down_mapcanvas(GtkWidget *w, GdkEventButton *ev, gpointer data)
gboolean move_mapcanvas(GtkWidget *w, GdkEventMotion *ev, gpointer data)
static void popit(GdkEventButton *ev, struct tile *ptile)
void set_turn_done_button_state(bool state)
gboolean leave_mapcanvas(GtkWidget *widget, GdkEventCrossing *event)
static void popupinfo_positioning_callback(GtkWidget *w, GtkAllocation *alloc, gpointer data)
void popupinfo_popdown_callback(GtkWidget *w, gpointer data)
static void name_new_city_popup_callback(gpointer data, gint response, const char *input)
void update_rect_at_mouse_pos(void)
void update_unit_info_label(struct unit_list *punits)
void update_mouse_cursor(enum cursor_type new_cursor_type)
bool rally_set_tile(struct tile *ptile)
struct tile * index_to_tile(const struct civ_map *imap, int mindex)
struct tile * map_pos_to_tile(const struct civ_map *nmap, int map_x, int map_y)
void update_line(int canvas_x, int canvas_y)
void maybe_activate_keyboardless_goto(int canvas_x, int canvas_y)
void adjust_workers_button_pressed(int canvas_x, int canvas_y)
void release_goto_button(int canvas_x, int canvas_y)
bool tiles_hilited_cities
void action_button_pressed(int canvas_x, int canvas_y, enum quickselect_type qtype)
void wakeup_button_pressed(int canvas_x, int canvas_y)
void release_right_button(int canvas_x, int canvas_y, bool shift)
bool keyboardless_goto_button_down
void key_city_overlay(int canvas_x, int canvas_y)
void update_selection_rectangle(float canvas_x, float canvas_y)
void overview_update_line(int overview_x, int overview_y)
void anchor_selection_rectangle(int canvas_x, int canvas_y)
void cancel_tile_hiliting(void)
void clipboard_paste_production(struct city *pcity)
bool clipboard_copy_production(struct tile *ptile)
void toggle_tile_hilite(struct tile *ptile)
void mapdeco_set_crosshair(const struct tile *ptile, bool crosshair)
struct tile * canvas_pos_to_tile(float canvas_x, float canvas_y, float zoom)
void mapdeco_set_gotoroute(const struct unit *punit)
void mapdeco_clear_gotoroutes(void)
void center_tile_mapcanvas(const struct tile *ptile)
void mapdeco_clear_crosshairs(void)
bool tile_to_canvas_pos(float *canvas_x, float *canvas_y, float zoom, const struct tile *ptile)
void overview_to_map_pos(int *map_x, int *map_y, int overview_x, int overview_y)
#define CLIP(lower, current, upper)
struct sprite int int int int struct sprite * mask
const char * popup_info_text(struct tile *ptile)
struct city * tile_city(const struct tile *ptile)
int tileset_tile_height(const struct tileset *t)
int tileset_tile_width(const struct tileset *t)