Freeciv-3.3
Loading...
Searching...
No Matches
Data Fields
widget Struct Reference

#include <widget.h>

Data Fields

struct widgetnext
 
struct widgetprev
 
struct gui_layerdst
 
SDL_Surfacetheme
 
SDL_Surfacetheme2
 
SDL_Surfacegfx
 
utf8_strstring_utf8
 
utf8_strinfo_label
 
union { 
 
   const struct strvec *   vector 
 
   struct container *   cont 
 
   struct city *   city 
 
   struct unit *   unit 
 
   struct player *   player 
 
   struct tile *   tile 
 
   struct widget *   widget 
 
   void *   ptr 
 
data 
 
union { 
 
   struct checkbox *   cbox 
 
   struct small_dialog *   small_dlg 
 
   struct advanced_dialog *   adv_dlg 
 
   void *   ptr 
 
private_data 
 
Uint32 state_types_flags
 
SDL_Rect size
 
SDL_Rect area
 
SDL_Keycode key
 
Uint16 mod
 
Uint16 id
 
int(* action )(struct widget *)
 
void(* set_area )(struct widget *pwidget, SDL_Rect area)
 
void(* set_position )(struct widget *pwidget, int x, int y)
 
void(* resize )(struct widget *pwidget, int w, int h)
 
void(* draw_frame )(struct widget *pwidget)
 
int(* redraw )(struct widget *pwidget)
 
void(* mark_dirty )(struct widget *pwidget)
 
void(* flush )(struct widget *pwidget)
 
void(* undraw )(struct widget *pwidget)
 
void(* select )(struct widget *pwidget)
 
void(* unselect )(struct widget *pwidget)
 
void(* press )(struct widget *pwidget)
 
void(* destroy )(struct widget *pwidget)
 
union { 
 
   const struct strvec *   vector 
 
   struct container *   cont 
 
   struct city *   city 
 
   struct unit *   unit 
 
   struct player *   player 
 
   struct tile *   tile 
 
   struct widget *   widget 
 
   void *   ptr 
 
data 
 
union { 
 
   struct checkbox *   cbox 
 
   struct small_dialog *   small_dlg 
 
   struct advanced_dialog *   adv_dlg 
 
