Project Alice
Loading...
Searching...
No Matches
ui::button_element_base Class Reference

#include <gui_element_types.hpp>

Inherits ui::opaque_element_base.

Inherited by ui::generic_settable_element< button_element_base, diplomacy_action >, ui::generic_settable_element< button_element_base, ledger_page_number >, ui::generic_settable_element< button_element_base, dcon::pop_type_id >, ui::listbox_row_button_base< dcon::province_id >, table::entry< item_type >, table::sort_button< item_type >, ui::add_selected_units_to_army_group_button, ui::antialiasing_left, ui::antialiasing_right, ui::apply_template_to_army_location_button, ui::autosave_left, ui::autosave_right, ui::budget_repay_loan_button, ui::budget_take_loan_button, ui::build_unit_button< T >, ui::build_unit_close_button, ui::build_unit_province_cancel_all_units_button, ui::build_unit_province_close_button, ui::cancel_all_units_button, ui::cancel_pick_wg_button, ui::cancel_unit_construction_button< dcon::army_id >, ui::cancel_unit_construction_button< dcon::navy_id >, ui::chat_return_to_lobby_button, ui::checkbox_button, ui::close_application_button, ui::close_investments, ui::colony_invest_button, ui::color_blind_left, ui::color_blind_right, ui::commodity_filter_button, ui::continent_filter_button, ui::country_sort_button< Sort >, ui::country_sort_by_player_investment, ui::decision_ai_will_do, ui::decision_potential, ui::decision_requirements, ui::delete_army_group_button, ui::deselect_all_button, ui::diplomacy_action_add_to_sphere_button, ui::diplomacy_action_add_wargoal_button, ui::diplomacy_action_ally_button, ui::diplomacy_action_ban_embassy_button, ui::diplomacy_action_call_ally_button, ui::diplomacy_action_declare_war_button, ui::diplomacy_action_decrease_opinion_button, ui::diplomacy_action_decrease_relations_button, ui::diplomacy_action_discredit_button, ui::diplomacy_action_expel_advisors_button, ui::diplomacy_action_give_military_access_button, ui::diplomacy_action_increase_opinion_button, ui::diplomacy_action_increase_relations_button, ui::diplomacy_action_justify_war_button, ui::diplomacy_action_military_access_button, ui::diplomacy_action_release_subject_button, ui::diplomacy_action_remove_from_sphere_button, ui::diplomacy_action_state_transfer_button, ui::diplomacy_action_war_subisides_button, ui::diplomacy_casus_belli_cancel_button, ui::diplomacy_country_select, ui::diplomacy_crisis_peace_select_button, ui::diplomacy_declare_war_agree_button, ui::diplomacy_declare_war_call_allies_checkbox, ui::diplomacy_join_war_button< B >, ui::diplomacy_make_cb_button, ui::diplomacy_peace_select_button, ui::diplomacy_peace_send, ui::diplomacy_peace_tab_button< is_concession >, ui::diplomacy_request_lr_button< Left >, ui::diplomacy_request_reply_button< B >, ui::diplomatic_message_topbar_button, ui::disband_all_button, ui::enable_debt_toggle, ui::end_window_ledger_button, ui::event_auto_button, ui::event_option_button, ui::factory_build_button, ui::factory_cancel_new_const_button, ui::factory_cancel_upgrade_button, ui::factory_close_and_delete_button, ui::factory_count_sort, ui::factory_delete_button, ui::factory_deselect_all_button, ui::factory_infrastructure_sort, ui::factory_name_sort, ui::factory_priority_button, ui::factory_prod_close_all_button, ui::factory_prod_open_all_button, ui::factory_reopen_button, ui::factory_select_all_button, ui::factory_show_empty_states_button, ui::factory_subsidise_button, ui::factory_upgrade_button, ui::flag_button, ui::flag_button2, ui::gamma_left, ui::gamma_right, ui::gaussianblur_left, ui::gaussianblur_right, ui::generic_close_button, ui::go_to_base_game_button, ui::go_to_battleplanner_button, ui::go_to_battleplanner_selection_button, ui::gp_action_choice_accept_button, ui::join_crisis_button, ui::land_rally_point, ui::language_left, ui::language_right, ui::lc_close_button, ui::lc_goto_location_button, ui::lc_retreat_button, ui::leaders_sortby_army, ui::leaders_sortby_name, ui::leaders_sortby_prestige, ui::leaders_sortby_type, ui::ledger_generic_sort_button, ui::listbox_row_button_base< RowConT >, ui::macro_builder_apply_button, ui::macro_builder_new_template_button, ui::macro_builder_remove_template_button, ui::macro_builder_save_template_button, ui::macro_builder_set_main_template_button, ui::macro_builder_switch_type_button, ui::macro_builder_template_select, ui::make_decision, ui::make_offer_button, ui::map_label_left, ui::map_label_right, ui::map_state_select_button, ui::map_zoom_mode_left, ui::map_zoom_mode_right, ui::merge_all_button, ui::merge_rally_point, ui::message_dismiss_button, ui::message_filters_country_button, ui::message_lr_button< Left >, ui::message_preset_ai_only, ui::message_preset_reset, ui::mil_goto_background_button< T >, ui::military_units_sortby_name, ui::military_units_sortby_strength, ui::minimap_console_button, ui::minimap_goto_button, ui::minimap_ledger_button, ui::minimap_macro_builder_button, ui::minimap_menu_button, ui::minimap_msg_combat_button, ui::minimap_msg_diplo_button, ui::minimap_msg_event_button, ui::minimap_msg_other_button, ui::minimap_msg_province_button, ui::minimap_msg_settings_button, ui::minimap_msg_unit_button, ui::minimap_open_message_log_button, ui::minimap_zoom_in_button, ui::minimap_zoom_out_button, ui::mm_disabled_button, ui::movement_suppress_button, ui::movements_sort_order_button, ui::multi_selection_leader_image, ui::multiline_button_element_base, ui::music_player_left, ui::music_player_right, ui::nation_script_button, ui::national_focus_icon, ui::national_focus_remove_button, ui::naval_rally_point, ui::nc_close_button, ui::nc_goto_location_button, ui::nc_retreat_button, ui::new_army_group_button, ui::outliner_button, ui::outliner_element_button, ui::outliner_minmax_button, ui::owner_sort, ui::pick_nation_button, ui::playable_nations_sort_button< stype >, ui::player_ban_button, ui::player_kick_button, ui::politics_choose_party_button, ui::politics_hold_election, ui::politics_hold_election_button, ui::politics_issue_sort_button, ui::pop_details_promotion_percent_text, ui::pop_filter_select_button< B >, ui::pop_left_side_button< T >, ui::pop_left_side_expand_button, ui::pop_sort_button< Sort >, ui::pop_type_icon, ui::port_ex_bg< IsNear >, ui::primary_worker_sort, ui::production_build_new_factory, ui::production_investment_country_select, ui::production_project_invest_button, ui::projection_mode_left, ui::projection_mode_right, ui::propose_attacker_solution_button, ui::propose_defender_solution_button, ui::province_build_new_factory, ui::province_build_unit< T >, ui::province_building_expand_button< Value >, ui::province_immigrator_button, ui::province_invest_factory_button, ui::province_invest_railroad_button, ui::province_move_capital_button, ui::province_pop_button, ui::province_protectorate_button, ui::province_script_button, ui::province_selector_button, ui::province_send_diplomat_button, ui::province_withdraw_button, ui::quit_game_button, ui::reforms_reform_button, ui::release_agree_button, ui::release_nation_button, ui::release_play_as_button, ui::religion_type_icon, ui::remove_selected_units_from_army_group_button, ui::reorg_unit_transfer_button< T >, ui::reorg_win_close_button, ui::right_click_button_element_base, ui::save_and_quit_button, ui::save_button, ui::save_flag, ui::scrollbar_left, ui::scrollbar_right, ui::secondary_worker_sort, ui::select_army_group_button, ui::select_save_game, ui::set_leader_button, ui::show_pop_detail_button, ui::sort_leader_attack, ui::sort_leader_def, ui::sort_leader_exp, ui::sort_leader_morale, ui::sort_leader_org, ui::sort_leader_recon, ui::sort_leader_reliable, ui::sort_leader_speed, ui::standard_nation_button, ui::standard_state_instance_button, ui::start_game_button, ui::stockpile_buy_from_stockpile_hint, ui::stockpile_sell_button, ui::support_attacker_button, ui::support_defender_button, ui::switch_to_global_button, ui::switch_to_nation_button, ui::switch_to_trade_good_button, ui::technology_item_button, ui::technology_sort_by_name_button, ui::technology_sort_by_percent_button, ui::technology_sort_by_type_button, ui::technology_start_research, ui::tinted_button_element_base, ui::tl_frame_bg, ui::toggle_defend_order_button, ui::toggle_enforce_control_order_button, ui::toggle_ferry_origin_order_button, ui::topbar_pause_button, ui::topbar_rebels_icon, ui::topbar_speeddown_button, ui::topbar_speedup_button, ui::tr_frame_bg, ui::trade_confirm_trade_button, ui::trade_details_button, ui::trade_sort_button< Sort, Assoc >, ui::u_row_disband, ui::u_row_new, ui::u_row_remove, ui::u_row_split, ui::ui_scale_left, ui::ui_scale_right, ui::unciv_reforms_reform_button, ui::unit_build_button_group, ui::unit_details_dont_hunt_rebels, ui::unit_details_hunt_rebels, ui::unit_details_load_army_button, ui::unit_details_unload_army_button, ui::unit_details_unload_navy_button, ui::unit_folder_button, ui::unit_frame_bg, ui::unit_queue_button, ui::unit_reorg_balance_button, ui::unit_selection_change_leader_button< T >, ui::unit_selection_close_button, ui::unit_selection_disband_button< T >, ui::unit_selection_leader_image< T >, ui::unit_selection_new_unit_button< T >, ui::unit_selection_split_in_half_button< T >, ui::unit_selection_unit_location_button< T >, ui::unset_leader_button, ui::vassal_color_left, ui::vassal_color_right, ui::war_side_strength_text< IsAttacker >, ui::wargoal_cancel_button, ui::wargoal_cancel_country_select, ui::wargoal_country_item_button, ui::wargoal_offer_agree_button, ui::wargoal_target_country_item_button, and ui::whole_panel_button.

