Freeciv-3.2
|
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 | sdl2_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 141 of file gui_main.h.
#define CF_CHANGE_TAXRATE_LUX_BLOCK (1<<13) |
Definition at line 55 of file gui_main.h.
#define CF_CHANGE_TAXRATE_SCI_BLOCK (1<<14) |
Definition at line 56 of file gui_main.h.
#define CF_CHANGED_CITY_NAME (1<<11) |
Definition at line 53 of file gui_main.h.
#define CF_CHANGED_PROD (1<<10) |
Definition at line 52 of file gui_main.h.
#define CF_CITY_STATUS_SPECIAL (1<<12) |
Definition at line 54 of file gui_main.h.
#define CF_DRAW_CITY_GRID (1<<17) |
Definition at line 57 of file gui_main.h.
#define CF_DRAW_CITY_WORKER_GRID (1<<18) |
Definition at line 58 of file gui_main.h.
#define CF_DRAW_PLAYERS_ALLIANCE_STATUS (1<<22) |
Definition at line 62 of file gui_main.h.
#define CF_DRAW_PLAYERS_CEASEFIRE_STATUS (1<<20) |
Definition at line 60 of file gui_main.h.
#define CF_DRAW_PLAYERS_NEUTRAL_STATUS (1<<23) |
Definition at line 63 of file gui_main.h.
#define CF_DRAW_PLAYERS_PEACE_STATUS (1<<21) |
Definition at line 61 of file gui_main.h.
#define CF_DRAW_PLAYERS_WAR_STATUS (1<<19) |
Definition at line 59 of file gui_main.h.
#define CF_FOCUS_ANIMATION (1<<9) |
Definition at line 51 of file gui_main.h.
#define CF_GAME_JUST_STARTED (1<<6) |
Definition at line 49 of file gui_main.h.
#define CF_MAP_UNIT_W_CREATED (1<<1) |
Definition at line 46 of file gui_main.h.
#define CF_NONE 0 |
Definition at line 44 of file gui_main.h.
#define CF_ORDERS_WIDGETS_CREATED (1<<0) |
Definition at line 45 of file gui_main.h.
#define CF_OVERVIEW_SHOWN (1<<3) |
Definition at line 48 of file gui_main.h.
#define CF_SWRENDERER (1<<24) |
Definition at line 64 of file gui_main.h.
#define CF_UNITINFO_SHOWN (1<<2) |
Definition at line 47 of file gui_main.h.
#define DEFAULT_MOVE_STEP 5 |
Definition at line 113 of file gui_main.h.
#define GUI_SDL_OPTION | ( | optname | ) | gui_options.gui_sdl2_##optname |
Definition at line 37 of file gui_main.h.
Definition at line 38 of file gui_main.h.
Definition at line 68 of file gui_main.h.
Definition at line 67 of file gui_main.h.
Definition at line 71 of file gui_main.h.
Enumerator | |
---|---|
MB_HOLD_SHORT | |
MB_HOLD_MEDIUM | |
MB_HOLD_LONG |
Definition at line 77 of file gui_main.h.
Return default font size, from any source.
Definition at line 1313 of file gui_main.c.
Don't show Focused Unit Animation.
Definition at line 1204 of file gui_main.c.
Show Focused Unit Animation.
Definition at line 1195 of file gui_main.c.
Filter out mouse motion events for too small movement to react to. This function may run in a separate event thread.
Definition at line 581 of file gui_main.c.
Queue a flush event to be handled later by SDL.
Definition at line 1340 of file gui_main.c.
Instruct event loop to exit.
Definition at line 565 of file gui_main.c.
Uint16 gui_event_loop | ( | void * | data, |
void(*)(void *data) | loop_action, | ||
Uint16(*)(SDL_Keysym key, void *data) | key_down_handler, | ||
Uint16(*)(SDL_Keysym 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 | ||
) |
SDL2-client main loop.
Definition at line 602 of file gui_main.c.
Referenced by down_scroll_widget_list(), edit_field(), factor_horiz_cma_callback(), horiz_taxrate_callback(), min_horiz_cma_callback(), move_window(), ui_main(), up_scroll_widget_list(), and vertic_scroll_widget_list().
Update font sizes based on theme.
Definition at line 1323 of file gui_main.c.
|
extern |
Definition at line 115 of file gui_main.c.
|
extern |
Definition at line 112 of file gui_main.c.
|
extern |
Definition at line 110 of file gui_main.c.
|
extern |
Definition at line 108 of file gui_main.c.
|
extern |
Definition at line 104 of file gui_main.c.
int MOVE_STEP_Y |
Definition at line 114 of file gui_main.h.
|
extern |
Definition at line 111 of file gui_main.c.
|
extern |
Definition at line 109 of file gui_main.c.
|
extern |
Definition at line 101 of file gui_main.c.
Referenced by close_game_page(), create_surfaces(), 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(), parse_options(), 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 add_new_worklist_callback(), change_sex_callback(), connect_callback(), factor_horiz_cma_callback(), horiz_taxrate_callback(), main_key_up_handler(), main_key_up_handler(), main_mouse_motion_handler(), min_horiz_cma_callback(), nation_button_callback(), next_name_callback(), popup_change_research_dialog_callback(), popup_change_research_goal_dialog_callback(), popup_hurry_production_dialog(), popup_sell_impr_callback(), popup_upgrade_unit_callback(), prev_name_callback(), races_dialog_ok_callback(), std_down_advanced_dlg_callback(), std_up_advanced_dlg_callback(), std_vscroll_advanced_dlg_callback(), style_callback(), toggle_map_window_callback(), toggle_msg_window_callback(), toggle_unit_info_window_callback(), and unit_order_callback().