Project Alice
|
#include <gui_common_elements.hpp>
Inherits ui::simple_text_element_base.
Inherited by ui::diplomacy_war_exhaustion, ui::nation_brigade_allocation_text, ui::nation_budget_bank_text, ui::nation_budget_debt_text, ui::nation_budget_funds_text, ui::nation_budget_interest_text, ui::nation_can_do_political_reform_text, ui::nation_can_do_social_reform_text, ui::nation_colonial_power_text, ui::nation_consciousness_text, ui::nation_current_research_text, ui::nation_daily_research_points_text, ui::nation_diplomatic_points_text, ui::nation_focus_allocation_text, ui::nation_government_type_text, ui::nation_gp_investment_text, ui::nation_gp_opinion_text, ui::nation_industries_text, ui::nation_industry_rank_text, ui::nation_industry_score_text, ui::nation_infamy_text, ui::nation_leadership_points_text, ui::nation_literacy_text, ui::nation_militancy_text, ui::nation_military_rank_text, ui::nation_military_score_text, ui::nation_mobilization_size_text, ui::nation_national_value_text, ui::nation_navy_allocation_text, ui::nation_num_regiments, ui::nation_num_ships, ui::nation_player_investment_text, ui::nation_player_opinion_text, ui::nation_player_relations_text, ui::nation_plurality_text, ui::nation_population_per_pop_type_text, ui::nation_population_text, ui::nation_ppp_gdp_per_capita_text, ui::nation_ppp_gdp_text, ui::nation_prestige_rank_text, ui::nation_prestige_text, ui::nation_provinces_text, ui::nation_puppet_list_label, ui::nation_rank_text, ui::nation_research_points_text, ui::nation_revanchism_text, ui::nation_ruling_party_ideology_text, ui::nation_ruling_party_text, ui::nation_selected_issue_text, ui::nation_sol_text, ui::nation_sphere_list_label, ui::nation_status_text, ui::nation_total_score_text, and ui::topbar_at_peace_text.
Public Member Functions | |
virtual std::string | get_text (sys::state &state, dcon::nation_id nation_id) noexcept |
void | on_update (sys::state &state) noexcept override |
Public Member Functions inherited from ui::simple_text_element_base | |
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 () |
Additional Inherited Members | |
Public Attributes inherited from ui::simple_text_element_base | |
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 |
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 |
Protected Attributes inherited from ui::simple_text_element_base | |
std::string | cached_text |
text::layout | internal_layout |
Definition at line 447 of file gui_common_elements.hpp.
|
inlinevirtualnoexcept |
Reimplemented in ui::nation_gp_opinion_text, ui::nation_player_investment_text, ui::nation_gp_investment_text, ui::nation_prestige_text, ui::nation_industry_score_text, ui::nation_military_score_text, ui::nation_total_score_text, ui::nation_ppp_gdp_text, ui::nation_ppp_gdp_per_capita_text, ui::nation_sol_text, ui::nation_prestige_rank_text, ui::nation_industry_rank_text, ui::nation_military_rank_text, ui::nation_rank_text, ui::nation_status_text, ui::nation_ruling_party_ideology_text, ui::nation_ruling_party_text, ui::nation_government_type_text, ui::nation_sphere_list_label, ui::nation_puppet_list_label, ui::nation_player_opinion_text, ui::nation_industries_text, ui::nation_provinces_text, ui::nation_player_relations_text, ui::nation_militancy_text, ui::nation_consciousness_text, ui::nation_colonial_power_text, ui::nation_budget_funds_text, ui::nation_budget_bank_text, ui::nation_budget_debt_text, ui::nation_budget_interest_text, ui::nation_literacy_text, ui::nation_infamy_text, ui::nation_population_text, ui::nation_current_research_text, ui::nation_daily_research_points_text, ui::nation_research_points_text, ui::nation_focus_allocation_text, ui::nation_diplomatic_points_text, ui::nation_mobilization_size_text, ui::nation_brigade_allocation_text, ui::nation_navy_allocation_text, ui::nation_num_regiments, ui::nation_num_ships, ui::nation_leadership_points_text, ui::nation_can_do_social_reform_text, ui::nation_can_do_political_reform_text, ui::nation_national_value_text, ui::nation_selected_issue_text, ui::nation_population_per_pop_type_text, ui::topbar_at_peace_text, ui::diplomacy_war_exhaustion, ui::nation_plurality_text, and ui::nation_revanchism_text.
Definition at line 449 of file gui_common_elements.hpp.
|
inlineoverridevirtualnoexcept |
Reimplemented from ui::element_base.
Reimplemented in ui::military_mob_size_text.
Definition at line 453 of file gui_common_elements.hpp.