Freeciv-3.2: /fast/freeciv/nightly/S3_2/client/gui_interface.c Source File

Freeciv-3.2

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 "diplodlg_g.h"
28#include "editgui_g.h"
29#include "graphics_g.h"
30#include "gui_main_g.h"
31#include "mapview_g.h"
32#include "themes_g.h"
33
34#include "gui_interface.h"
35
36 static struct gui_funcs funcs;
37
38/**********************************************************************/
42 struct gui_funcs *get_gui_funcs(void)
43{
44 return &funcs;
45}
46
47/**********************************************************************/
50 void ui_init(void)
51{
52 funcs.ui_init();
53}
54
55/**********************************************************************/
58 int ui_main(int argc, char *argv[])
59{
60 return funcs.ui_main(argc, argv);
61}
62
63/**********************************************************************/
66 void ui_exit(void)
67{
68 funcs.ui_exit();
69}
70
71/**********************************************************************/
74 void version_message(const char *vertext)
75{
76 funcs.version_message(vertext);
77}
78
79/**********************************************************************/
82 void real_output_window_append(const char *astring,
83 const struct text_tag_list *tags,
84 int conn_id)
85{
86 funcs.real_output_window_append(astring, tags, conn_id);
87}
88
89/**********************************************************************/
92 enum gui_type get_gui_type(void)
93{
94 return funcs.get_gui_type();
95}
96
97/**********************************************************************/
100 void insert_client_build_info(char *outbuf, size_t outlen)
101{
102 funcs.insert_client_build_info(outbuf, outlen);
103}
104
105/**********************************************************************/
108 bool is_view_supported(enum ts_type type)
109{
110 return funcs.is_view_supported(type);
111}
112
113/**********************************************************************/
116 void tileset_type_set(enum ts_type type)
117{
118 funcs.tileset_type_set(type);
119}
120
121/**********************************************************************/
124 struct sprite *load_gfxfile(const char *filename, bool svgflag)
125{
126 return funcs.load_gfxfile(filename, svgflag);
127}
128
129/**********************************************************************/
132 struct sprite *load_gfxnumber(int num)
133{
134 return funcs.load_gfxnumber(num);
135}
136
137/**********************************************************************/
140 struct sprite *create_sprite(int width, int height, struct color *pcolor)
141{
142 return funcs.create_sprite(width, height, pcolor);
143}
144
145/**********************************************************************/
148 void get_sprite_dimensions(struct sprite *sprite, int *width, int *height)
149{
150 funcs.get_sprite_dimensions(sprite, width, height);
151}
152
153/**********************************************************************/
156 struct sprite *crop_sprite(struct sprite *source,
157 int x, int y, int width, int height,
158 struct sprite *mask, int mask_offset_x, int mask_offset_y,
159 float scale, bool smooth)
160{
161 return funcs.crop_sprite(source, x, y, width, height, mask,
162 mask_offset_x, mask_offset_y, scale, smooth);
163}
164
165/**********************************************************************/
168 void free_sprite(struct sprite *s)
169{
170 funcs.free_sprite(s);
171}
172
173/**********************************************************************/
176 struct color *color_alloc(int r, int g, int b)
177{
178 return funcs.color_alloc(r, g, b);
179}
180
181/**********************************************************************/
184 void color_free(struct color *pcolor)
185{
186 return funcs.color_free(pcolor);
187}
188
189/**********************************************************************/
192 struct canvas *canvas_create(int width, int height)
193{
194 return funcs.canvas_create(width, height);
195}
196
197/**********************************************************************/
200 void canvas_free(struct canvas *store)
201{
202 funcs.canvas_free(store);
203}
204
205/**********************************************************************/
208 void canvas_set_zoom(struct canvas *store, float zoom)
209{
210 funcs.canvas_set_zoom(store, zoom);
211}
212
213/**********************************************************************/
216 bool has_zoom_support(void)
217{
218 return funcs.has_zoom_support();
219}
220
221/**********************************************************************/
224 void canvas_mapview_init(struct canvas *store)
225{
226 funcs.canvas_mapview_init(store);
227}
228
229/**********************************************************************/
232 void canvas_copy(struct canvas *dest, struct canvas *src,
233 int src_x, int src_y, int dest_x, int dest_y, int width,
234 int height)
235{
236 funcs.canvas_copy(dest, src, src_x, src_y, dest_x, dest_y, width, height);
237}
238
239/**********************************************************************/
242 void canvas_put_sprite(struct canvas *pcanvas,
243 int canvas_x, int canvas_y,
244 struct sprite *psprite,
245 int offset_x, int offset_y, int width, int height)
246{
247 funcs.canvas_put_sprite(pcanvas, canvas_x, canvas_y, psprite,
248 offset_x, offset_y, width, height);
249}
250
251/**********************************************************************/
254 void canvas_put_sprite_full(struct canvas *pcanvas,
255 int canvas_x, int canvas_y,
256 struct sprite *psprite)
257{
258 funcs.canvas_put_sprite_full(pcanvas, canvas_x, canvas_y, psprite);
259}
260
261/**********************************************************************/
264 void canvas_put_sprite_full_scaled(struct canvas *pcanvas,
265 int canvas_x, int canvas_y,
266 int canvas_w, int canvas_h,
267 struct sprite *psprite)
268{
269 funcs.canvas_put_sprite_full_scaled(pcanvas, canvas_x, canvas_y,
270 canvas_w, canvas_h, psprite);
271}
272
273/**********************************************************************/
276 void canvas_put_sprite_fogged(struct canvas *pcanvas,
277 int canvas_x, int canvas_y,
278 struct sprite *psprite,
279 bool fog, int fog_x, int fog_y)
280{
281 funcs.canvas_put_sprite_fogged(pcanvas, canvas_x, canvas_y,
282 psprite, fog, fog_x, fog_y);
283}
284
285/**********************************************************************/
288 void canvas_put_rectangle(struct canvas *pcanvas,
289 struct color *pcolor,
290 int canvas_x, int canvas_y, int width, int height)
291{
292 funcs.canvas_put_rectangle(pcanvas, pcolor, canvas_x, canvas_y,
293 width, height);
294}
295
296/**********************************************************************/
299 void canvas_fill_sprite_area(struct canvas *pcanvas,
300 struct sprite *psprite, struct color *pcolor,
301 int canvas_x, int canvas_y)
302{
303 funcs.canvas_fill_sprite_area(pcanvas, psprite, pcolor, canvas_x, canvas_y);
304}
305
306/**********************************************************************/
309 void canvas_put_line(struct canvas *pcanvas, struct color *pcolor,
310 enum line_type ltype, int start_x, int start_y,
311 int dx, int dy)
312{
313 funcs.canvas_put_line(pcanvas, pcolor, ltype, start_x, start_y, dx, dy);
314}
315
316/**********************************************************************/
319 void canvas_put_curved_line(struct canvas *pcanvas, struct color *pcolor,
320 enum line_type ltype, int start_x, int start_y,
321 int dx, int dy)
322{
323 funcs.canvas_put_curved_line(pcanvas, pcolor, ltype, start_x, start_y,
324 dx, dy);
325}
326
327/**********************************************************************/
330 void get_text_size(int *width, int *height,
331 enum client_font font, const char *text)
332{
333 funcs.get_text_size(width, height, font, text);
334}
335
336/**********************************************************************/
339 void canvas_put_text(struct canvas *pcanvas, int canvas_x, int canvas_y,
340 enum client_font font, struct color *pcolor,
341 const char *text)
342{
343 funcs.canvas_put_text(pcanvas, canvas_x, canvas_y, font, pcolor, text);
344}
345
346/**********************************************************************/
349 void map_canvas_size_refresh(void)
350{
351 funcs.map_canvas_size_refresh();
352}
353
354/**********************************************************************/
357 void set_rulesets(int num_rulesets, char **rulesets)
358{
359 funcs.set_rulesets(num_rulesets, rulesets);
360}
361
362/**********************************************************************/
365 void options_extra_init(void)
366{
367 funcs.options_extra_init();
368}
369
370/**********************************************************************/
373 void server_connect(void)
374{
375 funcs.server_connect();
376}
377
378/**********************************************************************/
381 void add_net_input(int sock)
382{
383 funcs.add_net_input(sock);
384}
385
386/**********************************************************************/
389 void remove_net_input(void)
390{
391 funcs.remove_net_input();
392}
393
394/**********************************************************************/
397 void real_conn_list_dialog_update(void *unused)
398{
399 funcs.real_conn_list_dialog_update(NULL);
400}
401
402/**********************************************************************/
405 void close_connection_dialog(void)
406{
407 funcs.close_connection_dialog();
408}
409
410/**********************************************************************/
413 void add_idle_callback(void (callback)(void *), void *data)
414{
415 funcs.add_idle_callback(callback, data);
416}
417
418/**********************************************************************/
421 void sound_bell(void)
422{
423 funcs.sound_bell();
424}
425
426/**********************************************************************/
429 void real_set_client_page(enum client_pages page)
430{
431 funcs.real_set_client_page(page);
432}
433
434/**********************************************************************/
437 enum client_pages get_current_client_page(void)
438{
439 return funcs.get_current_client_page();
440}
441
442/**********************************************************************/
445 void set_unit_icon(int idx, struct unit *punit)
446{
447 funcs.set_unit_icon(idx, punit);
448}
449
450/**********************************************************************/
453 void real_focus_units_changed(void)
454{
455 funcs.real_focus_units_changed();
456}
457
458/**********************************************************************/
461 void set_unit_icons_more_arrow(bool onoff)
462{
463 funcs.set_unit_icons_more_arrow(onoff);
464}
465
466/**********************************************************************/
469 void gui_update_font(const char *font_name, const char *font_value)
470{
471 funcs.gui_update_font(font_name, font_value);
472}
473
474/**********************************************************************/
477 void editgui_refresh(void)
478{
479 funcs.editgui_refresh();
480}
481
482/**********************************************************************/
485 void editgui_notify_object_created(int tag, int id)
486{
487 funcs.editgui_notify_object_created(tag, id);
488}
489
490/**********************************************************************/
493 void editgui_notify_object_changed(int objtype, int object_id, bool removal)
494{
495 funcs.editgui_notify_object_changed(objtype, object_id, removal);
496}
497
498/**********************************************************************/
501 void editgui_popup_properties(const struct tile_list *tiles, int objtype)
502{
503 funcs.editgui_popup_properties(tiles, objtype);
504}
505
506/**********************************************************************/
509 void editgui_tileset_changed(void)
510{
511 funcs.editgui_tileset_changed();
512}
513
514/**********************************************************************/
517 void editgui_popdown_all(void)
518{
519 funcs.editgui_popdown_all();
520}
521
522/**********************************************************************/
525 void popup_combat_info(int attacker_unit_id, int defender_unit_id,
526 int attacker_hp, int defender_hp,
527 bool make_att_veteran, bool make_def_veteran)
528{
529 funcs.popup_combat_info(attacker_unit_id, defender_unit_id,
530 attacker_hp, defender_hp, make_att_veteran,
531 make_def_veteran);
532}
533
534/**********************************************************************/
537 void update_timeout_label(void)
538{
539 funcs.update_timeout_label();
540}
541
542/**********************************************************************/
545 void start_turn(void)
546{
547 funcs.start_turn();
548}
549
550/**********************************************************************/
553 void real_city_dialog_popup(struct city *pcity)
554{
555 funcs.real_city_dialog_popup(pcity);
556}
557
558/**********************************************************************/
561 void real_city_dialog_refresh(struct city *pcity)
562{
563 funcs.real_city_dialog_refresh(pcity);
564}
565
566/**********************************************************************/
569 void popdown_city_dialog(struct city *pcity)
570{
571 funcs.popdown_city_dialog(pcity);
572}
573
574/**********************************************************************/
577 void popdown_all_city_dialogs(void)
578{
579 funcs.popdown_all_city_dialogs();
580}
581
582/**********************************************************************/
585 bool handmade_scenario_warning(void)
586{
587 return funcs.handmade_scenario_warning();
588}
589
590/**********************************************************************/
593 void refresh_unit_city_dialogs(struct unit *punit)
594{
595 funcs.refresh_unit_city_dialogs(punit);
596}
597
598/**********************************************************************/
601 bool city_dialog_is_open(struct city *pcity)
602{
603 return funcs.city_dialog_is_open(pcity);
604}
605
606/**********************************************************************/
609 bool request_transport(struct unit *pcargo, struct tile *ptile)
610{
611 return funcs.request_transport(pcargo, ptile);
612}
613
614/**********************************************************************/
617 void update_infra_dialog(void)
618{
619 funcs.update_infra_dialog();
620}
621
622/**********************************************************************/
625 void gui_load_theme(const char *directory, const char *theme_name)
626{
627 funcs.gui_load_theme(directory, theme_name);
628}
629
630/**********************************************************************/
633 void gui_clear_theme(void)
634{
635 funcs.gui_clear_theme();
636}
637
638/**********************************************************************/
641 char **get_gui_specific_themes_directories(int *count)
642{
643 return funcs.get_gui_specific_themes_directories(count);
644}
645
646/**********************************************************************/
649 char **get_useable_themes_in_directory(const char *directory, int *count)
650{
651 return funcs.get_useable_themes_in_directory(directory, count);
652}
653
654/**********************************************************************/
657 void gui_init_meeting(struct Treaty *ptreaty, struct player *they,
658 struct player *initiator)
659{
660 funcs.gui_init_meeting(ptreaty, they, initiator);
661}
662
663/**********************************************************************/
666 void gui_recv_cancel_meeting(struct Treaty *ptreaty, struct player *they,
667 struct player *initiator)
668{
669 funcs.gui_recv_cancel_meeting(ptreaty, they, initiator);
670}
671
672/**********************************************************************/
675 void gui_prepare_clause_updt(struct Treaty *ptreaty, struct player *they)
676{
677 funcs.gui_prepare_clause_updt(ptreaty, they);
678}
679
680/**********************************************************************/
683 void gui_recv_create_clause(struct Treaty *ptreaty, struct player *they)
684{
685 funcs.gui_recv_create_clause(ptreaty, they);
686}
687
688/**********************************************************************/
691 void gui_recv_remove_clause(struct Treaty *ptreaty, struct player *they)
692{
693 funcs.gui_recv_remove_clause(ptreaty, they);
694}
695
696/**********************************************************************/
699 void gui_recv_accept_treaty(struct Treaty *ptreaty, struct player *they)
700{
701 funcs.gui_recv_accept_treaty(ptreaty, they);
702}
703
704/**********************************************************************/
707 void request_action_confirmation(const char *expl,
708 struct act_confirmation_data *data)
709{
710 funcs.request_action_confirmation(expl, data);
711}
height
struct canvas int int struct sprite int int int int height
Definition canvas_g.h:44
pcolor
struct canvas int int int int struct sprite *sprite struct canvas struct color * pcolor
Definition canvas_g.h:56
canvas_put_rectangle
struct canvas int int int int struct sprite *sprite canvas_put_rectangle
Definition canvas_g.h:55
canvas_y
struct canvas int int canvas_y
Definition canvas_g.h:43
canvas_x
struct canvas int canvas_x
Definition canvas_g.h:43
canvas_put_line
struct canvas int int int int struct sprite *sprite struct canvas struct color int int int int height canvas_put_line
Definition canvas_g.h:62
canvas_put_sprite
canvas_put_sprite
Definition canvas_g.h:42
canvas_w
struct canvas int int int canvas_w
Definition canvas_g.h:49
canvas_h
struct canvas int int int int canvas_h
Definition canvas_g.h:49
pcanvas
struct canvas * pcanvas
Definition canvas_g.h:42
canvas_put_sprite_full_scaled
canvas_put_sprite_full_scaled
Definition canvas_g.h:48
canvas_put_text
canvas_put_text
Definition canvas_g.h:80
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
width
struct canvas int int struct sprite int int int width
Definition canvas_g.h:44
line_type
line_type
Definition canvas_g.h:25
chatline_g.h
citydlg_g.h
client_main.h
incite_cost
char * incite_cost
Definition comments.c:74
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:74
diplodlg_g.h
gui_recv_create_clause
struct Treaty struct player struct player *initiator gui_recv_create_clause
Definition diplodlg_g.h:32
ptreaty
struct Treaty * ptreaty
Definition diplodlg_g.h:28
gui_recv_accept_treaty
struct Treaty struct player struct player *initiator struct Treaty struct player *they gui_recv_accept_treaty
Definition diplodlg_g.h:36
they
struct Treaty struct player * they
Definition diplodlg_g.h:28
gui_recv_cancel_meeting
gui_recv_cancel_meeting
Definition diplodlg_g.h:27
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:1313
update_timeout_label
void update_timeout_label(void)
Definition gui_interface.c:537
get_gui_funcs
struct gui_funcs * get_gui_funcs(void)
Definition gui_interface.c:42
real_focus_units_changed
void real_focus_units_changed(void)
Definition gui_interface.c:453
set_unit_icons_more_arrow
void set_unit_icons_more_arrow(bool onoff)
Definition gui_interface.c:461
free_sprite
void free_sprite(struct sprite *s)
Definition gui_interface.c:168
editgui_popup_properties
void editgui_popup_properties(const struct tile_list *tiles, int objtype)
Definition gui_interface.c:501
set_unit_icon
void set_unit_icon(int idx, struct unit *punit)
Definition gui_interface.c:445
editgui_notify_object_created
void editgui_notify_object_created(int tag, int id)
Definition gui_interface.c:485
create_sprite
struct sprite * create_sprite(int width, int height, struct color *pcolor)
Definition gui_interface.c:140
get_gui_specific_themes_directories
char ** get_gui_specific_themes_directories(int *count)
Definition gui_interface.c:641
gui_clear_theme
void gui_clear_theme(void)
Definition gui_interface.c:633
real_city_dialog_popup
void real_city_dialog_popup(struct city *pcity)
Definition gui_interface.c:553
set_rulesets
void set_rulesets(int num_rulesets, char **rulesets)
Definition gui_interface.c:357
version_message
void version_message(const char *vertext)
Definition gui_interface.c:74
get_current_client_page
enum client_pages get_current_client_page(void)
Definition gui_interface.c:437
ui_exit
void ui_exit(void)
Definition gui_interface.c:66
city_dialog_is_open
bool city_dialog_is_open(struct city *pcity)
Definition gui_interface.c:601
get_gui_type
enum gui_type get_gui_type(void)
Definition gui_interface.c:92
ui_init
void ui_init(void)
Definition gui_interface.c:50
real_city_dialog_refresh
void real_city_dialog_refresh(struct city *pcity)
Definition gui_interface.c:561
gui_init_meeting
void gui_init_meeting(struct Treaty *ptreaty, struct player *they, struct player *initiator)
Definition gui_interface.c:657
gui_load_theme
void gui_load_theme(const char *directory, const char *theme_name)
Definition gui_interface.c:625
server_connect
void server_connect(void)
Definition gui_interface.c:373
editgui_popdown_all
void editgui_popdown_all(void)
Definition gui_interface.c:517
load_gfxnumber
struct sprite * load_gfxnumber(int num)
Definition gui_interface.c:132
add_idle_callback
void add_idle_callback(void(callback)(void *), void *data)
Definition gui_interface.c:413
canvas_set_zoom
void canvas_set_zoom(struct canvas *store, float zoom)
Definition gui_interface.c:208
canvas_mapview_init
void canvas_mapview_init(struct canvas *store)
Definition gui_interface.c:224
options_extra_init
void options_extra_init(void)
Definition gui_interface.c:365
popdown_all_city_dialogs
void popdown_all_city_dialogs(void)
Definition gui_interface.c:577
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.c:299
refresh_unit_city_dialogs
void refresh_unit_city_dialogs(struct unit *punit)
Definition gui_interface.c:593
start_turn
void start_turn(void)
Definition gui_interface.c:545
real_conn_list_dialog_update
void real_conn_list_dialog_update(void *unused)
Definition gui_interface.c:397
real_set_client_page
void real_set_client_page(enum client_pages page)
Definition gui_interface.c:429
get_text_size
void get_text_size(int *width, int *height, enum client_font font, const char *text)
Definition gui_interface.c:330
gui_recv_remove_clause
void gui_recv_remove_clause(struct Treaty *ptreaty, struct player *they)
Definition gui_interface.c:691
insert_client_build_info
void insert_client_build_info(char *outbuf, size_t outlen)
Definition gui_interface.c:100
canvas_free
void canvas_free(struct canvas *store)
Definition gui_interface.c:200
request_transport
bool request_transport(struct unit *pcargo, struct tile *ptile)
Definition gui_interface.c:609
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.c:319
close_connection_dialog
void close_connection_dialog(void)
Definition gui_interface.c:405
remove_net_input
void remove_net_input(void)
Definition gui_interface.c:389
handmade_scenario_warning
bool handmade_scenario_warning(void)
Definition gui_interface.c:585
load_gfxfile
struct sprite * load_gfxfile(const char *filename, bool svgflag)
Definition gui_interface.c:124
sound_bell
void sound_bell(void)
Definition gui_interface.c:421
is_view_supported
bool is_view_supported(enum ts_type type)
Definition gui_interface.c:108
update_infra_dialog
void update_infra_dialog(void)
Definition gui_interface.c:617
map_canvas_size_refresh
void map_canvas_size_refresh(void)
Definition gui_interface.c:349
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:82
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:525
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:254
tileset_type_set
void tileset_type_set(enum ts_type type)
Definition gui_interface.c:116
has_zoom_support
bool has_zoom_support(void)
Definition gui_interface.c:216
color_free
void color_free(struct color *pcolor)
Definition gui_interface.c:184
color_alloc
struct color * color_alloc(int r, int g, int b)
Definition gui_interface.c:176
editgui_refresh
void editgui_refresh(void)
Definition gui_interface.c:477
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:232
add_net_input
void add_net_input(int sock)
Definition gui_interface.c:381
funcs
static struct gui_funcs funcs
Definition gui_interface.c:36
gui_prepare_clause_updt
void gui_prepare_clause_updt(struct Treaty *ptreaty, struct player *they)
Definition gui_interface.c:675
canvas_create
struct canvas * canvas_create(int width, int height)
Definition gui_interface.c:192
request_action_confirmation
void request_action_confirmation(const char *expl, struct act_confirmation_data *data)
Definition gui_interface.c:707
editgui_tileset_changed
void editgui_tileset_changed(void)
Definition gui_interface.c:509
popdown_city_dialog
void popdown_city_dialog(struct city *pcity)
Definition gui_interface.c:569
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.c:276
ui_main
int ui_main(int argc, char *argv[])
Definition gui_interface.c:58
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
mask
struct sprite int int int int struct sprite * mask
Definition sprite_g.h:32
y
struct sprite int int y
Definition sprite_g.h:31
scale
struct sprite int int int int struct sprite int int float scale
Definition sprite_g.h:33
mask_offset_x
struct sprite int int int int struct sprite int mask_offset_x
Definition sprite_g.h:32
x
struct sprite int x
Definition sprite_g.h:31
crop_sprite
crop_sprite
Definition sprite_g.h:30
get_sprite_dimensions
struct sprite int int int int struct sprite int int float bool smooth get_sprite_dimensions
Definition sprite_g.h:36
mask_offset_y
struct sprite int int int int struct sprite int int mask_offset_y
Definition sprite_g.h:32
Treaty
Definition diptreaty.h:78
act_confirmation_data
Definition control.h:145
astring
Definition astring.h:36
callback
Definition gui_main.c:2404
canvas
Definition canvas.h:22
canvas::zoom
float zoom
Definition canvas.h:25
city
Definition city.h:320
color
Definition colors.h:21
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: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
player
Definition player.h:247
sprite
Definition sprite.h:22
tile
Definition tile.h:50
unit
Definition unit.h:138
themes_g.h
get_useable_themes_in_directory
get_useable_themes_in_directory
Definition themes_g.h:22
directory
const char * directory
Definition themes_g.h:23