124 *(
int *)
motion->pscroll_bar->data.ptr =
128 *(
int *)
motion->pscroll_bar->data.ptr);
364 buf->data.ptr = (
void *)
buf->next;
367 pwindow->
dst,
_(
"No"),
377 buf->next->size.w =
buf->size.w;
393 pwidget->
size.x - pwindow->
size.w / 2,
419 buf->size.y =
buf->next->size.y;
529 for (
i = 0;
i < count;
i++) {
542 buf->data.ptr = (
void *)1;
580 button->
size.x - (pwindow->
size.w / 2),
811 dst.x, dst.y, dst.x + dst.w - 1, dst.y + dst.h - 1,
914 _(
"City of %s (Population %s citizens) : %s"),
917 _(
"Citizen Governor"));
1081#ifdef GUI_SDL3_SMALL_SCREEN
1123#ifdef GUI_SDL3_SMALL_SCREEN
1157 buf->size.y = pwindow->
size.y +
dst.y + (text[
i]->h -
buf->size.h) / 2;
1162 buf->size.y = pwindow->
size.y +
dst.y + (text[
i]->h -
buf->size.h) / 2;
1177 buf->size.y = pwindow->
size.y +
dst.y + (text[
i]->h -
buf->size.h) / 2;
1182 buf->size.y = pwindow->
size.y +
dst.y + (text[
i]->h -
buf->size.h) / 2;
1201 buf->size.x =
buf->next->next->size.x;
1249 buf->size.y =
buf->next->size.y;
1254 buf->size.y =
buf->next->size.y;
1259 buf->size.y =
buf->next->size.y;
1264 buf->size.y =
buf->next->size.y;
1269 buf->size.y =
buf->next->size.y;
const char * city_name_get(const struct city *pcity)
int city_population(const struct city *pcity)
const char * get_output_name(Output_type_id output)
static citizens city_size_get(const struct city *pcity)
#define output_type_iterate(output)
#define output_type_iterate_end
void refresh_city_dialog(struct city *pcity)
void city_report_dialog_update(void)
bool can_client_issue_orders(void)
void cm_copy_parameter(struct cm_parameter *dest, const struct cm_parameter *const src)
struct cm_result * cm_result_new(struct city *pcity)
void cm_result_from_main_map(struct cm_result *result, const struct city *pcity)
void cm_result_destroy(struct cm_result *result)
void cm_query_result(struct city *pcity, const struct cm_parameter *param, struct cm_result *result, bool negative_ok)
bool cma_is_city_under_agent(const struct city *pcity, struct cm_parameter *parameter)
void cma_put_city_under_agent(struct city *pcity, const struct cm_parameter *const parameter)
void cma_release_city(struct city *pcity)
bool cma_apply_result(struct city *pcity, const struct cm_result *result)
void cmafec_set_fe_parameter(struct city *pcity, const struct cm_parameter *const parameter)
char * cmafec_preset_get_descr(int idx)
const char * cmafec_get_result_descr(struct city *pcity, const struct cm_result *result, const struct cm_parameter *const parameter)
const struct cm_parameter * cmafec_preset_get_parameter(int idx)
void cmafec_preset_add(const char *descr_name, struct cm_parameter *pparam)
void cmafec_preset_remove(int idx)
int cmafec_preset_num(void)
void cmafec_get_fe_parameter(struct city *pcity, struct cm_parameter *dest)
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
const char * population_to_text(int thousand_citizen)
bool city_dialog_is_open(struct city *pcity)
void enable_city_dlg_widgets(void)
SDL_Surface * get_scaled_city_map(struct city *pcity)
static int save_cma_callback(struct widget *pwidget)
static int ld_cma_callback(struct widget *pwidget)
static int load_cma_callback(struct widget *pwidget)
static void set_cma_hscrollbars(void)
static struct cma_dialog * cma
static int toggle_cma_celebrating_callback(struct widget *pwidget)
static int save_cma_window_callback(struct widget *pwindow)
static Uint16 scroll_mouse_button_up(SDL_MouseButtonEvent *button_event, void *data)
static int exit_cma_dialog_callback(struct widget *pwidget)
static int run_cma_once_callback(struct widget *pwidget)
static int cma_dlg_callback(struct widget *pwindow)
static int run_cma_callback(struct widget *pwidget)
static int min_horiz_cma_callback(struct widget *pwidget)
void update_city_cma_dialog(void)
static Uint16 scroll_mouse_motion_handler(SDL_MouseMotionEvent *motion_event, void *data)
static int del_cma_callback(struct widget *pwidget)
void popup_city_cma_dialog(struct city *pcity)
void popdown_city_cma_dialog(void)
static int ok_save_cma_callback(struct widget *pwidget)
static void popup_load_del_presets_dialog(bool load, struct widget *button)
static int cancel_sld_cma_callback(struct widget *pwidget)
static int stop_cma_callback(struct widget *pwidget)
static int factor_horiz_cma_callback(struct widget *pwidget)
SDL_Color * get_theme_color(enum theme_color themecolor)
int main_window_width(void)
int fill_rect_alpha(SDL_Surface *surf, SDL_Rect *prect, SDL_Color *pcolor)
int alphablit(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect, unsigned char alpha_mod)
struct sdl2_data main_data
void create_frame(SDL_Surface *dest, Sint16 left, Sint16 top, Sint16 width, Sint16 height, SDL_Color *pcolor)
int main_window_height(void)
int FilterMouseMotionEvents(void *data, SDL_Event *event)
Uint16 gui_event_loop(void *data, void(*loop_action)(void *data), Uint16(*key_down_handler)(SDL_Keysym key, void *data), Uint16(*key_up_handler)(SDL_Keysym key, void *data), Uint16(*textinput_handler)(const char *text, void *data), Uint16(*finger_down_handler)(SDL_TouchFingerEvent *touch_event, void *data), Uint16(*finger_up_handler)(SDL_TouchFingerEvent *touch_event, void *data), Uint16(*finger_motion_handler)(SDL_TouchFingerEvent *touch_event, void *data), Uint16(*mouse_button_down_handler)(SDL_MouseButtonEvent *button_event, void *data), Uint16(*mouse_button_up_handler)(SDL_MouseButtonEvent *button_event, void *data), Uint16(*mouse_motion_handler)(SDL_MouseMotionEvent *motion_event, void *data))
struct widget * selected_widget
#define DEFAULT_MOVE_STEP
#define PRESSED_EVENT(event)
utf8_str * copy_chars_to_utf8_str(utf8_str *pstr, const char *pchars)
SDL_Surface * create_text_surf_from_utf8(utf8_str *pstr)
utf8_str * create_utf8_str_fonto(char *in_text, size_t n_alloc, enum font_origin origin)
#define FREEUTF8STR(pstr)
#define create_utf8_from_char_fonto(string_in, fonto)
void reload_citizens_icons(int style)
static SDL_Surface * get_citizen_surface(enum citizen_category type, int citizen_index)
static SDL_Surface * get_tax_surface(Output_type_id otype)
SDL_Surface * theme_get_background(const struct theme *t, enum theme_background background)
struct theme * active_theme
#define fc_calloc(n, esz)
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 minimal_surplus[O_LAST]
citizens specialists[SP_MAX]
struct small_dialog * dlg
struct advanced_dialog * adv
struct cm_parameter edited_cm_parm
struct widget * pscroll_bar
struct widget * begin_widget_list
struct widget * end_widget_list
int style_of_city(const struct city *pcity)
int fc_snprintf(char *str, size_t n, const char *format,...)