   void *   ptr 
 
private_data 
 

Detailed Description

Definition at line 112 of file widget.h.

Field Documentation

◆ action

int(* widget::action)(struct widget *)

◆ adv_dlg

struct advanced_dialog* widget::adv_dlg

◆ area

SDL_Rect widget::area

Definition at line 149 of file widget.h.

Referenced by action_entry(), add_new_worklist_callback(), arrange_widgets(), convert_iconlabel_to_themeiconlabel2(), create_city_options_widget_list(), create_present_supported_units_widget_list(), create_tech_info(), create_tech_tree(), create_themelabel2(), economy_report_dialog_popup(), find_next_widget_at_pos(), group_set_area(), meswin_dialog_popup(), minimap_window_callback(), nation_button_callback(), option_dialog_optset_category(), option_dialog_worklist(), popup_action_selection(), popup_advanced_terrain_dialog(), popup_bribe_stack_dialog(), popup_bribe_unit_dialog(), popup_change_research_dialog(), popup_change_research_goal_dialog(), popup_city_cma_dialog(), popup_conn_list_dialog(), popup_connection_dialog(), popup_diplomacy_dialog(), popup_diplomatic_objects(), popup_find_dialog(), popup_goto_airlift_dialog(), popup_government_dialog(), popup_hurry_production_dialog(), popup_image(), popup_impr_info(), popup_incite_dialog(), popup_join_game_dialog(), popup_load_del_presets_dialog(), popup_load_game_dialog(), popup_minimap_window(), popup_new_user_passwd_dialog(), popup_newcity_dialog(), popup_notify_dialog(), popup_pillage_dialog(), popup_players_dialog(), popup_players_nations_dialog(), popup_races_dialog(), popup_sabotage_dialog(), popup_sell_impr_callback(), popup_spaceship_dialog(), popup_tech_info(), popup_terrain_info_dialog(), popup_unit_disband_dlg(), popup_unit_info(), popup_unit_upgrade_dlg(), popup_unitinfo_window(), popup_upgrade_unit_callback(), popup_user_passwd_dialog(), popup_war_dialog(), real_activeunits_report_dialog_update(), real_city_dialog_popup(), real_conn_list_dialog_update(), real_info_city_report_dialog_update(), real_meswin_dialog_update(), real_science_report_dialog_update(), redraw_checkbox(), redraw_city_dialog(), redraw_icon(), redraw_label(), redraw_tech_tree_dlg(), redraw_unit_info_label(), redraw_window(), remove_item_from_worklist(), save_cma_callback(), science_report_dialog_popup(), sell_imprvm_dlg_callback(), set_new_minimap_window_pos(), set_new_unitinfo_window_pos(), show_main_page(), spy_steal_popup_shared(), toggle_map_window_callback(), toggle_unit_info_window_callback(), unit_select_dialog_popup(), units_orders_city_dlg_callback(), update_diplomacy_dialog(), update_goto_dialog(), update_intel_dialog(), widget_core_set_area(), and widget_set_area().

◆ cbox

struct checkbox* widget::cbox

◆ city

struct city* widget::city

◆ cont

struct container* widget::cont

◆ [union] [1/2]

union { ... } widget::data

Referenced by accept_treaty_callback(), activate_and_exit_units_orders_city_dlg_callback(), activate_units_orders_city_dlg_callback(), adv_unit_select_all_callback(), adv_unit_select_callback(), adv_unit_sentry_idle_callback(), apply_taxrates_callback(), call_meeting_dlg_callback(), cancel_meeting_callback(), cancel_pact_dlg_callback(), change_nation_label(), change_production_callback(), change_sex_callback(), cities_callback(), cma_callback(), combo_menu_callback(), combo_menu_item_callback(), combo_new(), combo_popup(), disband_units_orders_city_dlg_callback(), embassy_callback(), enum_widget_destroy(), exit_find_city_dlg_callback(), exit_intel_dlg_callback(), exit_space_dialog_callback(), find_city_callback(), focus_units_info_callback(), fortify_units_orders_city_dlg_callback(), gold_callback(), goto_here_callback(), homecity_units_orders_city_dlg_callback(), horiz_taxrate_callback(), hurry_production_callback(), intel_window_dlg_callback(), ld_cma_callback(), load_selected_game_callback(), maps_callback(), msg_callback(), nation_button_callback(), newcity_cancel_callback(), newcity_ok_callback(), next_name_callback(), next_set_callback(), notify_goto_dialog_callback(), notify_goto_dialog_close_callback(), notify_goto_dialog_goto_callback(), notify_goto_dialog_new(), notify_goto_dialog_update(), ok_buy_prod_city_dlg_callback(), ok_disband_unit_window_callback(), ok_save_cma_callback(), ok_sell_impr_callback(), ok_upgrade_unit_window_callback(), option_widget_apply(), pact_callback(), paradrop_here_callback(), patrol_here_callback(), pillage_callback(), player_nation_callback(), popup_advanced_terrain_dialog(), popup_buy_production_from_city_report_callback(), popup_citydlg_from_city_report_callback(), popup_diplomatic_objects(), popup_impr_info(), popup_newcity_dialog(), popup_races_dialog(), popup_sell_impr_callback(), popup_spaceship_dialog(), popup_tech_info(), popup_unit_info(), popup_worklist_from_city_report_callback(), prev_name_callback(), prev_set_callback(), races_dialog_ok_callback(), races_toggles_set_sensitive(), redraw_impr_info_dlg(), redraw_tech_info_dlg(), redraw_tech_tree_dlg(), redraw_unit_info_dlg(), remove_clause_callback(), sabotage_impr_callback(), select_meta_servers_callback(), select_random_leader(), sell_imprvm_dlg_callback(), sell_imprvm_dlg_ok_callback(), sentry_units_orders_city_dlg_callback(), shared_tiles_callback(), show_tech_tree_callback(), spaceship_callback(), spy_steal_popup_shared(), style_callback(), techs_callback(), terrain_info_callback(), toggle_full_tree_mode_in_help_dlg_callback(), units_orders_city_dlg_callback(), update_intel_dialog(), upgrade_units_orders_city_dlg_callback(), video_mode_widget_destroy(), vision_callback(), withdraw_vision_dlg_callback(), and zoom_to_city_callback().

◆ [union] [2/2]

union { ... } widget::data

◆ destroy

void(* widget::destroy)(struct widget *pwidget)

Definition at line 170 of file widget.h.

Referenced by combo_new(), and option_widget_new().

◆ draw_frame

void(* widget::draw_frame)(struct widget *pwidget)

Definition at line 162 of file widget.h.

Referenced by widget_draw_frame(), and widget_new().

◆ dst

struct gui_layer * widget::dst

Definition at line 116 of file widget.h.

Referenced by action_entry(), add_global_worklist(), add_new_worklist_callback(), add_target_to_worklist(), add_to_chat_list(), buy_prod_city_dlg_callback(), combo_new(), combo_popup(), combo_redraw(), create_checkbox(), create_city_options_widget_list(), create_edit(), create_icon_button(), create_present_supported_units_widget_list(), create_tech_info(), create_tech_tree(), create_themelabel(), create_themelabel2(), create_window_skeleton(), draw_frame(), draw_horiz(), draw_icon(), economy_report_dialog_popup(), find_next_widget_at_pos(), minimap_window_callback(), nation_button_callback(), notify_goto_dialog_destroy(), notify_goto_dialog_new(), notify_goto_dialog_update(), option_dialog_new(), option_dialog_optset(), option_dialog_optset_category(), option_dialog_worklist(), option_widget_new(), popup_action_selection(), popup_advanced_terrain_dialog(), popup_bribe_stack_dialog(), popup_bribe_unit_dialog(), popup_change_research_dialog(), popup_change_research_goal_dialog(), popup_city_cma_dialog(), popup_conn_list_dialog(), popup_connection_dialog(), popup_diplomacy_dialog(), popup_find_dialog(), popup_goto_airlift_dialog(), popup_government_dialog(), popup_hurry_production_dialog(), popup_image(), popup_impr_info(), popup_incite_dialog(), popup_join_game_dialog(), popup_load_del_presets_dialog(), popup_load_game_dialog(), popup_minimap_window(), popup_new_user_passwd_dialog(), popup_newcity_dialog(), popup_notify_dialog(), popup_pillage_dialog(), popup_players_dialog(), popup_players_nations_dialog(), popup_races_dialog(), popup_sabotage_dialog(), popup_sell_impr_callback(), popup_spaceship_dialog(), popup_tech_info(), popup_terrain_info_dialog(), popup_unit_disband_dlg(), popup_unit_info(), popup_unit_upgrade_dlg(), popup_unitinfo_window(), popup_upgrade_unit_callback(), popup_user_passwd_dialog(), popup_war_dialog(), popup_worklist_editor(), real_activeunits_report_dialog_update(), real_city_dialog_popup(), real_city_report_dialog_update_city(), real_info_city_report_dialog_update(), real_science_report_dialog_update(), rebuild_imprm_list(), redraw_checkbox(), redraw_city_dialog(), redraw_horiz(), redraw_icon(), redraw_icon2(), redraw_iconlabel(), redraw_impr_info_dlg(), redraw_label(), redraw_tech_info_dlg(), redraw_tech_tree_dlg(), redraw_themelabel2(), redraw_unit_info_dlg(), redraw_widget_info_label(), redraw_window(), refresh_widget_background(), resize_window(), resource_map_city_dlg_callback(), save_cma_callback(), science_report_dialog_popup(), scroll_mouse_motion_handler(), sell_imprvm_dlg_callback(), set_global_worklist(), set_new_order_widget_start_pos(), show_game_page(), spy_steal_popup_shared(), toggle_map_window_callback(), toggle_unit_info_window_callback(), units_orders_city_dlg_callback(), update_city_cma_dialog(), update_clauses_list(), update_diplomacy_dialog(), update_goto_dialog(), update_intel_dialog(), vertic_scroll_widget_list(), widget_core_flush(), widget_core_mark_dirty(), widget_core_undraw(), and window_set_position().

◆ flush

void(* widget::flush)(struct widget *pwidget)

Definition at line 165 of file widget.h.

Referenced by widget_flush(), and widget_new().

◆ gfx

SDL_Surface * widget::gfx

◆ id

Uint16 widget::id

◆ info_label

utf8_str * widget::info_label

◆ key

SDL_Keycode widget::key

◆ mark_dirty

void(* widget::mark_dirty)(struct widget *pwidget)

Definition at line 164 of file widget.h.

Referenced by widget_mark_dirty(), and widget_new().

◆ mod

Uint16 widget::mod

◆ next

struct widget * widget::next

◆ player

struct player* widget::player

◆ press

void(* widget::press)(struct widget *pwidget)

Definition at line 169 of file widget.h.

◆ prev

struct widget * widget::prev

Definition at line 114 of file widget.h.

Referenced by add_new_worklist_callback(), add_to_gui_list(), add_widget_to_vertical_scroll_widget_list(), add_widget_to_vertical_scroll_widget_list(), back_callback(), convert_first_passwd_callback(), convert_second_passwd_callback(), create_horizontal_scrollbar(), create_tech_info(), create_vertical_scrollbar(), del_widget_from_vertical_scroll_widget_list(), del_widget_from_vertical_scroll_widget_list(), disable_city_dlg_widgets(), disable_economy_dlg(), disable_minimap_window_buttons(), disable_science_dialog(), disable_unitinfo_widgets(), disable_unitinfo_window_buttons(), down_scroll_widget_list(), economy_report_dialog_popup(), edit_worklist_callback(), enable_city_dlg_widgets(), enable_economy_dlg(), enable_science_dialog(), enable_unitinfo_widgets(), get_widget_pointer_from_id(), group_set_area(), hide_minimap_window_buttons(), hide_unitinfo_window_buttons(), horiz_taxrate_callback(), inside_scroll_down_loop(), move_group_to_front_of_gui_list(), move_widget_to_front_of_gui_list(), option_dialog_optset(), option_dialog_optset_category(), option_dialog_worklist(), popup_action_selection(), popup_advanced_terrain_dialog(), popup_bribe_stack_dialog(), popup_bribe_unit_dialog(), popup_change_research_dialog(), popup_change_research_goal_dialog(), popup_city_cma_dialog(), popup_connection_dialog(), popup_diplomatic_objects(), popup_find_dialog(), popup_goto_airlift_dialog(), popup_impr_info(), popup_incite_dialog(), popup_join_game_dialog(), popup_load_del_presets_dialog(), popup_new_user_passwd_dialog(), popup_notify_dialog(), popup_pillage_dialog(), popup_players_dialog(), popup_players_nations_dialog(), popup_races_dialog(), popup_sabotage_dialog(), popup_spaceship_dialog(), popup_tech_info(), popup_unit_info(), popup_user_passwd_dialog(), popup_worklist_editor(), real_activeunits_report_dialog_update(), real_city_report_dialog_update(), real_city_report_dialog_update_city(), real_city_report_update_city(), real_conn_list_dialog_update(), real_info_city_report_dialog_update(), real_players_dialog_update(), real_science_report_dialog_update(), real_units_report_dialog_update(), rebuild_imprm_list(), redraw_impr_info_dlg(), redraw_minimap_window_buttons(), redraw_tech_info_dlg(), redraw_tech_tree_dlg(), redraw_unit_info_dlg(), refresh_spaceship_dialog(), remove_clause_widget_from_list(), report_scroll_mouse_motion_handler(), save_cma_callback(), set_cma_hscrollbars(), set_new_minimap_window_pos(), set_new_unitinfo_window_pos(), show_main_page(), show_minimap_window_buttons(), show_tech_tree_callback(), show_unitinfo_window_buttons(), spy_steal_popup_shared(), 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_full_tree_mode_in_help_dlg_callback(), toggle_map_window_callback(), toggle_unit_info_window_callback(), unit_select_dialog_popup(), units_orders_city_dlg_callback(), update_acceptance_icons(), update_city_cma_dialog(), update_clauses_list(), update_goto_dialog(), update_intel_dialog(), and vertical_scroll_widget_list().

◆ [union] [1/2]

union { ... } widget::private_data

◆ [union] [2/2]

union { ... } widget::private_data

◆ ptr

void* widget::ptr

◆ redraw

int(* widget::redraw)(struct widget *pwidget)

◆ resize

void(* widget::resize)(struct widget *pwidget, int w, int h)

Definition at line 161 of file widget.h.

Referenced by widget_new(), and widget_resize().

◆ select

void(* widget::select)(struct widget *pwidget)

Definition at line 167 of file widget.h.

Referenced by create_window_skeleton(), widget_new(), and widget_selected_action().

◆ set_area

void(* widget::set_area)(struct widget *pwidget, SDL_Rect area)

Definition at line 159 of file widget.h.

Referenced by widget_new(), and widget_set_area().

◆ set_position

void(* widget::set_position)(struct widget *pwidget, int x, int y)

Definition at line 160 of file widget.h.

Referenced by create_window_skeleton(), widget_new(), and widget_set_position().

◆ size

SDL_Rect widget::size

Definition at line 145 of file widget.h.

Referenced by add_new_worklist_callback(), add_to_chat_list(), add_widget_to_vertical_scroll_widget_list(), add_widget_to_vertical_scroll_widget_list(), arrange_widgets(), change_nation_label(), combo_new(), combo_popup(), combo_redraw(), create_checkbox(), create_edit(), create_horizontal_scrollbar(), create_icon_button(), create_tech_info(), create_tech_tree(), create_themelabel(), create_themelabel2(), create_vertical_scrollbar(), create_window_skeleton(), del_widget_from_vertical_scroll_widget_list(), del_widget_from_vertical_scroll_widget_list(), draw_edit(), draw_horiz(), draw_icon(), draw_label(), economy_report_dialog_popup(), edit_worklist_callback(), factor_horiz_cma_callback(), find_next_widget_at_pos(), get_position(), horiz_taxrate_callback(), inside_scroll_down_loop(), inside_scroll_up_loop(), meswin_dialog_popup(), min_horiz_cma_callback(), nation_button_callback(), notify_goto_dialog_update(), option_dialog_new(), option_dialog_optset(), option_dialog_worklist(), popup_action_selection(), popup_advanced_terrain_dialog(), popup_bribe_stack_dialog(), popup_bribe_unit_dialog(), popup_change_research_dialog(), popup_change_research_goal_dialog(), popup_city_cma_dialog(), popup_conn_list_dialog(), popup_connection_dialog(), popup_find_dialog(), popup_goto_airlift_dialog(), popup_government_dialog(), popup_hurry_production_dialog(), popup_image(), popup_impr_info(), popup_incite_dialog(), popup_input_line(), popup_join_game_dialog(), popup_load_del_presets_dialog(), popup_load_game_dialog(), popup_minimap_window(), popup_new_user_passwd_dialog(), popup_newcity_dialog(), popup_notify_dialog(), popup_pillage_dialog(), popup_players_dialog(), popup_players_nations_dialog(), popup_races_dialog(), popup_sabotage_dialog(), popup_sell_impr_callback(), popup_spaceship_dialog(), popup_tech_info(), popup_terrain_info_dialog(), popup_unit_info(), popup_unitinfo_window(), popup_upgrade_unit_callback(), popup_user_passwd_dialog(), real_activeunits_report_dialog_update(), real_city_dialog_popup(), real_info_city_report_dialog_update(), real_meswin_dialog_update(), real_resize_window_callback(), rebuild_imprm_list(), redraw_checkbox(), redraw_city_dialog(), redraw_horiz(), redraw_icon(), redraw_icon2(), redraw_iconlabel(), redraw_impr_info_dlg(), redraw_label(), redraw_tech_info_dlg(), redraw_tech_tree_dlg(), redraw_themelabel2(), redraw_unit_info_dlg(), redraw_unit_info_label(), redraw_widget_info_label(), redraw_window(), refresh_widget_background(), remake_label_size(), remove_clause_widget_from_list(), resize_window(), resource_map_city_dlg_callback(), save_cma_callback(), science_report_dialog_popup(), sell_imprvm_dlg_callback(), set_client_area(), set_new_minimap_window_pos(), set_new_unitinfo_window_pos(), setup_vertical_scrollbar_area(), setup_vertical_widgets_position(), show_game_page(), show_main_page(), spy_steal_popup_shared(), toggle_map_window_callback(), toggle_unit_info_window_callback(), units_orders_city_dlg_callback(), update_clauses_list(), update_goto_dialog(), update_intel_dialog(), vertic_scroll_widget_list(), vertical_scroll_widget_list(), widget_core_flush(), widget_core_mark_dirty(), widget_core_resize(), widget_core_set_position(), widget_core_undraw(), and window_set_position().

◆ small_dlg

struct small_dialog* widget::small_dlg

Definition at line 138 of file widget.h.

Referenced by popup_spaceship_dialog(), and space_dialog_window_callback().

◆ state_types_flags

Uint32 widget::state_types_flags

Definition at line 143 of file widget.h.

Referenced by get_wflags(), get_wstate(), get_wtype(), set_wstate(), and set_wtype().

◆ string_utf8

utf8_str * widget::string_utf8

◆ theme

SDL_Surface * widget::theme

◆ theme2

SDL_Surface * widget::theme2

◆ tile

struct tile* widget::tile

Definition at line 131 of file widget.h.

Referenced by newcity_cancel_callback(), newcity_ok_callback(), and popup_newcity_dialog().

◆ undraw

void(* widget::undraw)(struct widget *pwidget)

Definition at line 166 of file widget.h.

Referenced by widget_new(), and widget_undraw().

◆ unit

struct unit* widget::unit

◆ unselect

void(* widget::unselect)(struct widget *pwidget)

Definition at line 168 of file widget.h.

Referenced by create_window_skeleton(), unselect_widget_action(), and widget_new().

◆ vector

const struct strvec* widget::vector

◆ widget

struct widget* widget::widget