Collaboration diagram for ui::button_element_base:

Public Member Functions

 button_element_base ()
 
void set_button_text (sys::state &state, std::string const &new_text)
 
void on_reset_text (sys::state &state) noexcept override
 
virtual void button_action (sys::state &state) noexcept
 
virtual void button_right_action (sys::state &state) noexcept
 
virtual void button_shift_action (sys::state &state) noexcept
 
virtual void button_shift_right_action (sys::state &state) noexcept
 
virtual void button_ctrl_action (sys::state &state) noexcept
 
virtual void button_ctrl_right_action (sys::state &state) noexcept
 
virtual void button_ctrl_shift_action (sys::state &state) noexcept
 
virtual void button_ctrl_shift_right_action (sys::state &state) noexcept
 
virtual sound::audio_instanceget_click_sound (sys::state &state) noexcept
 
message_result on_lbutton_down (sys::state &state, int32_t x, int32_t y, sys::key_modifiers mods) noexcept override
 
message_result on_rbutton_down (sys::state &state, int32_t x, int32_t y, sys::key_modifiers mods) noexcept override
 
message_result on_lbutton_up (sys::state &state, int32_t x, int32_t y, sys::key_modifiers mods, bool under_mouse) noexcept override
 
message_result on_key_down (sys::state &state, sys::virtual_key key, sys::key_modifiers mods) noexcept final
 
