Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/gui_interface.c Source File

Freeciv-3.1

Loading...
Searching...
No Matches
gui_interface.c
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 "client_main.h"
20#include "editgui_g.h"
21#include "options.h"
22
23#include "chatline_g.h"
24#include "citydlg_g.h"
25#include "connectdlg_g.h"
26#include "dialogs_g.h"
27#include "editgui_g.h"
28#include "graphics_g.h"
29#include "gui_main_g.h"
30#include "mapview_g.h"
31#include "themes_g.h"
32
33#include "gui_interface.h"
34
35 static struct gui_funcs funcs;
36
37/**********************************************************************/
41 struct gui_funcs *get_gui_funcs(void)
42{
43 return &funcs;
44}
45
46/**********************************************************************/
49 void ui_init(void)
50{
51 funcs.ui_init();
52}
53
54/**********************************************************************/
57 int ui_main(int argc, char *argv[])
58{
59 return funcs.ui_main(argc, argv);
60}
61
62/**********************************************************************/
65 void ui_exit(void)
66{
67 funcs.ui_exit();
68}
69
70/**********************************************************************/
73 void version_message(const char *vertext)
74{
75 funcs.version_message(vertext);
76}
77
78/**********************************************************************/
81 void real_output_window_append(const char *astring,
82 const struct text_tag_list *tags,
83 int conn_id)
84{
85 funcs.real_output_window_append(astring, tags, conn_id);
86}
87
88/**********************************************************************/
91 enum gui_type get_gui_type(void)
92{
93 return funcs.get_gui_type();
94}
95
96/**********************************************************************/
99 void insert_client_build_info(char *outbuf, size_t outlen)
100{
101 funcs.insert_client_build_info(outbuf, outlen);
102}
103
104/**********************************************************************/
107 bool is_view_supported(enum ts_type type)
108{
109 return funcs.is_view_supported(type);
110}
111
112/**********************************************************************/
115 void tileset_type_set(enum ts_type type)
116{
117 funcs.tileset_type_set(type);
118}
119
120/**********************************************************************/
123 struct sprite *load_gfxfile(const char *filename)
124{
125 return funcs.load_gfxfile(filename);
126}
127
128/**********************************************************************/
131 struct sprite *load_gfxnumber(int num)
132{
133 return funcs.load_gfxnumber(num);
134}
135
136/**********************************************************************/
139 struct sprite *create_sprite(int width, int height, struct color *pcolor)
140{
141 return funcs.create_sprite(width, height, pcolor);
142}
143
144/**********************************************************************/
147 void get_sprite_dimensions(struct sprite *sprite, int *width, int *height)
148{
149 funcs.get_sprite_dimensions(sprite, width, height);
150}
151
152/**********************************************************************/
155 struct sprite *crop_sprite(struct sprite *source,
156 int x, int y, int width, int height,
157 struct sprite *mask, int mask_offset_x, int mask_offset_y,
158 float scale, bool smooth)
159{
160 return funcs.crop_sprite(source, x, y, width, height, mask,
161 mask_offset_x, mask_offset_y, scale, smooth);
162}
163
164/**********************************************************************/
167 void free_sprite(struct sprite *s)
168{
169 funcs.free_sprite(s);
170}
171
172/**********************************************************************/
175 struct color *color_alloc(int r, int g, int b)
176{
177 return funcs.color_alloc(r, g, b);
178}
179
180/**********************************************************************/
183 void color_free(struct color *pcolor)
184{
185 return funcs.color_free(pcolor);
186}
187
188/**********************************************************************/
191 struct canvas *canvas_create(int width, int height)
192{
193 return funcs.canvas_create(width, height);
194}
195
196/**********************************************************************/
199 void canvas_free(struct canvas *store)
200{
201 funcs.canvas_free(store);
202}
203
204/**********************************************************************/
207 void canvas_set_zoom(struct canvas *store, float zoom)
208{
209 funcs.canvas_set_zoom(store, zoom);
210}
211
212/**********************************************************************/
215 bool has_zoom_support(void)
216{
217 return funcs.has_zoom_support();
218}
219
220/**********************************************************************/
223 void canvas_mapview_init(struct canvas *store)
224{
225 funcs.canvas_mapview_init(store);
226}
227
228/**********************************************************************/
231 void canvas_copy(struct canvas *dest, struct canvas *src,
232 int src_x, int src_y, int dest_x, int dest_y, int width,
233 int height)
234{
235 funcs.canvas_copy(dest, src, src_x, src_y, dest_x, dest_y, width, height);
236}
237
238/**********************************************************************/
241 void canvas_put_sprite(struct canvas *pcanvas,
242 int canvas_x, int canvas_y,
243 struct sprite *psprite,
244 int offset_x, int offset_y, int width, int height)
245{
246 funcs.canvas_put_sprite(pcanvas, canvas_x, canvas_y, psprite,
247 offset_x, offset_y, width, height);
248}
249
250/**********************************************************************/
253 void canvas_put_sprite_full(struct canvas *pcanvas,
254 int canvas_x, int canvas_y,
255 struct sprite *psprite)
256{
257 funcs.canvas_put_sprite_full(pcanvas, canvas_x, canvas_y, psprite);
258}
259
260/**********************************************************************/
263 void canvas_put_sprite_fogged(struct canvas *pcanvas,
264 int canvas_x, int canvas_y,
265 struct sprite *psprite,
266 bool fog, int fog_x, int fog_y)
267{
268 funcs.canvas_put_sprite_fogged(pcanvas, canvas_x, canvas_y,
269 psprite, fog, fog_x, fog_y);
270}
271
272/**********************************************************************/
275 void canvas_put_rectangle(struct canvas *pcanvas,
276 struct color *pcolor,
277 int canvas_x, int canvas_y, int width, int height)
278{
279 funcs.canvas_put_rectangle(pcanvas, pcolor, canvas_x, canvas_y,
280 width, height);
281}
282
283/**********************************************************************/
286 void canvas_fill_sprite_area(struct canvas *pcanvas,
287 struct sprite *psprite, struct color *pcolor,
288 int canvas_x, int canvas_y)
289{
290 funcs.canvas_fill_sprite_area(pcanvas, psprite, pcolor, canvas_x, canvas_y);
291}
292
293/**********************************************************************/
296 void canvas_put_line(struct canvas *pcanvas, struct color *pcolor,
297 enum line_type ltype, int start_x, int start_y,
298 int dx, int dy)
299{
300 funcs.canvas_put_line(pcanvas, pcolor, ltype, start_x, start_y, dx, dy);
301}
302
303/**********************************************************************/
306 void canvas_put_curved_line(struct canvas *pcanvas, struct color *pcolor,
307 enum line_type ltype, int start_x, int start_y,
308 int dx, int dy)
309{
310 funcs.canvas_put_curved_line(pcanvas, pcolor, ltype, start_x, start_y,
311 dx, dy);
312}
313
314/**********************************************************************/
317 void get_text_size(int *width, int *height,
318 enum client_font font, const char *text)
319{
320 funcs.get_text_size(width, height, font, text);
321}
322
323/**********************************************************************/
326 void canvas_put_text(struct canvas *pcanvas, int canvas_x, int canvas_y,
327 enum client_font font, struct color *pcolor,
328 const char *text)
329{
330 funcs.canvas_put_text(pcanvas, canvas_x, canvas_y, font, pcolor, text);
331}
332
333/**********************************************************************/
336 void map_canvas_size_refresh(void)
337{
338 funcs.map_canvas_size_refresh();
339}
340
341/**********************************************************************/
344 void set_rulesets(int num_rulesets, char **rulesets)
345{
346 funcs.set_rulesets(num_rulesets, rulesets);
347}
348
349/**********************************************************************/
352 void options_extra_init(void)
353{
354 funcs.options_extra_init();
355}
356
357/**********************************************************************/
360 void server_connect(void)
361{
362 funcs.server_connect();
363}
364
365/**********************************************************************/
368 void add_net_input(int sock)
369{
370 funcs.add_net_input(sock);
371}
372
373/**********************************************************************/
376 void remove_net_input(void)
377{
378 funcs.remove_net_input();
379}
380
381/**********************************************************************/
384 void real_conn_list_dialog_update(void *unused)
385{
386 funcs.real_conn_list_dialog_update(NULL);
387}
388
389/**********************************************************************/
392 void close_connection_dialog(void)
393{
394 funcs.close_connection_dialog();
395}
396
397/**********************************************************************/
400 void add_idle_callback(void (callback)(void *), void *data)
401{
402 funcs.add_idle_callback(callback, data);
403}
404
405/**********************************************************************/
408 void sound_bell(void)
409{
410 funcs.sound_bell();
411}
412
413/**********************************************************************/
416 void real_set_client_page(enum client_pages page)
417{
418 funcs.real_set_client_page(page);
419}
420
421/**********************************************************************/
424 enum client_pages get_current_client_page(void)
425{
426 return funcs.get_current_client_page();
427}
428
429/**********************************************************************/
432 void set_unit_icon(int idx, struct unit *punit)
433{
434 funcs.set_unit_icon(idx, punit);
435}
436
437/**********************************************************************/
440 void real_focus_units_changed(void)
441{
442 funcs.real_focus_units_changed();
443}
444
445/**********************************************************************/
448 void set_unit_icons_more_arrow(bool onoff)
449{
450 funcs.set_unit_icons_more_arrow(onoff);
451}
452
453/**********************************************************************/
456 void gui_update_font(const char *font_name, const char *font_value)
457{
458 funcs.gui_update_font(font_name, font_value);
459}
460
461/**********************************************************************/
464 void editgui_refresh(void)
465{
466 funcs.editgui_refresh();
467}
468
469/**********************************************************************/
472 void editgui_notify_object_created(int tag, int id)
473{
474 funcs.editgui_notify_object_created(tag, id);
475}
476
477/**********************************************************************/
480 void editgui_notify_object_changed(int objtype, int object_id, bool removal)
481{
482 funcs.editgui_notify_object_changed(objtype, object_id, removal);
483}
484
485/**********************************************************************/
488 void editgui_popup_properties(const struct tile_list *tiles, int objtype)
489{
490 funcs.editgui_popup_properties(tiles, objtype);
491}
492
493/**********************************************************************/
496 void editgui_tileset_changed(void)
497{
498 funcs.editgui_tileset_changed();
499}
500
501/**********************************************************************/
504 void editgui_popdown_all(void)
505{
506 funcs.editgui_popdown_all();
507}
508
509/**********************************************************************/
512 void popup_combat_info(int attacker_unit_id, int defender_unit_id,
513 int attacker_hp, int defender_hp,
514 bool make_att_veteran, bool make_def_veteran)
515{
516 funcs.popup_combat_info(attacker_unit_id, defender_unit_id,
517 attacker_hp, defender_hp, make_att_veteran,
518 make_def_veteran);
519}
520
521/**********************************************************************/
524 void update_timeout_label(void)
525{
526 funcs.update_timeout_label();
527}
528
529/**********************************************************************/
532 void start_turn(void)
533{
534 funcs.start_turn();
535}
536
537/**********************************************************************/
540 void real_city_dialog_popup(struct city *pcity)
541{
542 funcs.real_city_dialog_popup(pcity);
543}
544
545/**********************************************************************/
548 void real_city_dialog_refresh(struct city *pcity)
549{
550 funcs.real_city_dialog_refresh(pcity);
551}
552
553/**********************************************************************/
556 void popdown_city_dialog(struct city *pcity)
557{
558 funcs.popdown_city_dialog(pcity);
559}
560
561/**********************************************************************/
564 void popdown_all_city_dialogs(void)
565{
566 funcs.popdown_all_city_dialogs();
567}
568
569/**********************************************************************/
572 bool handmade_scenario_warning(void)
573{
574 return funcs.handmade_scenario_warning();
575}
576
577/**********************************************************************/
580 void refresh_unit_city_dialogs(struct unit *punit)
581{
582 funcs.refresh_unit_city_dialogs(punit);
583}
584
585/**********************************************************************/
588 bool city_dialog_is_open(struct city *pcity)
589{
590 return funcs.city_dialog_is_open(pcity);
591}
592
593/**********************************************************************/
596 bool request_transport(struct unit *pcargo, struct tile *ptile)
597{
598 return funcs.request_transport(pcargo, ptile);
599}
600
601/**********************************************************************/
604 void update_infra_dialog(void)
605{
606 funcs.update_infra_dialog();
607}
608
609/**********************************************************************/
612 void gui_load_theme(const char *directory, const char *theme_name)
613{
614 funcs.gui_load_theme(directory, theme_name);
615}
616
617/**********************************************************************/
620 void gui_clear_theme(void)
621{
622 funcs.gui_clear_theme();
623}
624
625/**********************************************************************/
628 char **get_gui_specific_themes_directories(int *count)
629{
630 return funcs.get_gui_specific_themes_directories(count);
631}
632
633/**********************************************************************/
636 char **get_usable_themes_in_directory(const char *directory, int *count)
637{
638 return funcs.get_usable_themes_in_directory(directory, count);
639}
canvas_fill_sprite_area
struct canvas int int struct sprite bool int int fog_y canvas_fill_sprite_area
Definition canvas_g.h:55
height
struct canvas int int struct sprite int int int int height
Definition canvas_g.h:44
pcolor
struct canvas int int struct sprite bool int int fog_y struct canvas struct sprite struct color * pcolor
Definition canvas_g.h:57
fog_x
struct canvas int int struct sprite bool int fog_x
Definition canvas_g.h:51
canvas_y
struct canvas int int canvas_y
Definition canvas_g.h:43
canvas_put_sprite_fogged
canvas_put_sprite_fogged
Definition canvas_g.h:48
canvas_x
struct canvas int canvas_x
Definition canvas_g.h:43
canvas_put_curved_line
struct canvas int int struct sprite bool int int fog_y struct canvas struct sprite struct color int int canvas_y canvas_put_curved_line
Definition canvas_g.h:63
canvas_put_sprite
canvas_put_sprite
Definition canvas_g.h:42
client_font
struct canvas int int struct sprite bool int int fog_y struct canvas struct sprite struct color int int canvas_y struct canvas struct color enum line_type ltype int start_x int start_y int dx int dy enum client_font
Definition canvas_g.h:69
width
struct canvas int int struct sprite int int int width
Definition canvas_g.h:44
pcanvas
struct canvas * pcanvas
Definition canvas_g.h:42
psprite
struct canvas int int struct sprite * psprite
Definition canvas_g.h:50
canvas_put_text
canvas_put_text
Definition canvas_g.h:77
offset_y
struct canvas int int struct sprite int int offset_y
Definition canvas_g.h:44
offset_x
struct canvas int int struct sprite int offset_x
Definition canvas_g.h:44
line_type
line_type
Definition canvas_g.h:25
fog
struct canvas int int struct sprite bool fog
Definition canvas_g.h:51
chatline_g.h
citydlg_g.h
client_main.h
connectdlg_g.h
dialogs_g.h
punit
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 * punit
Definition dialogs_g.h:73
editgui_g.h
objtype
int objtype
Definition editgui_g.h:28
editgui_notify_object_changed
editgui_notify_object_changed
Definition editgui_g.h:27
graphics_g.h
source
static GtkWidget * source
Definition gotodlg.c:58
type
GType type
Definition repodlgs.c:1312
update_timeout_label
void update_timeout_label(void)
Definition gui_interface.c:524
get_gui_funcs
struct gui_funcs * get_gui_funcs(void)
Definition gui_interface.c:41
get_sprite_dimensions
void get_sprite_dimensions(struct sprite *sprite, int *width, int *height)
Definition gui_interface.c:147
real_focus_units_changed
void real_focus_units_changed(void)
Definition gui_interface.c:440
set_unit_icons_more_arrow
void set_unit_icons_more_arrow(bool onoff)
Definition gui_interface.c:448
free_sprite
void free_sprite(struct sprite *s)
Definition gui_interface.c:167
editgui_popup_properties
void editgui_popup_properties(const struct tile_list *tiles, int objtype)
Definition gui_interface.c:488
set_unit_icon
void set_unit_icon(int idx, struct unit *punit)
Definition gui_interface.c:432
editgui_notify_object_created
void editgui_notify_object_created(int tag, int id)
Definition gui_interface.c:472
get_gui_specific_themes_directories
char ** get_gui_specific_themes_directories(int *count)
Definition gui_interface.c:628
gui_clear_theme
void gui_clear_theme(void)
Definition gui_interface.c:620
real_city_dialog_popup
void real_city_dialog_popup(struct city *pcity)
Definition gui_interface.c:540
set_rulesets
void set_rulesets(int num_rulesets, char **rulesets)
Definition gui_interface.c:344
version_message
void version_message(const char *vertext)
Definition gui_interface.c:73
get_current_client_page
enum client_pages get_current_client_page(void)
Definition gui_interface.c:424
ui_exit
void ui_exit(void)
Definition gui_interface.c:65
city_dialog_is_open
bool city_dialog_is_open(struct city *pcity)
Definition gui_interface.c:588
get_gui_type
enum gui_type get_gui_type(void)
Definition gui_interface.c:91
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.c:275
ui_init
void ui_init(void)
Definition gui_interface.c:49
real_city_dialog_refresh
void real_city_dialog_refresh(struct city *pcity)
Definition gui_interface.c:548
gui_load_theme
void gui_load_theme(const char *directory, const char *theme_name)
Definition gui_interface.c:612
server_connect
void server_connect(void)
Definition gui_interface.c:360
editgui_popdown_all
void editgui_popdown_all(void)
Definition gui_interface.c:504
load_gfxnumber
struct sprite * load_gfxnumber(int num)
Definition gui_interface.c:131
add_idle_callback
void add_idle_callback(void(callback)(void *), void *data)
Definition gui_interface.c:400
canvas_set_zoom
void canvas_set_zoom(struct canvas *store, float zoom)
Definition gui_interface.c:207
canvas_mapview_init
void canvas_mapview_init(struct canvas *store)
Definition gui_interface.c:223
options_extra_init
void options_extra_init(void)
Definition gui_interface.c:352
popdown_all_city_dialogs
void popdown_all_city_dialogs(void)
Definition gui_interface.c:564
refresh_unit_city_dialogs
void refresh_unit_city_dialogs(struct unit *punit)
Definition gui_interface.c:580
start_turn
void start_turn(void)
Definition gui_interface.c:532
real_conn_list_dialog_update
void real_conn_list_dialog_update(void *unused)
Definition gui_interface.c:384
real_set_client_page
void real_set_client_page(enum client_pages page)
Definition gui_interface.c:416
get_text_size
void get_text_size(int *width, int *height, enum client_font font, const char *text)
Definition gui_interface.c:317
insert_client_build_info
void insert_client_build_info(char *outbuf, size_t outlen)
Definition gui_interface.c:99
canvas_free
void canvas_free(struct canvas *store)
Definition gui_interface.c:199
request_transport
bool request_transport(struct unit *pcargo, struct tile *ptile)
Definition gui_interface.c:596
load_gfxfile
struct sprite * load_gfxfile(const char *filename)
Definition gui_interface.c:123
close_connection_dialog
void close_connection_dialog(void)
Definition gui_interface.c:392
remove_net_input
void remove_net_input(void)
Definition gui_interface.c:376
handmade_scenario_warning
bool handmade_scenario_warning(void)
Definition gui_interface.c:572
sound_bell
void sound_bell(void)
Definition gui_interface.c:408
is_view_supported
bool is_view_supported(enum ts_type type)
Definition gui_interface.c:107
update_infra_dialog
void update_infra_dialog(void)
Definition gui_interface.c:604
map_canvas_size_refresh
void map_canvas_size_refresh(void)
Definition gui_interface.c:336
real_output_window_append
void real_output_window_append(const char *astring, const struct text_tag_list *tags, int conn_id)
Definition gui_interface.c:81
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.c:512
canvas_put_sprite_full
void canvas_put_sprite_full(struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *psprite)
Definition gui_interface.c:253
tileset_type_set
void tileset_type_set(enum ts_type type)
Definition gui_interface.c:115
has_zoom_support
bool has_zoom_support(void)
Definition gui_interface.c:215
color_free
void color_free(struct color *pcolor)
Definition gui_interface.c:183
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.c:296
color_alloc
struct color * color_alloc(int r, int g, int b)
Definition gui_interface.c:175
editgui_refresh
void editgui_refresh(void)
Definition gui_interface.c:464
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.c:231
add_net_input
void add_net_input(int sock)
Definition gui_interface.c:368
funcs
static struct gui_funcs funcs
Definition gui_interface.c:35
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.c:155
canvas_create
struct canvas * canvas_create(int width, int height)
Definition gui_interface.c:191
editgui_tileset_changed
void editgui_tileset_changed(void)
Definition gui_interface.c:496
popdown_city_dialog
void popdown_city_dialog(struct city *pcity)
Definition gui_interface.c:556
ui_main
int ui_main(int argc, char *argv[])
Definition gui_interface.c:57
gui_interface.h
gui_main_g.h
font_name
const char * font_name
Definition gui_main_g.h:43
gui_update_font
gui_update_font
Definition gui_main_g.h:43
mapview_g.h
options.h
create_sprite
create_sprite
Definition sprite_g.h:30
astring
Definition astring.h:36
callback
Definition gui_main.c:2186
canvas
Definition canvas.h:21
canvas::zoom
float zoom
Definition canvas.h:24
city
Definition city.h:309
color
Definition colors.h:20
color::g
int g
Definition colors.h:21
color::r
int r
Definition colors.h:21
color::b
int b
Definition colors.h:21
gui_funcs
Definition gui_interface.h:33
gui_funcs::server_connect
void(* server_connect)(void)
Definition gui_interface.h:104
gui_funcs::editgui_tileset_changed
void(* editgui_tileset_changed)(void)
Definition gui_interface.h:124
gui_funcs::load_gfxnumber
struct sprite *(* load_gfxnumber)(int num)
Definition gui_interface.h:49
gui_funcs::ui_main
int(* ui_main)(int argc, char *argv[])
Definition gui_interface.h:35
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:96
gui_funcs::get_gui_specific_themes_directories
char **(* get_gui_specific_themes_directories)(int *count)
Definition gui_interface.h:146
gui_funcs::gui_load_theme
void(* gui_load_theme)(const char *directory, const char *theme_name)
Definition gui_interface.h:144
gui_funcs::update_timeout_label
void(* update_timeout_label)(void)
Definition gui_interface.h:130
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:70
gui_funcs::editgui_refresh
void(* editgui_refresh)(void)
Definition gui_interface.h:120
gui_funcs::set_unit_icon
void(* set_unit_icon)(int idx, struct unit *punit)
Definition gui_interface.h:115
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:67
gui_funcs::add_idle_callback
void(* add_idle_callback)(void(callback)(void *), void *data)
Definition gui_interface.h:109
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:74
gui_funcs::add_net_input
void(* add_net_input)(int sock)
Definition gui_interface.h:105
gui_funcs::tileset_type_set
void(* tileset_type_set)(enum ts_type type)
Definition gui_interface.h:47
gui_funcs::editgui_notify_object_created
void(* editgui_notify_object_created)(int tag, int id)
Definition gui_interface.h:121
gui_funcs::get_current_client_page
enum client_pages(* get_current_client_page)(void)
Definition gui_interface.h:113
gui_funcs::real_city_dialog_refresh
void(* real_city_dialog_refresh)(struct city *pcity)
Definition gui_interface.h:133
gui_funcs::gui_clear_theme
void(* gui_clear_theme)(void)
Definition gui_interface.h:145
gui_funcs::load_gfxfile
struct sprite *(* load_gfxfile)(const char *filename)
Definition gui_interface.h:48
gui_funcs::remove_net_input
void(* remove_net_input)(void)
Definition gui_interface.h:106
gui_funcs::real_city_dialog_popup
void(* real_city_dialog_popup)(struct city *pcity)
Definition gui_interface.h:132
gui_funcs::color_free
void(* color_free)(struct color *pcolor)
Definition gui_interface.h:60
gui_funcs::refresh_unit_city_dialogs
void(* refresh_unit_city_dialogs)(struct unit *punit)
Definition gui_interface.h:137
gui_funcs::is_view_supported
bool(* is_view_supported)(enum ts_type type)
Definition gui_interface.h:46
gui_funcs::get_text_size
void(* get_text_size)(int *width, int *height, enum client_font font, const char *text)
Definition gui_interface.h:94
gui_funcs::editgui_popup_properties
void(* editgui_popup_properties)(const struct tile_list *tiles, int objtype)
Definition gui_interface.h:123
gui_funcs::update_infra_dialog
void(* update_infra_dialog)(void)
Definition gui_interface.h:142
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:127
gui_funcs::map_canvas_size_refresh
void(* map_canvas_size_refresh)(void)
Definition gui_interface.h:100
gui_funcs::editgui_notify_object_changed
void(* editgui_notify_object_changed)(int objtype, int object_id, bool removal)
Definition gui_interface.h:122
gui_funcs::handmade_scenario_warning
bool(* handmade_scenario_warning)(void)
Definition gui_interface.h:136
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:85
gui_funcs::request_transport
bool(* request_transport)(struct unit *pcargo, struct tile *ptile)
Definition gui_interface.h:140
gui_funcs::set_rulesets
void(* set_rulesets)(int num_rulesets, char **rulesets)
Definition gui_interface.h:102
gui_funcs::version_message
void(* version_message)(const char *vertext)
Definition gui_interface.h:41
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:42
gui_funcs::create_sprite
struct sprite *(* create_sprite)(int width, int height, struct color *pcolor)
Definition gui_interface.h:50
gui_funcs::has_zoom_support
bool(* has_zoom_support)(void)
Definition gui_interface.h:65
gui_funcs::get_sprite_dimensions
void(* get_sprite_dimensions)(struct sprite *sprite, int *width, int *height)
Definition gui_interface.h:51
gui_funcs::set_unit_icons_more_arrow
void(* set_unit_icons_more_arrow)(bool onoff)
Definition gui_interface.h:116
gui_funcs::gui_update_font
void(* gui_update_font)(const char *font_name, const char *font_value)
Definition gui_interface.h:118
gui_funcs::canvas_create
struct canvas *(* canvas_create)(int width, int height)
Definition gui_interface.h:62
gui_funcs::ui_exit
void(* ui_exit)(void)
Definition gui_interface.h:36
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:77
gui_funcs::free_sprite
void(* free_sprite)(struct sprite *s)
Definition gui_interface.h:57
gui_funcs::get_usable_themes_in_directory
char **(* get_usable_themes_in_directory)(const char *directory, int *count)
Definition gui_interface.h:147
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:91
gui_funcs::options_extra_init
void(* options_extra_init)(void)
Definition gui_interface.h:103
gui_funcs::popdown_city_dialog
void(* popdown_city_dialog)(struct city *pcity)
Definition gui_interface.h:134
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:88
gui_funcs::start_turn
void(* start_turn)(void)
Definition gui_interface.h:131
gui_funcs::canvas_free
void(* canvas_free)(struct canvas *store)
Definition gui_interface.h:63
gui_funcs::canvas_set_zoom
void(* canvas_set_zoom)(struct canvas *store, float zoom)
Definition gui_interface.h:64
gui_funcs::insert_client_build_info
void(* insert_client_build_info)(char *outbuf, size_t outlen)
Definition gui_interface.h:39
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:52
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:81
gui_funcs::get_gui_type
enum gui_type(* get_gui_type)(void)
Definition gui_interface.h:38
gui_funcs::editgui_popdown_all
void(* editgui_popdown_all)(void)
Definition gui_interface.h:125
gui_funcs::popdown_all_city_dialogs
void(* popdown_all_city_dialogs)(void)
Definition gui_interface.h:135
gui_funcs::canvas_mapview_init
void(* canvas_mapview_init)(struct canvas *store)
Definition gui_interface.h:66
gui_funcs::close_connection_dialog
void(* close_connection_dialog)(void)
Definition gui_interface.h:108
gui_funcs::sound_bell
void(* sound_bell)(void)
Definition gui_interface.h:110
gui_funcs::real_focus_units_changed
void(* real_focus_units_changed)(void)
Definition gui_interface.h:117
gui_funcs::real_set_client_page
void(* real_set_client_page)(enum client_pages page)
Definition gui_interface.h:112
gui_funcs::ui_init
void(* ui_init)(void)
Definition gui_interface.h:34
gui_funcs::real_conn_list_dialog_update
void(* real_conn_list_dialog_update)(void *unused)
Definition gui_interface.h:107
gui_funcs::color_alloc
struct color *(* color_alloc)(int r, int g, int b)
Definition gui_interface.h:59
gui_funcs::city_dialog_is_open
bool(* city_dialog_is_open)(struct city *pcity)
Definition gui_interface.h:138
sprite
Definition sprite.h:22
tile
Definition tile.h:49
unit
Definition unit.h:138
themes_g.h
get_usable_themes_in_directory
get_usable_themes_in_directory
Definition themes_g.h:22
directory
const char * directory
Definition themes_g.h:23