Project Alice
|
#include <gui_element_types.hpp>
Inherits ui::element_base.
Inherited by ui::generic_name_text< dcon::nation_id >, ui::generic_settable_element< simple_text_element_base, diplomacy_action >, ui::antialiasing_display, ui::army_group_location, ui::autosave_display, ui::budget_tariff_percentage_text, ui::cb_progress_text, ui::colonization_level_number, ui::color_blind_display, ui::color_text_element, ui::commodity_effective_price_text, ui::commodity_global_market_text, ui::commodity_market_increase_text, ui::commodity_national_player_stockpile_text, ui::commodity_player_availability_text, ui::commodity_player_domestic_market_text, ui::commodity_player_factory_needs_text, ui::commodity_player_government_needs_text, ui::commodity_player_pop_needs_text, ui::commodity_player_production_text, ui::commodity_player_real_demand_text, ui::commodity_player_stockpile_increase_text, ui::commodity_price_text, ui::commodity_primary_worker_amount, ui::commodity_secondary_worker_amount, ui::date_label, ui::debtor_amount, ui::debtor_name, ui::detail_domestic_production, ui::diplomacy_crisis_attacker_name, ui::diplomacy_crisis_defender_name, ui::diplomacy_crisis_peace_total_warscore, ui::diplomacy_crisis_peace_wargoal_score_text, ui::diplomacy_crisis_peace_wargoal_text, ui::diplomacy_crisis_status_text, ui::diplomacy_crisis_subtitle_text, ui::diplomacy_crisis_title_text, ui::diplomacy_declare_war_call_allies_text, ui::diplomacy_declare_war_title, ui::diplomacy_peace_total_warscore, ui::diplomacy_peace_wargoal_score_text, ui::diplomacy_peace_wargoal_text, ui::diplomacy_request_count_text, ui::diplomacy_request_title_text, ui::domestic_investment_estimated_text, ui::edit_box_element_base, ui::event_date_text, ui::event_population_amount_text, ui::event_state_name_text, ui::event_subtitle_text, ui::expanded_hitbox_text, ui::factory_build_cost_text, ui::factory_build_output_name_text, ui::factory_build_time_text, ui::factory_current_funds_text, ui::factory_income_text, ui::factory_level_text, ui::factory_output_name_text, ui::factory_produced_text, ui::factory_state_name_text, ui::factory_title, ui::factory_workers_text, ui::fixed_zero, ui::fps_counter_text_box, ui::gamma_display, ui::gaussianblur_display, ui::generic_name_text< T >, ui::generic_rebel_name_text, ui::gp_investment_text, ui::gp_tab_text, ui::great_power_influence_detail, ui::great_power_investment_detail, ui::great_power_opinion_detail, ui::ideology_with_explanation, ui::input_n_amout, ui::invention_chance_percent_text, ui::invention_name_text, ui::issue_option_text, ui::issue_with_explanation, ui::land_unit_under_construction_count, ui::language_display, ui::lbattle_name, ui::lc_attacker_org_txt, ui::lc_attacker_str_txt, ui::lc_attacking_leader_name, ui::lc_defender_org_txt, ui::lc_defender_str_txt, ui::lc_defending_leader_name, ui::lc_modifier_value, ui::lc_o_initial_art, ui::lc_o_initial_cav, ui::lc_o_initial_inf, ui::lc_o_initial_total, ui::lc_o_loss_art, ui::lc_o_loss_cav, ui::lc_o_loss_inf, ui::lc_o_loss_total, ui::lc_o_rem_art, ui::lc_o_rem_cav, ui::lc_o_rem_inf, ui::lc_o_rem_total, ui::lc_our_leader_name, ui::lc_result_battle_name, ui::lc_t_initial_art, ui::lc_t_initial_cav, ui::lc_t_initial_inf, ui::lc_t_initial_total, ui::lc_t_loss_art, ui::lc_t_loss_cav, ui::lc_t_loss_inf, ui::lc_t_loss_total, ui::lc_t_rem_art, ui::lc_t_rem_cav, ui::lc_t_rem_inf, ui::lc_t_rem_total, ui::lc_their_leader_name, ui::macro_builder_template_name, ui::macro_builder_unit_name, ui::main_template_composition_label, ui::make_cb_title, ui::map_label_display, ui::map_legend_gradient_max, ui::map_legend_gradient_min, ui::map_legend_title, ui::map_state_select_title, ui::map_zoom_mode_display, ui::message_count_text, ui::message_type_name, ui::military_admiral_count, ui::military_armies_construction_text, ui::military_armies_text, ui::military_general_count, ui::military_mob_impact_text, ui::military_mob_progress_bar_text, ui::military_navies_construction_text, ui::military_navies_text, ui::military_unit_name_text< T >, ui::movement_issue_name_text, ui::multiplayer_status_text, ui::music_player_display, ui::nation_accepted_cultures, ui::nation_administrative_efficiency_text, ui::nation_diplomatic_balance_text, ui::nation_gold_income_text, ui::nation_ideology_percentage_text, ui::nation_loan_spending_text, ui::nation_primary_culture, ui::nation_status_diplomacy_window< T >, ui::nation_subsidy_spending_text, ui::national_factory_count, ui::national_identity_vassal_type_text, ui::national_invention_count, ui::national_province_count, ui::national_regiment_count, ui::national_ship_count, ui::national_tech_count, ui::national_tech_school, ui::national_treasury_text, ui::naval_unit_under_construction_count, ui::navy_transport_text, ui::nbattle_name, ui::nc_attacker_bs_txt, ui::nc_attacker_org_txt, ui::nc_attacker_ss_txt, ui::nc_attacker_str_txt, ui::nc_attacker_ts_txt, ui::nc_attacking_leader_name, ui::nc_defender_bs_txt, ui::nc_defender_org_txt, ui::nc_defender_ss_txt, ui::nc_defender_str_txt, ui::nc_defender_ts_txt, ui::nc_defending_leader_name, ui::nc_o_initial_bs, ui::nc_o_initial_ss, ui::nc_o_initial_total, ui::nc_o_initial_ts, ui::nc_o_loss_bs, ui::nc_o_loss_ss, ui::nc_o_loss_total, ui::nc_o_loss_ts, ui::nc_o_rem_bs, ui::nc_o_rem_ss, ui::nc_o_rem_total, ui::nc_o_rem_ts, ui::nc_our_leader_name, ui::nc_result_battle_name, ui::nc_t_initial_bs, ui::nc_t_initial_ss, ui::nc_t_initial_total, ui::nc_t_initial_ts, ui::nc_t_loss_bs, ui::nc_t_loss_ss, ui::nc_t_loss_total, ui::nc_t_loss_ts, ui::nc_t_rem_bs, ui::nc_t_rem_ss, ui::nc_t_rem_total, ui::nc_t_rem_ts, ui::nc_their_leader_name, ui::needed_workers_count_text, ui::number_of_players_text, ui::outliner_header_text, ui::output_amount_text, ui::overseas_maintenance_estimated_text, ui::passive_leader_name, ui::per_state_capitalist_amount, ui::per_state_primary_worker_amount, ui::per_state_secondary_worker_amount, ui::player_name_text, ui::politics_release_nation_window_title, ui::pop_cash_reserve_text, ui::pop_con_text, ui::pop_culture_text, ui::pop_details_colonial_migration_label, ui::pop_details_colonial_migration_value, ui::pop_details_demotion_value, ui::pop_details_emigration_label, ui::pop_details_emigration_value, ui::pop_details_migration_label, ui::pop_details_migration_value, ui::pop_details_promotion_label, ui::pop_details_promotion_value, ui::pop_literacy_text, ui::pop_location_text, ui::pop_militancy_text, ui::pop_size_text, ui::price_chart_high, ui::price_chart_low, ui::project_investment_current_funds, ui::project_investment_header, ui::projection_mode_display, ui::province_army_progress_text, ui::province_army_size_text, ui::province_consciousness_text, ui::province_crime_fighting_text, ui::province_crime_name_text, ui::province_dominant_culture_text, ui::province_dominant_ideology_text, ui::province_dominant_issue_text, ui::province_dominant_religion_text, ui::province_goods_produced_text, ui::province_income_text, ui::province_literacy_text, ui::province_migration_text, ui::province_militancy_text, ui::province_navy_progress_text, ui::province_pop_growth_text, ui::province_population_per_pop_type_text, ui::province_population_text, ui::province_rebel_percent_text, ui::province_rgo_employment_percent_text, ui::province_rgo_name_text, ui::province_rgo_size_text, ui::province_rgo_workers_text, ui::province_state_name_text, ui::province_supply_limit_text, ui::rebel_faction_name_text, ui::save_date, ui::save_name, ui::select_gp_influence_detail, ui::select_gp_name, ui::select_gp_opinion_detail, ui::simple_body_text, ui::standard_movement_text, ui::standard_nation_issue_option_text, ui::standard_nation_text, ui::standard_rebel_faction_text, ui::state_admin_efficiency_text, ui::state_aristocrat_presence_text, ui::state_factory_count_text, ui::state_infrastructure, ui::state_name_text, ui::state_population_text, ui::statswin_armyorg, ui::statswin_combatwidth, ui::statswin_digincap, ui::statswin_navyorg, ui::statswin_orgregain, ui::statswin_recruittime, ui::statswin_supplyconsumption, ui::statswin_tactics, ui::statswin_unitexperience, ui::statswin_warexhaustion, ui::stockpile_amount_label, ui::stockpile_sell_label, ui::stockpile_slider_label, ui::subunit_details_name< T >, ui::subunit_details_regiment_amount, ui::subunit_details_ship_amount, ui::subunit_details_type_text< T >, ui::technology_name_text, ui::technology_num_discovered_text, ui::technology_research_points_text, ui::technology_research_progress_category_text, ui::technology_year_text, ui::tl_strength, ui::topbar_date_text, ui::topbar_nation_prestige_text, ui::total_peace_cost, ui::tr_strength, ui::trade_flow_total_produced_text, ui::trade_flow_total_used_text, ui::trade_slider_amount, ui::u_row_art_count, ui::u_row_cav_count, ui::u_row_inf_count, ui::u_row_location, ui::u_row_strength, ui::ui_scale_display, ui::unit_selection_attrition_amount< T >, ui::unit_selection_leader_name< T >, ui::unit_selection_total_str_text< T >, ui::unit_selection_unit_location_text< T >, ui::unit_selection_unit_name_text< T >, ui::unit_type_row_amount, ui::unit_type_row_label, ui::units_selected_text, ui::vassal_color_display, ui::war_name_text, ui::war_score_text, and ui::wargoal_offer_title.
Public Member Functions | |
void | set_text (sys::state &state, std::string const &new_text) |
void | on_reset_text (sys::state &state) noexcept override |
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) |
std::string_view | get_text (sys::state &state) const |
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_base > | remove_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_base * | get_child_by_name (sys::state const &state, std::string_view name) noexcept |
virtual element_base * | get_child_by_index (sys::state const &state, int32_t index) noexcept |
virtual | ~element_base () |
Public Attributes | |
bool | black_text = true |
int32_t | data = 0 |
int32_t | casualties = 0 |
Public Attributes inherited from ui::element_base | |
element_data | base_data |
element_base * | parent = nullptr |
uint8_t | flags = 0 |
Protected Attributes | |
std::string | cached_text |
text::layout | internal_layout |
Additional Inherited Members | |
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 |
Definition at line 358 of file gui_element_types.hpp.
void ui::simple_text_element_base::format_text | ( | sys::state & | state | ) |
Definition at line 824 of file gui_element_types.cpp.
|
inline |
Definition at line 373 of file gui_element_types.hpp.
|
overridevirtualnoexcept |
Reimplemented from ui::element_base.
Reimplemented in ui::simple_body_text, ui::edit_box_element_base, ui::fps_counter_text_box, ui::message_count_text, ui::outliner_header_text, ui::outliner_entry_text, ui::topbar_nation_literacy_text, ui::topbar_nation_infamy_text, ui::topbar_nation_focus_allocation_text, ui::topbar_nation_militancy_text, ui::topbar_nation_consciousness_text, ui::topbar_nation_diplomatic_points_text, ui::topbar_nation_daily_research_points_text, ui::navy_transport_text, ui::diplomacy_crisis_peace_total_warscore, ui::wargoal_add_header, ui::fixed_zero, ui::wargoal_success_header, ui::wargoal_failure_header, ui::wargoal_offer_title, ui::budget_scaled_monetary_value_text, ui::gp_tab_text, ui::stockpile_slider_label, and ui::stockpile_amount_label.
Definition at line 877 of file gui_element_types.cpp.
|
overridevirtualnoexcept |
Reimplemented from ui::element_base.
Reimplemented in ui::simple_body_text, and ui::edit_box_element_base.
Definition at line 846 of file gui_element_types.cpp.
|
overridevirtualnoexcept |
Reimplemented from ui::element_base.
Reimplemented in ui::color_text_element, ui::simple_body_text, ui::edit_box_element_base, ui::fps_counter_text_box, ui::port_ship_count< IsNear >, ui::tl_attacker_casualties, ui::tl_defender_casualties, ui::multiplayer_status_text, ui::diplomacy_declare_war_call_allies_text, ui::stockpile_slider_label, and ui::gp_investment_text.
Definition at line 880 of file gui_element_types.cpp.
void ui::simple_text_element_base::set_text | ( | sys::state & | state, |
std::string const & | new_text | ||
) |
|
inlineoverridevirtualnoexcept |
Reimplemented from ui::element_base.
Reimplemented in ui::edit_box_element_base, and ui::event_province_text.
Definition at line 377 of file gui_element_types.hpp.
bool ui::simple_text_element_base::black_text = true |
Definition at line 363 of file gui_element_types.hpp.
|
protected |
Definition at line 360 of file gui_element_types.hpp.
int32_t ui::simple_text_element_base::casualties = 0 |
Definition at line 365 of file gui_element_types.hpp.
int32_t ui::simple_text_element_base::data = 0 |
Definition at line 364 of file gui_element_types.hpp.
|
protected |
Definition at line 361 of file gui_element_types.hpp.