void on_create (sys::state &state) noexcept override
 
void render (sys::state &state, int32_t x, int32_t y) noexcept override
 
void format_text (sys::state &state)
 
- Public Member Functions inherited from ui::opaque_element_base
message_result test_mouse (sys::state &state, int32_t x, int32_t y, mouse_probe_type type) noexcept override
 
message_result on_lbutton_down (sys::state &state, int32_t x, int32_t y, sys::key_modifiers mods) noexcept override
 
message_result on_rbutton_down (sys::state &state, int32_t x, int32_t y, sys::key_modifiers mods) noexcept override
 
tooltip_behavior has_tooltip (sys::state &state) noexcept override
 
- Public Member Functions inherited from ui::image_element_base
void render (sys::state &state, int32_t x, int32_t y) noexcept override
 
void on_create (sys::state &state) noexcept override
 
virtual bool get_horizontal_flip (sys::state &state) noexcept
 
message_result test_mouse (sys::state &state, int32_t x, int32_t y, mouse_probe_type type) noexcept override
 
- Public Member Functions inherited from ui::element_base
bool is_visible () const
 
void set_visible (sys::state &state, bool vis)
 
 element_base ()
 
virtual mouse_probe impl_probe_mouse (sys::state &state, int32_t x, int32_t y, mouse_probe_type type) noexcept
 
