Freeciv21
Develop your civilization from humble roots to a global empire
mapctrl_g.h File Reference
#include "support.h"
#include "fc_types.h"
#include "mapctrl_common.h"
+ Include dependency graph for mapctrl_g.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void popup_newcity_dialog (struct unit *punit, const char *suggestname)
 Popup a dialog to ask for the name of a new city. More...
 
void create_line_at_mouse_pos ()
 Draw a goto or patrol line at the current mouse position. More...
 
void update_rect_at_mouse_pos ()
 The Area Selection rectangle. More...
 

Function Documentation

◆ create_line_at_mouse_pos()

void create_line_at_mouse_pos ( )

Draw a goto or patrol line at the current mouse position.

Definition at line 68 of file mapctrl.cpp.

Referenced by base_set_mapview_origin(), request_unit_connect(), request_unit_goto(), request_unit_patrol(), and mr_menu::slot_delayed_goto().

◆ popup_newcity_dialog()

void popup_newcity_dialog ( struct unit punit,
const char *  suggestname 
)

Popup a dialog to ask for the name of a new city.

The given string should be used as a suggestion.

Definition at line 44 of file mapctrl.cpp.

Referenced by handle_city_name_suggestion_info().

◆ update_rect_at_mouse_pos()

void update_rect_at_mouse_pos ( void  )

The Area Selection rectangle.

Called by center_tile_mapcanvas() and when the mouse pointer moves.

Definition at line 88 of file mapctrl.cpp.

Referenced by base_set_mapview_origin().