Freeciv-3.2: /fast/freeciv/nightly/S3_2/client/gui-qt/qtg_cxxside.cpp Source File

Freeciv-3.2

Loading...
Searching...
No Matches
qtg_cxxside.cpp
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13
14#ifdef HAVE_CONFIG_H
15#include <fc_config.h>
16#endif
17
18// client
19#include "gui_interface.h"
20
21// gui-qt
22#include "fonts.h"
23
24#include "qtg_cxxside.h"
25
26/*******************************************************************/
29 void setup_gui_funcs()
30{
31 struct gui_funcs *funcs = get_gui_funcs();
32
33 funcs->ui_init = qtg_ui_init;
34 funcs->ui_main = qtg_ui_main;
35 funcs->ui_exit = qtg_ui_exit;
36
37 funcs->get_gui_type = qtg_get_gui_type;
38 funcs->insert_client_build_info = qtg_insert_client_build_info;
39
40 funcs->version_message = qtg_version_message;
41 funcs->real_output_window_append = qtg_real_output_window_append;
42
43 funcs->is_view_supported = qtg_is_view_supported;
44 funcs->tileset_type_set = qtg_tileset_type_set;
45 funcs->load_gfxfile = qtg_load_gfxfile;
46 funcs->load_gfxnumber = qtg_load_gfxnumber;
47 funcs->create_sprite = qtg_create_sprite;
48 funcs->get_sprite_dimensions = qtg_get_sprite_dimensions;
49 funcs->crop_sprite = qtg_crop_sprite;
50 funcs->free_sprite = qtg_free_sprite;
51
52 funcs->color_alloc = qtg_color_alloc;
53 funcs->color_free = qtg_color_free;
54
55 funcs->canvas_create = qtg_canvas_create;
56 funcs->canvas_free = qtg_canvas_free;
57 funcs->canvas_set_zoom = qtg_canvas_set_zoom;
58 funcs->has_zoom_support = qtg_has_zoom_support;
59 funcs->canvas_mapview_init = qtg_canvas_mapview_init;
60 funcs->canvas_copy = qtg_canvas_copy;
61 funcs->canvas_put_sprite = qtg_canvas_put_sprite;
62 funcs->canvas_put_sprite_full = qtg_canvas_put_sprite_full;
63 funcs->canvas_put_sprite_full_scaled = qtg_canvas_put_sprite_full_scaled;
64 funcs->canvas_put_sprite_fogged = qtg_canvas_put_sprite_fogged;
65 funcs->canvas_put_rectangle = qtg_canvas_put_rectangle;
66 funcs->canvas_fill_sprite_area = qtg_canvas_fill_sprite_area;
67 funcs->canvas_put_line = qtg_canvas_put_line;
68 funcs->canvas_put_curved_line = qtg_canvas_put_curved_line;
69 funcs->get_text_size = qtg_get_text_size;
70 funcs->canvas_put_text = qtg_canvas_put_text;
71
72 funcs->map_canvas_size_refresh = qtg_map_canvas_size_refresh;
73
74 funcs->set_rulesets = qtg_set_rulesets;
75 funcs->options_extra_init = qtg_options_extra_init;
76 funcs->server_connect = qtg_server_connect;
77 funcs->add_net_input = qtg_add_net_input;
78 funcs->remove_net_input = qtg_remove_net_input;
79 funcs->real_conn_list_dialog_update = qtg_real_conn_list_dialog_update;
80 funcs->close_connection_dialog = qtg_close_connection_dialog;
81 funcs->add_idle_callback = qtg_add_idle_callback;
82 funcs->sound_bell = qtg_sound_bell;
83
84 funcs->real_set_client_page = qtg_real_set_client_page;
85 funcs->get_current_client_page = qtg_get_current_client_page;
86
87 funcs->set_unit_icon = qtg_set_unit_icon;
88 funcs->set_unit_icons_more_arrow = qtg_set_unit_icons_more_arrow;
89 funcs->real_focus_units_changed = qtg_real_focus_units_changed;
90 funcs->gui_update_font = qtg_gui_update_font;
91
92 funcs->editgui_refresh = qtg_editgui_refresh;
93 funcs->editgui_notify_object_created = qtg_editgui_notify_object_created;
94 funcs->editgui_notify_object_changed = qtg_editgui_notify_object_changed;
95 funcs->editgui_popup_properties = qtg_editgui_popup_properties;
96 funcs->editgui_tileset_changed = qtg_editgui_tileset_changed;
97 funcs->editgui_popdown_all = qtg_editgui_popdown_all;
98
99 funcs->popup_combat_info = qtg_popup_combat_info;
100 funcs->update_timeout_label = qtg_update_timeout_label;
101 funcs->start_turn = qtg_start_turn;
102 funcs->real_city_dialog_popup = qtg_real_city_dialog_popup;
103 funcs->real_city_dialog_refresh = qtg_real_city_dialog_refresh;
104 funcs->popdown_city_dialog = qtg_popdown_city_dialog;
105 funcs->popdown_all_city_dialogs = qtg_popdown_all_city_dialogs;
106 funcs->handmade_scenario_warning = qtg_handmade_scenario_warning;
107 funcs->refresh_unit_city_dialogs = qtg_refresh_unit_city_dialogs;
108 funcs->city_dialog_is_open = qtg_city_dialog_is_open;
109
110 funcs->request_transport = qtg_request_transport;
111
112 funcs->update_infra_dialog = qtg_update_infra_dialog;
113
114 funcs->gui_load_theme = qtg_gui_load_theme;
115 funcs->gui_clear_theme = qtg_gui_clear_theme;
116 funcs->get_gui_specific_themes_directories = qtg_get_gui_specific_themes_directories;
117 funcs->get_useable_themes_in_directory = qtg_get_useable_themes_in_directory;
118
119 funcs->gui_init_meeting = qtg_init_meeting;
120 funcs->gui_recv_cancel_meeting = qtg_recv_cancel_meeting;
121 funcs->gui_prepare_clause_updt = qtg_prepare_clause_updt;
122 funcs->gui_recv_create_clause = qtg_recv_create_clause;
123 funcs->gui_recv_remove_clause = qtg_recv_remove_clause;
124 funcs->gui_recv_accept_treaty = qtg_recv_accept_treaty;
125
126 funcs->request_action_confirmation = qtg_request_action_confirmation;
127}
qtg_get_text_size
void qtg_get_text_size(int *width, int *height, enum client_font font, const char *text)
Definition canvas.cpp:331
qtg_canvas_fill_sprite_area
void qtg_canvas_fill_sprite_area(struct canvas *pcanvas, struct sprite *psprite, struct color *pcolor, int canvas_x, int canvas_y)
Definition canvas.cpp:234
qtg_canvas_put_text
void qtg_canvas_put_text(struct canvas *pcanvas, int canvas_x, int canvas_y, enum client_font font, struct color *pcolor, const char *text)
Definition canvas.cpp:354
qtg_has_zoom_support
bool qtg_has_zoom_support()
Definition canvas.cpp:64
qtg_canvas_put_sprite_full
void qtg_canvas_put_sprite_full(struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *sprite)
Definition canvas.cpp:154
qtg_canvas_free
void qtg_canvas_free(struct canvas *store)
Definition canvas.cpp:48
qtg_canvas_put_curved_line
void qtg_canvas_put_curved_line(struct canvas *pcanvas, struct color *pcolor, enum line_type ltype, int start_x, int start_y, int dx, int dy)
Definition canvas.cpp:286
qtg_canvas_put_sprite_full_scaled
void qtg_canvas_put_sprite_full_scaled(struct canvas *pcanvas, int canvas_x, int canvas_y, int canvas_w, int canvas_h, struct sprite *sprite)
Definition canvas.cpp:168
qtg_canvas_put_line
void qtg_canvas_put_line(struct canvas *pcanvas, struct color *pcolor, enum line_type ltype, int start_x, int start_y, int dx, int dy)
Definition canvas.cpp:247
qtg_canvas_create
struct canvas * qtg_canvas_create(int width, int height)
Definition canvas.cpp:36
qtg_canvas_put_sprite
void qtg_canvas_put_sprite(struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *sprite, int offset_x, int offset_y, int width, int height)
Definition canvas.cpp:139
qtg_canvas_copy
void qtg_canvas_copy(struct canvas *dest, struct canvas *src, int src_x, int src_y, int dest_x, int dest_y, int width, int height)
Definition canvas.cpp:79
qtg_canvas_put_rectangle
void qtg_canvas_put_rectangle(struct canvas *pcanvas, struct color *pcolor, int canvas_x, int canvas_y, int width, int height)
Definition canvas.cpp:205
qtg_canvas_put_sprite_fogged
void qtg_canvas_put_sprite_fogged(struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *psprite, bool fog, int fog_x, int fog_y)
Definition canvas.cpp:188
qtg_canvas_set_zoom
void qtg_canvas_set_zoom(struct canvas *store, float zoom)
Definition canvas.cpp:56
qtg_canvas_mapview_init
void qtg_canvas_mapview_init(struct canvas *store)
Definition canvas.cpp:72
qtg_version_message
void qtg_version_message(const char *vertext)
Definition chatline.cpp:806
qtg_real_output_window_append
void qtg_real_output_window_append(const char *astring, const struct text_tag_list *tags, int conn_id)
Definition chatline.cpp:738
qtg_popdown_city_dialog
void qtg_popdown_city_dialog(struct city *pcity)
Definition citydlg.cpp:3734
qtg_real_city_dialog_refresh
void qtg_real_city_dialog_refresh(struct city *pcity)
Definition citydlg.cpp:3754
qtg_city_dialog_is_open
bool qtg_city_dialog_is_open(struct city *pcity)
Definition citydlg.cpp:3809
qtg_popdown_all_city_dialogs
void qtg_popdown_all_city_dialogs()
Definition citydlg.cpp:3746
qtg_refresh_unit_city_dialogs
void qtg_refresh_unit_city_dialogs(struct unit *punit)
Definition citydlg.cpp:3793
qtg_real_city_dialog_popup
void qtg_real_city_dialog_popup(struct city *pcity)
Definition citydlg.cpp:3706
qtg_color_alloc
struct color * qtg_color_alloc(int r, int g, int b)
Definition colors.cpp:33
qtg_color_free
void qtg_color_free(struct color *pcolor)
Definition colors.cpp:45
qtg_close_connection_dialog
void qtg_close_connection_dialog()
Definition connectdlg.cpp:39
qtg_server_connect
void qtg_server_connect()
Definition connectdlg.cpp:77
qtg_handmade_scenario_warning
bool qtg_handmade_scenario_warning()
Definition dialogs.cpp:4856
qtg_request_action_confirmation
void qtg_request_action_confirmation(const char *expl, struct act_confirmation_data *data)
Definition dialogs.cpp:4949
qtg_popup_combat_info
void qtg_popup_combat_info(int attacker_unit_id, int defender_unit_id, int attacker_hp, int defender_hp, bool make_att_veteran, bool make_def_veteran)
Definition dialogs.cpp:4906
qtg_request_transport
bool qtg_request_transport(struct unit *pcargo, struct tile *ptile)
Definition dialogs.cpp:4865
qtg_recv_create_clause
void qtg_recv_create_clause(struct Treaty *ptreaty, struct player *they)
Definition diplodlg.cpp:1038
qtg_recv_accept_treaty
void qtg_recv_accept_treaty(struct Treaty *ptreaty, struct player *they)
Definition diplodlg.cpp:919
qtg_prepare_clause_updt
void qtg_prepare_clause_updt(struct Treaty *ptreaty, struct player *they)
Definition diplodlg.cpp:1030
qtg_init_meeting
void qtg_init_meeting(struct Treaty *ptreaty, struct player *they, struct player *initiator)
Definition diplodlg.cpp:944
qtg_recv_cancel_meeting
void qtg_recv_cancel_meeting(struct Treaty *ptreaty, struct player *they, struct player *initiator)
Definition diplodlg.cpp:1062
qtg_recv_remove_clause
void qtg_recv_remove_clause(struct Treaty *ptreaty, struct player *they)
Definition diplodlg.cpp:1082
fonts.h
qtg_is_view_supported
bool qtg_is_view_supported(enum ts_type type)
Definition graphics.cpp:28
qtg_tileset_type_set
void qtg_tileset_type_set(enum ts_type type)
Definition graphics.cpp:42
get_gui_funcs
struct gui_funcs * get_gui_funcs(void)
Definition gui_interface.c:42
funcs
static struct gui_funcs funcs
Definition gui_interface.c:36
gui_interface.h
qtg_ui_init
void qtg_ui_init()
Definition gui_main.cpp:92
qtg_editgui_popup_properties
void qtg_editgui_popup_properties(const struct tile_list *tiles, int objtype)
Definition gui_main.cpp:506
qtg_remove_net_input
void qtg_remove_net_input()
Definition gui_main.cpp:318
qtg_options_extra_init
void qtg_options_extra_init()
Definition gui_main.cpp:237
qtg_editgui_refresh
void qtg_editgui_refresh()
Definition gui_main.cpp:500
qtg_ui_main
int qtg_ui_main(int argc, char *argv[])
Definition gui_main.cpp:170
qtg_editgui_popdown_all
void qtg_editgui_popdown_all()
Definition gui_main.cpp:512
qtg_real_conn_list_dialog_update
void qtg_real_conn_list_dialog_update(void *unused)
Definition gui_main.cpp:283
qtg_editgui_tileset_changed
void qtg_editgui_tileset_changed()
Definition gui_main.cpp:494
qtg_editgui_notify_object_created
void qtg_editgui_notify_object_created(int tag, int id)
Definition gui_main.cpp:525
qtg_add_net_input
void qtg_add_net_input(int sock)
Definition gui_main.cpp:308
qtg_editgui_notify_object_changed
void qtg_editgui_notify_object_changed(int objtype, int object_id, bool removal)
Definition gui_main.cpp:518
qtg_gui_update_font
void qtg_gui_update_font(const char *font_name, const char *font_value)
Definition gui_main.cpp:531
qtg_set_unit_icon
void qtg_set_unit_icon(int idx, struct unit *punit)
Definition gui_main.cpp:334
qtg_ui_exit
void qtg_ui_exit()
Definition gui_main.cpp:273
qtg_real_focus_units_changed
void qtg_real_focus_units_changed(void)
Definition gui_main.cpp:356
qtg_insert_client_build_info
void qtg_insert_client_build_info(char *outbuf, size_t outlen)
Definition gui_main.cpp:587
qtg_set_unit_icons_more_arrow
void qtg_set_unit_icons_more_arrow(bool onoff)
Definition gui_main.cpp:346
qtg_add_idle_callback
void qtg_add_idle_callback(void(callback)(void *), void *data)
Definition gui_main.cpp:372
qtg_get_gui_type
enum gui_type qtg_get_gui_type()
Definition gui_main.cpp:549
qtg_sound_bell
void qtg_sound_bell()
Definition gui_main.cpp:295
qtg_update_infra_dialog
void qtg_update_infra_dialog()
Definition infradlg.cpp:24
qtg_update_timeout_label
void qtg_update_timeout_label(void)
Definition mapview.cpp:1086
qtg_start_turn
void qtg_start_turn()
Definition mapview.cpp:1447
qtg_map_canvas_size_refresh
void qtg_map_canvas_size_refresh(void)
Definition mapview.cpp:1459
qtg_real_set_client_page
void qtg_real_set_client_page(enum client_pages page)
Definition pages.cpp:103
qtg_get_current_client_page
enum client_pages qtg_get_current_client_page()
Definition pages.cpp:121
qtg_set_rulesets
void qtg_set_rulesets(int num_rulesets, char **rulesets)
Definition pages.cpp:113
setup_gui_funcs
void setup_gui_funcs()
Definition qtg_cxxside.cpp:29
qtg_cxxside.h
qtg_crop_sprite
struct sprite * qtg_crop_sprite(struct sprite *source, int x, int y, int width, int height, struct sprite *mask, int mask_offset_x, int mask_offset_y, float scale, bool smooth)
Definition sprite.cpp:104
qtg_get_useable_themes_in_directory
char ** qtg_get_useable_themes_in_directory(const char *directory, int *count)
Definition themes.cpp:145
qtg_get_sprite_dimensions
void qtg_get_sprite_dimensions(struct sprite *sprite, int *width, int *height)
Definition sprite.cpp:163
qtg_load_gfxfile
struct sprite * qtg_load_gfxfile(const char *filename, bool svgflag)
Definition sprite.cpp:67
qtg_gui_clear_theme
void qtg_gui_clear_theme()
Definition themes.cpp:104
qtg_free_sprite
void qtg_free_sprite(struct sprite *s)
Definition sprite.cpp:172
qtg_gui_load_theme
void qtg_gui_load_theme(const char *directory, const char *theme_name)
Definition themes.cpp:44
qtg_load_gfxnumber
struct sprite * qtg_load_gfxnumber(int num)
Definition sprite.cpp:195
qtg_get_gui_specific_themes_directories
char ** qtg_get_gui_specific_themes_directories(int *count)
Definition themes.cpp:120
qtg_create_sprite
struct sprite * qtg_create_sprite(int width, int height, struct color *pcolor)
Definition sprite.cpp:181
gui_funcs
Definition gui_interface.h:36
gui_funcs::request_action_confirmation
void(* request_action_confirmation)(const char *expl, struct act_confirmation_data *data)
Definition gui_interface.h:165
gui_funcs::server_connect
void(* server_connect)(void)
Definition gui_interface.h:111
gui_funcs::editgui_tileset_changed
void(* editgui_tileset_changed)(void)
Definition gui_interface.h:131
gui_funcs::load_gfxnumber
struct sprite *(* load_gfxnumber)(int num)
Definition gui_interface.h:52
gui_funcs::ui_main
int(* ui_main)(int argc, char *argv[])
Definition gui_interface.h:38
gui_funcs::canvas_put_text
void(* canvas_put_text)(struct canvas *pcanvas, int canvas_x, int canvas_y, enum client_font font, struct color *pcolor, const char *text)
Definition gui_interface.h:103
gui_funcs::get_gui_specific_themes_directories
char **(* get_gui_specific_themes_directories)(int *count)
Definition gui_interface.h:153
gui_funcs::gui_load_theme
void(* gui_load_theme)(const char *directory, const char *theme_name)
Definition gui_interface.h:151
gui_funcs::update_timeout_label
void(* update_timeout_label)(void)
Definition gui_interface.h:137
gui_funcs::canvas_put_sprite
void(* canvas_put_sprite)(struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *psprite, int offset_x, int offset_y, int width, int height)
Definition gui_interface.h:73
gui_funcs::editgui_refresh
void(* editgui_refresh)(void)
Definition gui_interface.h:127
gui_funcs::set_unit_icon
void(* set_unit_icon)(int idx, struct unit *punit)
Definition gui_interface.h:122
gui_funcs::canvas_copy
void(* canvas_copy)(struct canvas *dest, struct canvas *src, int src_x, int src_y, int dest_x, int dest_y, int width, int height)
Definition gui_interface.h:70
gui_funcs::add_idle_callback
void(* add_idle_callback)(void(callback)(void *), void *data)
Definition gui_interface.h:116
gui_funcs::canvas_put_sprite_full
void(* canvas_put_sprite_full)(struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *psprite)
Definition gui_interface.h:77
gui_funcs::add_net_input
void(* add_net_input)(int sock)
Definition gui_interface.h:112
gui_funcs::gui_recv_create_clause
void(* gui_recv_create_clause)(struct Treaty *ptreaty, struct player *they)
Definition gui_interface.h:161
gui_funcs::tileset_type_set
void(* tileset_type_set)(enum ts_type type)
Definition gui_interface.h:50
gui_funcs::load_gfxfile
struct sprite *(* load_gfxfile)(const char *filename, bool svgflag)
Definition gui_interface.h:51
gui_funcs::gui_init_meeting
void(* gui_init_meeting)(struct Treaty *ptreaty, struct player *they, struct player *initiator)
Definition gui_interface.h:156
gui_funcs::editgui_notify_object_created
void(* editgui_notify_object_created)(int tag, int id)
Definition gui_interface.h:128
gui_funcs::get_current_client_page
enum client_pages(* get_current_client_page)(void)
Definition gui_interface.h:120
gui_funcs::real_city_dialog_refresh
void(* real_city_dialog_refresh)(struct city *pcity)
Definition gui_interface.h:140
gui_funcs::gui_clear_theme
void(* gui_clear_theme)(void)
Definition gui_interface.h:152
gui_funcs::remove_net_input
void(* remove_net_input)(void)
Definition gui_interface.h:113
gui_funcs::real_city_dialog_popup
void(* real_city_dialog_popup)(struct city *pcity)
Definition gui_interface.h:139
gui_funcs::gui_recv_remove_clause
void(* gui_recv_remove_clause)(struct Treaty *ptreaty, struct player *they)
Definition gui_interface.h:162
gui_funcs::get_useable_themes_in_directory
char **(* get_useable_themes_in_directory)(const char *directory, int *count)
Definition gui_interface.h:154
gui_funcs::color_free
void(* color_free)(struct color *pcolor)
Definition gui_interface.h:63
gui_funcs::refresh_unit_city_dialogs
void(* refresh_unit_city_dialogs)(struct unit *punit)
Definition gui_interface.h:144
gui_funcs::is_view_supported
bool(* is_view_supported)(enum ts_type type)
Definition gui_interface.h:49
gui_funcs::get_text_size
void(* get_text_size)(int *width, int *height, enum client_font font, const char *text)
Definition gui_interface.h:101
gui_funcs::editgui_popup_properties
void(* editgui_popup_properties)(const struct tile_list *tiles, int objtype)
Definition gui_interface.h:130
gui_funcs::update_infra_dialog
void(* update_infra_dialog)(void)
Definition gui_interface.h:149
gui_funcs::popup_combat_info
void(* popup_combat_info)(int attacker_unit_id, int defender_unit_id, int attacker_hp, int defender_hp, bool make_att_veteran, bool make_def_veteran)
Definition gui_interface.h:134
gui_funcs::map_canvas_size_refresh
void(* map_canvas_size_refresh)(void)
Definition gui_interface.h:107
gui_funcs::editgui_notify_object_changed
void(* editgui_notify_object_changed)(int objtype, int object_id, bool removal)
Definition gui_interface.h:129
gui_funcs::handmade_scenario_warning
bool(* handmade_scenario_warning)(void)
Definition gui_interface.h:143
gui_funcs::canvas_fill_sprite_area
void(* canvas_fill_sprite_area)(struct canvas *pcanvas, struct sprite *psprite, struct color *pcolor, int canvas_x, int canvas_y)
Definition gui_interface.h:92
gui_funcs::request_transport
bool(* request_transport)(struct unit *pcargo, struct tile *ptile)
Definition gui_interface.h:147
gui_funcs::set_rulesets
void(* set_rulesets)(int num_rulesets, char **rulesets)
Definition gui_interface.h:109
gui_funcs::version_message
void(* version_message)(const char *vertext)
Definition gui_interface.h:44
gui_funcs::real_output_window_append
void(* real_output_window_append)(const char *astring, const struct text_tag_list *tags, int conn_id)
Definition gui_interface.h:45
gui_funcs::gui_recv_cancel_meeting
void(* gui_recv_cancel_meeting)(struct Treaty *ptreaty, struct player *they, struct player *initiator)
Definition gui_interface.h:158
gui_funcs::gui_recv_accept_treaty
void(* gui_recv_accept_treaty)(struct Treaty *ptreaty, struct player *they)
Definition gui_interface.h:163
gui_funcs::create_sprite
struct sprite *(* create_sprite)(int width, int height, struct color *pcolor)
Definition gui_interface.h:53
gui_funcs::has_zoom_support
bool(* has_zoom_support)(void)
Definition gui_interface.h:68
gui_funcs::get_sprite_dimensions
void(* get_sprite_dimensions)(struct sprite *sprite, int *width, int *height)
Definition gui_interface.h:54
gui_funcs::set_unit_icons_more_arrow
void(* set_unit_icons_more_arrow)(bool onoff)
Definition gui_interface.h:123
gui_funcs::gui_update_font
void(* gui_update_font)(const char *font_name, const char *font_value)
Definition gui_interface.h:125
gui_funcs::canvas_create
struct canvas *(* canvas_create)(int width, int height)
Definition gui_interface.h:65
gui_funcs::ui_exit
void(* ui_exit)(void)
Definition gui_interface.h:39
gui_funcs::canvas_put_sprite_fogged
void(* canvas_put_sprite_fogged)(struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *psprite, bool fog, int fog_x, int fog_y)
Definition gui_interface.h:84
gui_funcs::free_sprite
void(* free_sprite)(struct sprite *s)
Definition gui_interface.h:60
gui_funcs::canvas_put_curved_line
void(* canvas_put_curved_line)(struct canvas *pcanvas, struct color *pcolor, enum line_type ltype, int start_x, int start_y, int dx, int dy)
Definition gui_interface.h:98
gui_funcs::options_extra_init
void(* options_extra_init)(void)
Definition gui_interface.h:110
gui_funcs::popdown_city_dialog
void(* popdown_city_dialog)(struct city *pcity)
Definition gui_interface.h:141
gui_funcs::gui_prepare_clause_updt
void(* gui_prepare_clause_updt)(struct Treaty *ptreaty, struct player *they)
Definition gui_interface.h:160
gui_funcs::canvas_put_line
void(* canvas_put_line)(struct canvas *pcanvas, struct color *pcolor, enum line_type ltype, int start_x, int start_y, int dx, int dy)
Definition gui_interface.h:95
gui_funcs::start_turn
void(* start_turn)(void)
Definition gui_interface.h:138
gui_funcs::canvas_free
void(* canvas_free)(struct canvas *store)
Definition gui_interface.h:66
gui_funcs::canvas_set_zoom
void(* canvas_set_zoom)(struct canvas *store, float zoom)
Definition gui_interface.h:67
gui_funcs::insert_client_build_info
void(* insert_client_build_info)(char *outbuf, size_t outlen)
Definition gui_interface.h:42
gui_funcs::crop_sprite
struct sprite *(* crop_sprite)(struct sprite *source, int x, int y, int width, int height, struct sprite *mask, int mask_offset_x, int mask_offset_y, float scale, bool smooth)
Definition gui_interface.h:55
gui_funcs::canvas_put_rectangle
void(* canvas_put_rectangle)(struct canvas *pcanvas, struct color *pcolor, int canvas_x, int canvas_y, int width, int height)
Definition gui_interface.h:88
gui_funcs::get_gui_type
enum gui_type(* get_gui_type)(void)
Definition gui_interface.h:41
gui_funcs::editgui_popdown_all
void(* editgui_popdown_all)(void)
Definition gui_interface.h:132
gui_funcs::canvas_put_sprite_full_scaled
void(* canvas_put_sprite_full_scaled)(struct canvas *pcanvas, int canvas_x, int canvas_y, int canvas_w, int canvas_h, struct sprite *psprite)
Definition gui_interface.h:80
gui_funcs::popdown_all_city_dialogs
void(* popdown_all_city_dialogs)(void)
Definition gui_interface.h:142
gui_funcs::canvas_mapview_init
void(* canvas_mapview_init)(struct canvas *store)
Definition gui_interface.h:69
gui_funcs::close_connection_dialog
void(* close_connection_dialog)(void)
Definition gui_interface.h:115
gui_funcs::sound_bell
void(* sound_bell)(void)
Definition gui_interface.h:117
gui_funcs::real_focus_units_changed
void(* real_focus_units_changed)(void)
Definition gui_interface.h:124
gui_funcs::real_set_client_page
void(* real_set_client_page)(enum client_pages page)
Definition gui_interface.h:119
gui_funcs::ui_init
void(* ui_init)(void)
Definition gui_interface.h:37
gui_funcs::real_conn_list_dialog_update
void(* real_conn_list_dialog_update)(void *unused)
Definition gui_interface.h:114
gui_funcs::color_alloc
struct color *(* color_alloc)(int r, int g, int b)
Definition gui_interface.h:62
gui_funcs::city_dialog_is_open
bool(* city_dialog_is_open)(struct city *pcity)
Definition gui_interface.h:145