virtual message_result impl_on_lbutton_down (sys::state &state, int32_t x, int32_t y, sys::key_modifiers mods) noexcept
 
virtual message_result impl_on_lbutton_up (sys::state &state, int32_t x, int32_t y, sys::key_modifiers mods, bool under_mouse) noexcept
 
virtual message_result impl_on_rbutton_down (sys::state &state, int32_t x, int32_t y, sys::key_modifiers mods) noexcept
 
virtual message_result impl_on_key_down (sys::state &state, sys::virtual_key key, sys::key_modifiers mods) noexcept
 
virtual message_result impl_on_scroll (sys::state &state, int32_t x, int32_t y, float amount, sys::key_modifiers mods) noexcept
 
virtual message_result impl_on_mouse_move (sys::state &state, int32_t x, int32_t y, sys::key_modifiers mods) noexcept
 
virtual void impl_on_update (sys::state &state) noexcept
 
message_result impl_get (sys::state &state, Cyto::Any &payload) noexcept
 
virtual message_result impl_set (sys::state &state, Cyto::Any &payload) noexcept
 
virtual void impl_render (sys::state &state, int32_t x, int32_t y) noexcept
 
virtual void impl_on_reset_text (sys::state &state) noexcept
 
virtual void impl_on_drag_finish (sys::state &state) noexcept
 
virtual tooltip_behavior has_tooltip (sys::state &state) noexcept
 
virtual void update_tooltip (sys::state &state, int32_t x, int32_t y, text::columnar_layout &contents) noexcept
 
virtual std::unique_ptr< element_baseremove_child (element_base *child) noexcept
 
virtual void move_child_to_front (element_base *child) noexcept
 
virtual void move_child_to_back (element_base *child) noexcept
 
virtual void add_child_to_front (std::unique_ptr< element_base > child) noexcept
 
virtual void add_child_to_back (std::unique_ptr< element_base > child) noexcept
 
virtual element_baseget_child_by_name (sys::state const &state, std::string_view name) noexcept
 
virtual element_baseget_child_by_index (sys::state const &state, int32_t index) noexcept
 
virtual ~element_base ()
 

Protected Attributes

text::layout internal_layout
 
std::string cached_text
 
bool black_text = true
 

Additional Inherited Members

- Public Attributes inherited from ui::image_element_base
int32_t frame = 0
 
bool disabled = false
 
bool interactable = false
 
- Public Attributes inherited from ui::element_base
element_data base_data
 
element_baseparent = nullptr
 
uint8_t flags = 0
 
- Static Public Attributes inherited from ui::element_base
static constexpr uint8_t is_invisible_mask = 0x01
 
- Protected Member Functions inherited from ui::element_base
virtual message_result test_mouse (sys::state &state, int32_t x, int32_t y, mouse_probe_type type) noexcept
 
virtual message_result on_lbutton_down (sys::state &state, int32_t x, int32_t y, sys::key_modifiers mods) noexcept
 
virtual message_result on_lbutton_up (sys::state &state, int32_t x, int32_t y, sys::key_modifiers mods, bool under_mouse) noexcept
 
virtual message_result on_rbutton_down (sys::state &state, int32_t x, int32_t y, sys::key_modifiers mods) noexcept
 
virtual message_result on_key_down (sys::state &state, sys::virtual_key key, sys::key_modifiers mods) noexcept
 
virtual message_result on_scroll (sys::state &state, int32_t x, int32_t y, float amount, sys::key_modifiers mods) noexcept
 
virtual message_result on_mouse_move (sys::state &state, int32_t x, int32_t y, sys::key_modifiers mods) noexcept
 
virtual message_result get (sys::state &state, Cyto::Any &payload) noexcept
 
virtual message_result set (sys::state &state, Cyto::Any &payload) noexcept
 
virtual void render (sys::state &state, int32_t x, int32_t y) noexcept
 
virtual void on_update (sys::state &state) noexcept
 
virtual void on_create (sys::state &state) noexcept
 
virtual void on_drag (sys::state &state, int32_t oldx, int32_t oldy, int32_t x, int32_t y, sys::key_modifiers mods) noexcept
 
virtual void on_text (sys::state &state, char32_t ch) noexcept
 
virtual void on_visible (sys::state &state) noexcept
 
virtual void on_hide (sys::state &state) noexcept
 
