Freeciv-3.3
|
Go to the source code of this file.
Data Structures | |
struct | finger_behavior |
struct | mouse_button_behavior |
Enumerations | |
enum | mouse_button_hold_state { MB_HOLD_SHORT , MB_HOLD_MEDIUM , MB_HOLD_LONG } |
Variables | |
struct widget * | selected_widget |
Uint32 | sdl3_client_flags |
bool | LSHIFT |
bool | RSHIFT |
bool | LCTRL |
bool | RCTRL |
bool | LALT |
int * | client_font_sizes [] |
int | MOVE_STEP_X |
int | MOVE_STEP_Y |
Definition at line 136 of file gui_main.h.
#define CF_CHANGE_TAXRATE_LUX_BLOCK (1<<13) |
Definition at line 51 of file gui_main.h.
#define CF_CHANGE_TAXRATE_SCI_BLOCK (1<<14) |
Definition at line 52 of file gui_main.h.
#define CF_CHANGED_CITY_NAME (1<<11) |
Definition at line 49 of file gui_main.h.
#define CF_CHANGED_PROD (1<<10) |
Definition at line 48 of file gui_main.h.
#define CF_CITY_STATUS_SPECIAL (1<<12) |
Definition at line 50 of file gui_main.h.
#define CF_DRAW_CITY_GRID (1<<17) |
Definition at line 53 of file gui_main.h.
#define CF_DRAW_CITY_WORKER_GRID (1<<18) |
Definition at line 54 of file gui_main.h.
#define CF_DRAW_PLAYERS_ALLIANCE_STATUS (1<<22) |
Definition at line 58 of file gui_main.h.
#define CF_DRAW_PLAYERS_CEASEFIRE_STATUS (1<<20) |
Definition at line 56 of file gui_main.h.
#define CF_DRAW_PLAYERS_NEUTRAL_STATUS (1<<23) |
Definition at line 59 of file gui_main.h.
#define CF_DRAW_PLAYERS_PEACE_STATUS (1<<21) |
Definition at line 57 of file gui_main.h.
#define CF_DRAW_PLAYERS_WAR_STATUS (1<<19) |
Definition at line 55 of file gui_main.h.
#define CF_FOCUS_ANIMATION (1<<9) |
Definition at line 47 of file gui_main.h.
#define CF_GAME_JUST_STARTED (1<<6) |
Definition at line 45 of file gui_main.h.
#define CF_MAP_UNIT_W_CREATED (1<<1) |
Definition at line 42 of file gui_main.h.
#define CF_NONE 0 |
Definition at line 40 of file gui_main.h.
#define CF_ORDERS_WIDGETS_CREATED (1<<0) |
Definition at line 41 of file gui_main.h.
#define CF_OVERVIEW_SHOWN (1<<3) |
Definition at line 44 of file gui_main.h.
#define CF_UNITINFO_SHOWN (1<<2) |
Definition at line 43 of file gui_main.h.
#define DEFAULT_MOVE_STEP 5 |
Definition at line 108 of file gui_main.h.
#define GUI_SDL_OPTION | ( | optname | ) | gui_options.gui_sdl3_##optname |
Definition at line 33 of file gui_main.h.
Definition at line 34 of file gui_main.h.
Definition at line 63 of file gui_main.h.
Definition at line 62 of file gui_main.h.
Definition at line 66 of file gui_main.h.
Enumerator | |
---|---|
MB_HOLD_SHORT | |
MB_HOLD_MEDIUM | |
MB_HOLD_LONG |
Definition at line 72 of file gui_main.h.
Return default font size, from any source.
Definition at line 1319 of file gui_main.c.
Referenced by gui_load_theme().
Don't show Focused Unit Animation.
Definition at line 1210 of file gui_main.c.
Referenced by end_turn_callback(), main_key_down_handler(), main_key_down_handler(), remove_net_input(), and update_unit_info_label().
Show Focused Unit Animation.
Definition at line 1201 of file gui_main.c.
Referenced by add_net_input(), and update_unit_info_label().
Filter out mouse motion events for too small movement to react to. This function may run in a separate event thread.
Definition at line 582 of file gui_main.c.
Referenced by factor_horiz_cma_callback(), horiz_taxrate_callback(), min_horiz_cma_callback(), move_window(), and vertic_scroll_widget_list().
Queue a flush event to be handled later by SDL.
Definition at line 1346 of file gui_main.c.
Referenced by queue_flush().
Instruct event loop to exit.
Definition at line 566 of file gui_main.c.
Referenced by exit_callback(), popdown_conn_list_dialog(), and races_toggles_set_sensitive().
Uint16 gui_event_loop | ( | void * | data, |
void(*)(void *data) | loop_action, | ||
Uint16(*)(SDL_KeyboardEvent *key, void *data) | key_down_handler, | ||
Uint16(*)(SDL_KeyboardEvent *key, void *data) | key_up_handler, | ||
Uint16(*)(const char *text, void *data) | textinput_handler, | ||
Uint16(*)(SDL_TouchFingerEvent *touch_event, void *data) | finger_down_handler, | ||
Uint16(*)(SDL_TouchFingerEvent *touch_event, void *data) | finger_up_handler, | ||
Uint16(*)(SDL_TouchFingerEvent *touch_event, void *data) | finger_motion_handler, | ||
Uint16(*)(SDL_MouseButtonEvent *button_event, void *data) | mouse_button_down_handler, | ||
Uint16(*)(SDL_MouseButtonEvent *button_event, void *data) | mouse_button_up_handler, | ||
Uint16(*)(SDL_MouseMotionEvent *motion_event, void *data) | mouse_motion_handler | ||
) |
SDL3-client main loop.
Definition at line 598 of file gui_main.c.
Update font sizes based on theme.
Definition at line 1329 of file gui_main.c.
Referenced by gui_load_theme().
|
extern |
Definition at line 116 of file gui_main.c.
Referenced by canvas_put_text(), get_text_size(), and update_font_from_theme().
|
extern |
Definition at line 113 of file gui_main.c.
Referenced by button_up_on_map(), gui_event_loop(), and gui_event_loop().
|
extern |
Definition at line 111 of file gui_main.c.
Referenced by button_up_on_map(), gui_event_loop(), gui_event_loop(), map_event_handler(), and map_event_handler().
|
extern |
Definition at line 109 of file gui_main.c.
Referenced by button_up_on_map(), gui_event_loop(), gui_event_loop(), main_key_down_handler(), main_key_down_handler(), map_event_handler(), and map_event_handler().
|
extern |
Definition at line 105 of file gui_main.c.
Referenced by factor_horiz_cma_callback(), FilterMouseMotionEvents(), min_horiz_cma_callback(), and vertic_scroll_widget_list().
int MOVE_STEP_Y |
Definition at line 109 of file gui_main.h.
|
extern |
Definition at line 112 of file gui_main.c.
Referenced by gui_event_loop(), gui_event_loop(), map_event_handler(), and map_event_handler().
|
extern |
Definition at line 110 of file gui_main.c.
Referenced by gui_event_loop(), gui_event_loop(), main_key_down_handler(), main_key_down_handler(), map_event_handler(), and map_event_handler().
|
extern |
Definition at line 98 of file gui_main.c.
Referenced by close_game_page(), create_units_order_widgets(), delete_units_order_widgets(), disable_focus_animation(), economy_report_dialog_popup(), enable_focus_animation(), horiz_taxrate_callback(), is_focus_anim_enabled(), minimap_window_callback(), new_name_city_dlg_callback(), popdown_city_dialog(), popdown_minimap_window(), popdown_unitinfo_window(), popup_minimap_window(), popup_players_dialog(), popup_unitinfo_window(), real_city_dialog_popup(), real_menus_update(), real_players_dialog_update(), redraw_city_dialog(), redraw_unit_info_label(), refresh_city_names(), refresh_overview(), set_new_unitinfo_window_pos(), show_game_page(), toggle_block_callback(), toggle_draw_alliance_status_callback(), toggle_draw_ceasefire_status_callback(), toggle_draw_neutral_status_callback(), toggle_draw_peace_status_callback(), toggle_draw_war_status_callback(), toggle_map_window_callback(), toggle_unit_info_window_callback(), ui_init(), and ui_main().
Definition at line 48 of file widget.c.
Referenced by del_widget_pointer_from_gui_list(), redraw_widget_info_label(), unselect_widget_action(), and widget_selected_action().