21#ifdef SDL2_PLAIN_INCLUDE
130 int h = 0,
n = 0, w = 0,
units_h = 0;
132 struct tile *original;
164 area = pwindow->
area;
209 buf->data.city = pcity;
216 area.w =
MAX(area.w,
buf->size.w);
217 area.h +=
buf->size.h;
252 (pwindow->
size.w - pwindow->
area.w) + area.w,
253 (pwindow->
size.h - pwindow->
area.h) + area.h);
255 area = pwindow->
area;
280 buf->
size.x = area.x + area.w -
buf->size.w - 1;
291 area.x + area.w, area.y,
const char * city_name_get(const struct city *pcity)
#define city_list_iterate(citylist, pcity)
static citizens city_size_get(const struct city *pcity)
#define city_owner(_pcity_)
#define city_list_iterate_end
struct color * get_player_color(const struct tileset *t, const struct player *pplayer)
void popup_find_dialog(void)
static int find_city_window_dlg_callback(struct widget *pwindow)
static struct advanced_dialog * find_city_dlg
void popdown_find_dialog(void)
static int find_city_callback(struct widget *pwidget)
static int exit_find_city_dlg_callback(struct widget *pwidget)
int main_window_width(void)
SDL_Surface * crop_visible_part_from_surface(SDL_Surface *psrc)
struct sdl2_data main_data
int main_window_height(void)
@ ID_TERRAIN_ADV_DLG_WINDOW
@ ID_TERRAIN_ADV_DLG_EXIT_BUTTON
#define PRESSED_EVENT(event)
#define create_utf8_from_char_fonto(string_in, fonto)
static SDL_Surface * get_nation_flag_surface(const struct nation_type *pnation)
void enable_and_redraw_find_city_button(void)
struct tile * map_pos_to_tile(const struct civ_map *nmap, int map_x, int map_y)
static int index_to_map_pos_y(int mindex)
static int index_to_map_pos_x(int mindex)
struct tile * canvas_pos_to_tile(float canvas_x, float canvas_y, float zoom)
void center_tile_mapcanvas(const struct tile *ptile)
#define fc_calloc(n, esz)
struct nation_type * nation_of_player(const struct player *pplayer)
bool player_owns_city(const struct player *pplayer, const struct city *pcity)
#define players_iterate_end
#define players_iterate(_pplayer)
struct widget * begin_active_widget_list
struct widget * end_widget_list
struct widget * end_active_widget_list
struct widget * active_widget_list
struct scroll_bar * scroll
struct widget * begin_widget_list
int fc_snprintf(char *str, size_t n, const char *format,...)