virtual void on_reset_text (sys::state &state) noexcept
 
virtual focus_result on_get_focus (sys::state &state) noexcept
 
virtual void on_lose_focus (sys::state &state) noexcept
 
virtual void on_drag_finish (sys::state &state) noexcept
 

Detailed Description

Definition at line 202 of file gui_element_types.hpp.

Constructor & Destructor Documentation

◆ button_element_base()

ui::button_element_base::button_element_base ( )
inline

Definition at line 209 of file gui_element_types.hpp.

Member Function Documentation

◆ button_action()

virtual void ui::button_element_base::button_action ( sys::state state)
inlinevirtualnoexcept

Reimplemented in ui::pop_movement_flag, ui::category_filter_button< category >, ui::continent_filter_button, ui::generic_tab_button< TabT >, ui::generic_opaque_checkbox_button< TabT >, ui::scrollbar_left, ui::scrollbar_right, ui::crisis_tab_button, ui::technology_folder_tab_sub_button, ui::player_kick_button, ui::player_ban_button, ui::chat_return_to_lobby_button, ui::country_sort_button< Sort >, ui::nation_overlord_flag, ui::national_focus_icon, ui::national_focus_remove_button, ui::province_colony_button, ui::diplomatic_message_topbar_button, ui::diplomatic_message_topbar_flag_button, ui::diplomacy_request_lr_button< Left >, ui::diplomacy_request_reply_button< B >, ui::generic_close_button, ui::province_script_button, ui::nation_script_button, ui::flag_button, ui::flag_button2, ui::end_right_flag, ui::end_left_flag, ui::end_window_ledger_button, ui::major_event_right_flag, ui::major_event_left_flag, ui::event_option_button, ui::event_auto_button, ui::lc_retreat_button, ui::unset_leader_button, ui::sort_leader_attack, ui::sort_leader_def, ui::sort_leader_org, ui::sort_leader_morale, ui::sort_leader_speed, ui::sort_leader_recon, ui::sort_leader_reliable, ui::sort_leader_exp, ui::set_leader_button, ui::ledger_generic_sort_button, ui::ledger_prev_button, ui::ledger_next_button, ui::nation_toggle_checkbox, ui::price_toggle_checkbox, ui::ui_scale_left, ui::ui_scale_right, ui::window_mode_checkbox, ui::projection_mode_left, ui::projection_mode_right, ui::fonts_mode_checkbox, ui::left_mouse_click_mode_checkbox, ui::autosave_left, ui::autosave_right, ui::language_left, ui::language_right, ui::map_zoom_mode_left, ui::map_zoom_mode_right, ui::map_mouse_edge_scrolling, ui::tooltip_mode_checkbox, ui::spoilers_checkbox, ui::wasd_for_map_movement_checkbox, ui::dm_popup_checkbox, ui::mute_on_focus_lost_checkbox, ui::fow_checkbox, ui::render_models_checkbox, ui::black_map_font_checkbox, ui::railroad_checkbox, ui::river_checkbox, ui::map_label_left, ui::map_label_right, ui::antialiasing_left, ui::antialiasing_right, ui::gaussianblur_left, ui::gaussianblur_right, ui::gamma_left, ui::gamma_right, ui::vassal_color_left, ui::vassal_color_right, ui::color_blind_left, ui::color_blind_right, ui::music_player_left, ui::music_player_right, ui::close_application_button, ui::save_button, ui::save_and_quit_button, ui::tl_frame_bg, ui::message_filters_country_button, ui::message_handling_buton< category >, ui::message_preset_reset, ui::message_preset_ai_only, ui::message_notify_rebels_defeat, ui::message_log_close_button, ui::message_log_filter_checkbox< Filter >, ui::message_lr_button< Left >, ui::message_dismiss_button, ui::minimap_mapmode_button, ui::minimap_goto_button, ui::minimap_ledger_button, ui::macro_builder_template_select, ui::macro_builder_unit_button, ui::macro_builder_new_template_button, ui::macro_builder_save_template_button, ui::macro_builder_remove_template_button, ui::macro_builder_set_main_template_button, ui::macro_builder_switch_type_button, ui::macro_builder_apply_button, ui::minimap_macro_builder_button, ui::minimap_console_button, ui::minimap_msg_settings_button, ui::minimap_menu_button, ui::minimap_open_message_log_button, ui::minimap_zoom_in_button, ui::minimap_zoom_out_button, ui::select_save_game, ui::save_flag, ui::pick_nation_button, ui::start_game_button, ui::quit_game_button, ui::nc_retreat_button, ui::outliner_element_button, ui::outliner_filter_checkbox< Filter >, ui::outliner_button, ui::land_rally_point, ui::naval_rally_point, ui::province_close_button, ui::province_pop_button, ui::province_national_focus_button, ui::province_move_capital_button, ui::province_send_diplomat_button, ui::province_building_expand_button< Value >, ui::province_selector_button, ui::province_immigrator_button, ui::province_invest_railroad_button, ui::province_invest_factory_button, ui::province_build_unit< T >, ui::province_protectorate_button, ui::province_withdraw_button, ui::colony_invest_button, ui::province_search_list_item, ui::map_state_select_button, ui::topbar_tab_button, ui::topbar_population_view_button, ui::topbar_pause_button, ui::topbar_speedup_button, ui::topbar_speeddown_button, ui::topbar_available_reforms_icon, ui::topbar_available_decisions_icon, ui::topbar_rebels_icon, ui::topbar_colony_icon, ui::unit_frame_bg, ui::unit_selection_close_button, ui::unit_selection_new_unit_button< T >, ui::unit_selection_split_in_half_button< T >, ui::unit_selection_disband_button< T >, ui::unit_selection_disband_too_small_button, ui::unit_selection_change_leader_button< T >, ui::unit_selection_leader_image< T >, ui::unit_selection_unit_location_button< T >, ui::unit_details_load_army_button, ui::unit_details_unload_army_button, ui::unit_details_unload_navy_button, ui::unit_details_hunt_rebels, ui::unit_details_dont_hunt_rebels, ui::unit_details_ai_controlled, ui::apply_template_to_army_location_button, ui::merge_all_button, ui::deselect_all_button, ui::disband_all_button, ui::whole_panel_button, ui::u_row_disband, ui::u_row_remove, ui::u_row_split, ui::u_row_new, ui::multi_selection_leader_image, ui::multi_unit_details_ai_controlled, ui::reorg_unit_transfer_button< T >, ui::unit_reorg_balance_button, ui::reorg_win_close_button, ui::make_offer_button, ui::join_crisis_button, ui::diplomacy_action_discredit_button, ui::diplomacy_action_expel_advisors_button, ui::diplomacy_action_ban_embassy_button, ui::diplomacy_action_decrease_opinion_button, ui::diplomacy_action_ally_button, ui::diplomacy_action_call_ally_button, ui::diplomacy_action_military_access_button, ui::diplomacy_action_give_military_access_button, ui::diplomacy_action_increase_relations_button, ui::diplomacy_action_decrease_relations_button, ui::diplomacy_action_war_subisides_button, ui::diplomacy_action_declare_war_button, ui::diplomacy_action_release_subject_button, ui::diplomacy_action_increase_opinion_button, ui::diplomacy_action_add_to_sphere_button, ui::diplomacy_action_remove_from_sphere_button, ui::diplomacy_action_justify_war_button, ui::diplomacy_action_dialog_agree_button, ui::select_gp_choice_button, ui::gp_action_choice_accept_button, ui::diplomacy_action_state_transfer_button, ui::diplomacy_peace_tab_button< is_concession >, ui::diplomacy_peace_select_button, ui::diplomacy_peace_send, ui::diplomacy_crisis_peace_select_button, ui::wargoal_cancel_button, ui::wargoal_type_item_button, ui::wargoal_country_item_button, ui::wargoal_cancel_country_select, ui::diplomacy_declare_war_agree_button, ui::diplomacy_declare_war_call_allies_checkbox, ui::cancel_pick_wg_button, ui::wargoal_offer_agree_button, ui::wargoal_target_country_item_button, ui::budget_take_loan_button, ui::budget_repay_loan_button, ui::enable_debt_toggle, ui::cb_wargoal_button, ui::diplomacy_make_cb_button, ui::diplomacy_country_select, ui::diplomacy_priority_button, ui::diplomacy_country_interested_in_alliance, ui::diplomacy_action_add_wargoal_button, ui::diplomacy_join_war_button< B >, ui::diplomacy_casus_belli_cancel_button, ui::diplomacy_sort_nation_gp_flag, ui::military_mob_button, ui::military_mobilized_is_ai_controlled, ui::politics_hold_election, ui::politics_choose_party_button, ui::politics_change_party_button, ui::politics_issue_sort_button, ui::pop_left_side_button< T >, ui::pop_left_side_expand_button, ui::pop_national_focus_button, ui::pop_filter_button, ui::pop_filter_select_button< B >, ui::pop_sort_button< Sort >, ui::factory_priority_button, ui::factory_upgrade_button, ui::factory_reopen_button, ui::factory_subsidise_button, ui::factory_delete_button, ui::factory_close_and_delete_button, ui::factory_cancel_new_const_button, ui::factory_cancel_upgrade_button, ui::province_build_new_factory, ui::production_build_new_factory, ui::production_national_focus_button, ui::technology_item_button, ui::technology_start_research, ui::technology_sort_by_type_button, ui::technology_sort_by_name_button, ui::technology_sort_by_percent_button, ui::trade_sort_button< Sort, Assoc >, ui::trade_commodity_entry_button, ui::trade_details_button, ui::trade_confirm_trade_button, ui::stockpile_sell_button, ui::stockpile_buy_from_stockpile_hint, ui::build_unit_close_button, ui::unit_build_button, ui::unit_build_button_group, ui::unit_queue_button, ui::cancel_all_units_button, ui::unit_folder_button, ui::build_unit_province_cancel_all_units_button, ui::build_unit_province_close_button, ui::military_make_leader_button< B >, ui::cancel_unit_construction_button< dcon::army_id >, ui::cancel_unit_construction_button< dcon::navy_id >, ui::mil_goto_background_button< T >, ui::build_unit_button< T >, ui::make_decision, ui::ignore_checkbox, ui::movements_sort_order_button, ui::movement_suppress_button, ui::reforms_reform_button, ui::release_play_as_button, ui::release_agree_button, ui::release_nation_button, ui::unciv_reforms_westernize_button, ui::unciv_reforms_reform_button, ui::factory_build_button, ui::factory_build_item_button, ui::commodity_filter_button, ui::factory_prod_subsidise_all_button, ui::factory_prod_unsubsidise_all_button, ui::factory_prod_open_all_button, ui::factory_prod_close_all_button, ui::factory_select_all_button, ui::factory_deselect_all_button, ui::factory_show_empty_states_button, ui::production_investment_country_select, ui::production_sort_nation_gp_flag, ui::production_sort_my_nation_flag, ui::production_project_invest_button, table::sort_button< item_type >, and table::entry< item_type >.

