21#ifdef SDL2_PLAIN_INCLUDE
131 struct tile *original;
132 int window_x = 0, window_y = 0;
138 h = city_list_size(pplayer->cities);
153 pstr->
style |= TTF_STYLE_BOLD;
163 area = pwindow->
area;
175 buf->key = SDLK_ESCAPE;
204 buf->string_utf8->style &= ~SF_CENTER;
206 buf->string_utf8->bgcol = (SDL_Color) {0, 0, 0, 0};
208 buf->data.city = pcity;
215 area.w =
MAX(area.w, buf->size.w);
216 area.h += buf->size.h;
240 units_h = 20 * buf->size.h +
adj_size(2);
251 (pwindow->
size.w - pwindow->
area.w) + area.w,
252 (pwindow->
size.h - pwindow->
area.h) + area.h);
254 area = pwindow->
area;
279 buf->
size.x = area.x + area.w - buf->size.w - 1;
290 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)
#define PRESSED_EVENT(event)
void enable_and_redraw_find_city_button(void)
@ ID_TERRAIN_ADV_DLG_WINDOW
@ ID_TERRAIN_ADV_DLG_EXIT_BUTTON
#define create_utf8_from_char_fonto(string_in, fonto)
static SDL_Surface * get_nation_flag_surface(const struct nation_type *pnation)
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 * active_widget_list
struct widget * end_widget_list
struct widget * begin_widget_list
struct widget * begin_active_widget_list
struct widget * end_active_widget_list
struct scroll_bar * scroll
int fc_snprintf(char *str, size_t n, const char *format,...)