1 #ifndef WIDGET_CITY_H 2 #define WIDGET_CITY_H 3 4 #include "graphics/tooltip.h" 5 #include "input/hotkey.h" 6 #include "input/mouse.h" 7 8 typedef struct { 9 int x; 10 int y; 11 } pixel_coordinate; 12 13 void widget_city_draw(void); 14 void widget_city_draw_for_figure(int figure_id, pixel_coordinate *coord); 15 16 int widget_city_draw_construction_cost_and_size(void); 17 void widget_city_draw_touch_buttons(void); 18 19 int widget_city_has_input(void); 20 void widget_city_handle_input(const mouse *m, const hotkeys *h); 21 void widget_city_handle_input_military(const mouse *m, const hotkeys *h, int legion_formation_id); 22 23 void widget_city_get_tooltip(tooltip_context *c); 24 25 void widget_city_clear_current_tile(void); 26 27 int widget_city_current_grid_offset(void); 28 29 #endif // WIDGET_CITY_H 30