Definition at line 216 of file gui_element_types.hpp.

Here is the caller graph for this function:

◆ button_ctrl_action()

virtual void ui::button_element_base::button_ctrl_action ( sys::state state)
inlinevirtualnoexcept

Reimplemented in ui::factory_upgrade_button.

Definition at line 226 of file gui_element_types.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ button_ctrl_right_action()

virtual void ui::button_element_base::button_ctrl_right_action ( sys::state state)
inlinevirtualnoexcept

Reimplemented in ui::factory_upgrade_button.

Definition at line 229 of file gui_element_types.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ button_ctrl_shift_action()

virtual void ui::button_element_base::button_ctrl_shift_action ( sys::state state)
inlinevirtualnoexcept

Reimplemented in ui::factory_upgrade_button.

Definition at line 232 of file gui_element_types.hpp.

Here is the call graph for this function:

◆ button_ctrl_shift_right_action()

virtual void ui::button_element_base::button_ctrl_shift_right_action ( sys::state state)
inlinevirtualnoexcept

Reimplemented in ui::factory_upgrade_button.

Definition at line 235 of file gui_element_types.hpp.

Here is the call graph for this function:

◆ button_right_action()

◆ button_shift_action()

◆ button_shift_right_action()

virtual void ui::button_element_base::button_shift_right_action ( sys::state state)
inlinevirtualnoexcept

