Freeciv-3.2
|
Go to the source code of this file.
Macros | |
#define | GUI_NAME_FULL "gui-gtk-4.0" |
#define | GUI_NAME_SHORT "gtk4" |
#define | GUI_GTK_OPTION(optname) gui_options.gui_gtk4_##optname |
#define | GUI_GTK_OPTION_STR(optname) "gui_gtk4_" #optname |
#define | GUI_GTK_DEFAULT_THEME_NAME FC_GTK4_DEFAULT_THEME_NAME |
#define | single_tile_pixmap (mapview.single_tile->pixmap) |
#define GUI_GTK_DEFAULT_THEME_NAME FC_GTK4_DEFAULT_THEME_NAME |
Definition at line 27 of file gui_main.h.
#define GUI_GTK_OPTION | ( | optname | ) | gui_options.gui_gtk4_##optname |
Definition at line 25 of file gui_main.h.
Definition at line 26 of file gui_main.h.
Definition at line 22 of file gui_main.h.
#define GUI_NAME_SHORT "gtk4" |
Definition at line 23 of file gui_main.h.
#define single_tile_pixmap (mapview.single_tile->pixmap) |
Definition at line 39 of file gui_main.h.
Add idle callback for updating animations.
Definition at line 2428 of file gui_main.c.
Referenced by animation_idle_cb(), and real_set_client_page().
gboolean fc_gained_focus | ( | GtkEventControllerFocus * | controller, |
gpointer | data | ||
) |
Freeciv window has gained focus
Definition at line 753 of file gui_main.c.
gboolean fc_lost_focus | ( | GtkEventControllerFocus * | controller, |
gpointer | data | ||
) |
Freeciv window has lost focus
Definition at line 742 of file gui_main.c.
Option callback for the 'fullscreen' gtk-gui option.
Definition at line 2433 of file gui_main.c.
Referenced by full_screen_callback(), full_screen_callback(), and options_extra_init().
GtkApplication * gui_app | ( | void | ) |
Return the client GtkApplication
Definition at line 2674 of file gui_main.c.
Referenced by create_toggle_menu_item(), enable_menus(), menus_disable_unit_commands(), real_menus_update(), and view_menu_item_toggle().
Return whether gui is currently running.
Definition at line 2058 of file gui_main.c.
Referenced by show_tileset_error().
When the chatline text view is resized, scroll it to the bottom. This prevents users from accidentally missing messages when the chatline gets scrolled up a small amount and stops scrolling down automatically.
Definition at line 359 of file gui_main.c.
Referenced by main_message_area_resize(), and real_set_client_page().
Focus on map canvas
Definition at line 359 of file gui_main.c.
Referenced by map_view_callback(), map_view_callback(), toplevel_key_press_handler(), and toplevel_key_press_handler().
void popup_quit_dialog | ( | ) |
Popups the dialog with the message: Are you sure you want to quit?
Open dialog to confirm that user wants to quit client.
Definition at line 2349 of file gui_main.c.
Exit gtk main loop.
Definition at line 2337 of file gui_main.c.
Referenced by create_main_page(), and quit_dialog_response().
Set the chatline buttons to reflect the state of the game and current client options. This function should be called on game start.
Definition at line 2509 of file gui_main.c.
Referenced by real_set_client_page().
Called when the tileset is changed to reset the unit pixmap table.
Definition at line 1023 of file gui_main.c.
Referenced by real_set_client_page(), and tileset_changed().
struct video_mode * resolution_request_get | ( | void | ) |
Give resolution requested by user, if any.
Definition at line 2611 of file gui_main.c.
Referenced by real_set_client_page().
Return height of the primary monitor
Definition at line 2593 of file gui_main.c.
Referenced by adjust_default_options(), create_main_page(), and initialize_city_dialogs().
Return width of the primary monitor
Definition at line 2575 of file gui_main.c.
gboolean terminate_signal_processing | ( | GtkEventControllerFocus * | controller, |
gpointer | data | ||
) |
Override background color for canvases Callback that just returns TRUE.
Definition at line 1042 of file gui_main.c.
Referenced by create_network_page().
void update_turn_done_tooltip | ( | ) |
Override background color for canvases Update tooltip of the Turn Done button
Update tooltip of the Turn Done button
Definition at line 1108 of file gui_main.c.
|
extern |
Definition at line 129 of file gui_main.c.
Referenced by luaconsole_dialog_create(), meswin_dialog_init(), popup_find_dialog(), popup_notify_dialog(), setup_widgets(), toplevel_key_press_handler(), and toplevel_key_press_handler().
|
extern |
Definition at line 144 of file gui_main.c.
Referenced by set_indicator_icons(), setup_widgets(), and update_info_label().
|
extern |
Definition at line 133 of file gui_main.c.
Referenced by activate_gui(), apply_city_names_font(), and ui_main().
|
extern |
Definition at line 134 of file gui_main.c.
Referenced by activate_gui(), apply_city_productions_font(), and ui_main().
|
extern |
Definition at line 143 of file gui_main.c.
Referenced by setup_widgets(), and update_info_label().
|
extern |
Definition at line 154 of file gui_main.c.
Referenced by setup_widgets(), and update_info_label().
|
extern |
Definition at line 146 of file gui_main.c.
Referenced by set_indicator_icons(), setup_widgets(), and update_info_label().
|
extern |
Definition at line 147 of file gui_main.c.
Referenced by set_indicator_icons(), setup_widgets(), and update_info_label().
|
extern |
Definition at line 137 of file gui_main.c.
Referenced by setup_widgets(), and update_info_label().
|
extern |
Definition at line 138 of file gui_main.c.
Referenced by setup_widgets(), and update_info_label().
|
extern |
Definition at line 177 of file gui_main.c.
Referenced by chatline_is_scrolled_to_bottom(), chatline_scroll_to_bottom(), key_press_map_canvas(), key_press_map_canvas(), main_message_area_resize(), real_output_window_append(), and setup_widgets().
|
extern |
Definition at line 107 of file gui_main.c.
Referenced by butt_down_mapcanvas(), create_line_at_mouse_pos(), dirty_all(), dirty_rect(), draw_selection_rectangle(), event_after(), event_after(), flush_dirty(), left_butt_down_mapcanvas(), map_canvas_focus(), middle_butt_down_mapcanvas(), mouse_scroll_mapcanvas(), mouse_scroll_mapcanvas(), move_mapcanvas(), move_mapcanvas(), popit(), popupinfo_positioning_callback(), put_cross_overlay_tile(), right_butt_down_mapcanvas(), setup_widgets(), and update_rect_at_mouse_pos().
|
extern |
Definition at line 108 of file gui_main.c.
Referenced by setup_widgets(), and update_map_canvas_scrollbars_size().
|
extern |
Definition at line 109 of file gui_main.c.
Referenced by setup_widgets(), and update_map_canvas_scrollbars_size().
|
extern |
Definition at line 130 of file gui_main.c.
Referenced by leave_mapcanvas(), and setup_widgets().
|
extern |
Definition at line 178 of file gui_main.c.
Referenced by chatline_scroll_to_bottom(), create_start_page(), log_output_window(), real_output_window_append(), set_output_window_text(), setup_widgets(), ui_exit(), and ui_main().
|
extern |
Definition at line 111 of file gui_main.c.
Referenced by create_line_at_mouse_pos(), get_overview_window(), overview_size_changed(), refresh_overview(), setup_widgets(), and update_map_canvas_scrollbars().
|
extern |
Definition at line 123 of file gui_main.c.
Referenced by setup_widgets(), and update_overview_scroll_window_pos().
|
extern |
Definition at line 122 of file gui_main.c.
Referenced by populate_unit_image_table(), populate_unit_pic_table(), setup_widgets(), and update_overview_scroll_window_pos().
|
extern |
Definition at line 112 of file gui_main.c.
Referenced by setup_widgets(), and update_overview_scroll_window_pos().
|
extern |
Definition at line 135 of file gui_main.c.
Referenced by activate_gui(), apply_reqtree_text_font(), and ui_main().
|
extern |
Definition at line 129 of file gui_main.c.
Referenced by luaconsole_dialog_create(), meswin_dialog_init(), and setup_widgets().
|
extern |
Definition at line 145 of file gui_main.c.
Referenced by set_indicator_icons(), setup_widgets(), and update_info_label().
|
extern |
|
extern |
Definition at line 148 of file gui_main.c.
Referenced by setup_widgets(), and update_timeout_label().
|
extern |
Definition at line 129 of file gui_main.c.
Referenced by create_city_report_dialog(), create_messageopt_dialog(), create_players_dialog(), create_spaceship_dialog(), diplomacy_main_create(), economy_report_init(), endgame_report_init(), gui_dialog_new(), leave_mapcanvas(), map_canvas_focus(), science_report_init(), setup_widgets(), toplevel_key_press_handler(), toplevel_key_press_handler(), and units_report_init().
|
extern |
Definition at line 128 of file gui_main.c.
Referenced by enable_menus(), setup_widgets(), toplevel_key_press_handler(), toplevel_key_press_handler(), and toplevel_key_release_handler().
|
extern |
Definition at line 125 of file gui_main.c.
Referenced by activate_gui(), anim_cursor_cb(), choice_dialog_start(), confirm_cancel_pact(), create_advances_list(), create_city_dialog(), create_city_info_table(), create_goto_dialog(), create_help_dialog(), create_improvements_list(), create_intel_dialog(), create_intel_wonder_dialog(), create_line_at_mouse_pos(), create_multiplier_dialog(), create_races_dialog(), create_rates_dialog(), create_tool_value_selector(), create_worklists_report(), detached_widget_fill(), dlg_tab_provider_prepare(), enable_menus(), fullscreen_opt_refresh(), get_text_size(), gui_clear_theme(), gui_dialog_detach(), gui_dialog_new(), gui_load_theme(), gui_update_font(), infra_dialog_popup(), leave_callback(), leave_callback(), luaconsole_load_file_popup(), main(), map_canvas_focus(), modinst_setup_widgets(), option_color_select_callback(), option_dialog_new(), popit(), popup_action_selection(), popup_bribe_dialog(), popup_connect_msg(), popup_disband_dialog(), popup_help_dialog_typed(), popup_incite_dialog(), popup_newcity_dialog(), popup_notify_goto_dialog(), popup_quit_dialog(), popup_revolution_dialog(), popup_soundset_suggestion_dialog(), popup_tileset_suggestion_dialog(), popup_upgrade_dialog(), popup_workertask_dlg(), propagate_keypress(), property_editor_new(), rally_dialog_popup(), real_set_client_page(), remove_net_input(), request_action_confirmation(), save_dialog_file_chooser_popup(), save_dialog_new(), select_color_callback(), select_color_callback(), select_tgt_extra(), select_tgt_unit(), setup_widgets(), show_conn_popup(), show_info_popup(), show_tileset_error(), surface_put_text(), tearoff_callback(), tileset_changed(), toplevel_handler(), try_to_set_editor_tool(), ui_main(), update_rect_at_mouse_pos(), update_turn_done_button(), and usdlg_create().
|
extern |
Definition at line 127 of file gui_main.c.
Referenced by real_set_client_page(), setup_widgets(), and ui_main().
|
extern |
Definition at line 149 of file gui_main.c.
Referenced by end_turn_callback(), set_turn_done_button_state(), setup_widgets(), update_turn_done_button(), and update_turn_done_tooltip().
|
extern |
Definition at line 152 of file gui_main.c.
Referenced by editinfobox_refresh(), setup_widgets(), and ui_main().
|
extern |
Definition at line 153 of file gui_main.c.
Referenced by setup_widgets(), and update_unit_info_label().
|
extern |
Definition at line 151 of file gui_main.c.
Referenced by popup_unit_info(), setup_widgets(), and update_unit_info_label().