Reimplemented in ui::scrollbar_left, ui::scrollbar_right, ui::province_building_expand_button< Value >, ui::province_invest_railroad_button, ui::factory_upgrade_button, and ui::factory_build_button.

Definition at line 223 of file gui_element_types.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ format_text()

void ui::button_element_base::format_text ( sys::state state)

Definition at line 533 of file gui_element_types.cpp.

◆ get_click_sound()

◆ on_create()

void ui::button_element_base::on_create ( sys::state state)
overridevirtualnoexcept

Reimplemented from ui::image_element_base.

Reimplemented in ui::generic_opaque_checkbox_button< TabT >, ui::flag_button, ui::multiline_button_element_base, ui::end_right_flag, ui::end_left_flag, ui::major_event_right_flag, ui::major_event_left_flag, ui::lc_attacker_flag, ui::lc_defender_flag, ui::fow_checkbox, ui::mm_disabled_button, ui::tr_frame_bg, ui::message_filters_country_button, ui::message_lr_button< Left >, ui::message_flag_button, ui::macro_builder_apply_button, ui::select_save_game, ui::nc_attacker_flag, ui::nc_defender_flag, ui::merge_rally_point, ui::topbar_pause_button, ui::topbar_speedup_button, ui::topbar_speeddown_button, ui::apply_template_to_army_location_button, ui::diplomacy_action_discredit_button, ui::diplomacy_action_expel_advisors_button, ui::diplomacy_action_ban_embassy_button, ui::diplomacy_action_decrease_opinion_button, ui::diplomacy_action_call_ally_button, ui::diplomacy_action_increase_relations_button, ui::diplomacy_action_decrease_relations_button, ui::diplomacy_action_release_subject_button, ui::diplomacy_action_increase_opinion_button, ui::diplomacy_action_add_to_sphere_button, ui::diplomacy_action_remove_from_sphere_button, ui::diplomacy_action_justify_war_button, ui::diplomacy_action_dialog_agree_button, ui::diplomacy_action_dialog_decline_button, ui::gp_action_choice_cancel_button, ui::gp_action_choice_accept_button, ui::diplomacy_action_state_transfer_button, ui::diplomacy_join_war_button< B >, ui::pop_left_side_expand_button, ui::factory_reopen_button, ui::stockpile_buy_from_stockpile_hint, ui::military_make_leader_button< B >, ui::factory_prod_open_all_button, ui::factory_prod_close_all_button, and ui::production_project_invest_button.

Definition at line 553 of file gui_element_types.cpp.

Here is the caller graph for this function:

◆ on_key_down()

message_result ui::button_element_base::on_key_down ( sys::state state,
sys::virtual_key  key,
sys::key_modifiers  mods 
)
inlinefinalvirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 278 of file gui_element_types.hpp.

Here is the call graph for this function:

◆ on_lbutton_down()

message_result ui::button_element_base::on_lbutton_down ( sys::state state,
int32_t  x,
int32_t  y,
sys::key_modifiers  mods 
)
inlineoverridevirtualnoexcept

Reimplemented from ui::opaque_element_base.

Reimplemented in ui::left_mouse_click_mode_checkbox.

Definition at line 242 of file gui_element_types.hpp.

Here is the call graph for this function:

◆ on_lbutton_up()

message_result ui::button_element_base::on_lbutton_up ( sys::state state,
int32_t  x,
int32_t  y,
sys::key_modifiers  mods,
bool  under_mouse 
)
inlineoverridevirtualnoexcept

Reimplemented from ui::element_base.

Reimplemented in ui::left_mouse_click_mode_checkbox.

Definition at line 266 of file gui_element_types.hpp.

Here is the call graph for this function:

◆ on_rbutton_down()

message_result ui::button_element_base::on_rbutton_down ( sys::state state,
int32_t  x,
int32_t  y,
sys::key_modifiers  mods 
)
inlineoverridevirtualnoexcept

Reimplemented from ui::opaque_element_base.

Reimplemented in ui::right_click_button_element_base, and ui::tinted_right_click_button_element_base.

Definition at line 254 of file gui_element_types.hpp.

Here is the call graph for this function:

◆ on_reset_text()

void ui::button_element_base::on_reset_text ( sys::state state)
overridevirtualnoexcept

Reimplemented from ui::element_base.

Reimplemented in ui::multiline_button_element_base.

Definition at line 536 of file gui_element_types.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ render()

◆ set_button_text()

void ui::button_element_base::set_button_text ( sys::state state,
std::string const &  new_text 
)

Definition at line 521 of file gui_element_types.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ black_text

bool ui::button_element_base::black_text = true
protected

Definition at line 206 of file gui_element_types.hpp.

◆ cached_text

std::string ui::button_element_base::cached_text
protected

Definition at line 205 of file gui_element_types.hpp.

◆ internal_layout

text::layout ui::button_element_base::internal_layout
protected

Definition at line 204 of file gui_element_types.hpp.


The documentation for this class was generated from the following files: