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

#include <gui_element_types.hpp>

Inherits ui::element_base.

Inherited by ui::attacker_peace_goal, ui::cb_icon, ui::cb_wargoal_icon, ui::commodity_filter_enabled_image, ui::commodity_image, ui::commodity_price_trend, ui::commodity_stockpile_indicator, ui::decision_image, ui::defender_peace_goal, ui::event_image, ui::event_odds_icon, ui::event_requirements_icon, ui::factory_employment_image, ui::factory_income_image, ui::factory_input_icon, ui::factory_priority_image, ui::full_wg_icon, ui::gp_detail_banned, ui::gp_detail_discredited, ui::gp_info_background, ui::input_n_image, ui::justifying_cb_type_icon, ui::lc_attacker_leader_img, ui::lc_defending_leader_img, ui::lc_loss_image, ui::lc_modifier_icon, ui::lc_our_leader_img, ui::lc_static_icon< index >, ui::lc_their_leader_img, ui::lc_win_image, ui::leader_in_army_img< T >, ui::leader_portrait, ui::map_legend_gradient_image, ui::map_pv_bank, ui::map_pv_fort_dots, ui::map_pv_rail_dots, ui::map_pv_university, ui::national_modifier_icon, ui::nc_attacker_leader_img, ui::nc_defending_leader_img, ui::nc_loss_image, ui::nc_our_leader_img, ui::nc_their_leader_img, ui::nc_win_image, ui::opaque_element_base, ui::outliner_combat_icon, ui::outliner_header_bg, ui::outliner_land_rally, ui::outliner_moving_icon, ui::outliner_naval_rally, ui::passive_leader_image, ui::pop_details_icon, ui::port_level_bar, ui::port_sm_bg< IsNear >, ui::prov_map_br_overlay, ui::province_building_icon< Value >, ui::province_crime_icon, ui::province_flashpoint_indicator, ui::province_immigrator_image, ui::province_modifier_icon, ui::province_rgo, ui::province_selector_image, ui::rgo_icon, ui::select_gp_banned, ui::select_gp_discredited, ui::select_gp_selection_icon, ui::standard_nation_icon, ui::subunit_details_type_icon< T >, ui::technology_image, ui::technology_selected_invention_image, ui::tinted_image_element_base, ui::tl_dig_in, ui::tl_edge, ui::tl_status, ui::tl_unit_1, ui::tl_unit_2, ui::topbar_budget_warning, ui::topbar_commodity_xport_icon, ui::topbar_unemployment_icon, ui::tr_dig_in, ui::tr_edge, ui::tr_status, ui::u_row_art, ui::u_row_attrit_icon, ui::u_row_cav, ui::u_row_inf, ui::unit_dig_in_pips_image, ui::unit_experience_bar< T >, ui::unit_most_prevalent, ui::unit_second_most_prevalent, ui::unit_selection_attrition_icon< T >, ui::unit_status_image, ui::unit_type_row_image, ui::war_bg, ui::wargoal_icon, ui::wargoal_type_item_icon, and ui::wg_icon.

Collaboration diagram for ui::image_element_base:

Public Member Functions

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 ()
 

Public Attributes

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
 

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
 

Detailed Description

Definition at line 63 of file gui_element_types.hpp.

Member Function Documentation

◆ get_horizontal_flip()

virtual bool ui::image_element_base::get_horizontal_flip ( sys::state state)
inlinevirtualnoexcept

◆ on_create()

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

Reimplemented from ui::element_base.

Reimplemented in ui::generic_opaque_checkbox_button< TabT >, ui::partially_transparent_image, ui::vertical_progress_bar, ui::button_element_base, 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::lc_static_icon< index >, ui::leader_prestige_progress_bar< T >, ui::leader_prestige_progress_bar< dcon::leader_id >, ui::fow_checkbox, ui::mm_disabled_button, ui::prov_map_br_overlay, ui::tr_frame_bg, ui::tr_status, 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::province_building_progress< Value >, ui::topbar_pause_button, ui::topbar_speedup_button, ui::topbar_speeddown_button, ui::unit_experience_bar< T >, 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::standard_pop_progress_bar, ui::standard_pop_needs_progress_bar, 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 154 of file gui_element_types.cpp.

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

◆ render()

void ui::image_element_base::render ( sys::state state,
int32_t  x,
int32_t  y 
)
overridevirtualnoexcept

Reimplemented from ui::element_base.

Reimplemented in ui::tinted_image_element_base, ui::progress_bar, ui::button_element_base, ui::tinted_button_element_base, ui::checkbox_button, ui::flag_button, ui::flag_button2, 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::counter_ico, ui::port_level_bar, ui::tr_edge, ui::tr_dig_in, ui::tl_edge, ui::tl_dig_in, ui::tl_unit_1, ui::tl_unit_2, ui::tl_controller_flag, ui::map_pv_bank, ui::map_pv_university, ui::message_flag_button, ui::minimap_picture_window, ui::save_flag, ui::start_game_button, ui::nc_attacker_flag, ui::nc_defender_flag, ui::outliner_element_button, ui::outliner_land_rally, ui::outliner_naval_rally, ui::outliner_moving_icon, ui::outliner_combat_icon, ui::outliner_header_bg, ui::province_flashpoint_indicator, ui::province_controller_flag, ui::background_image, ui::topbar_speed_indicator, ui::topbar_budget_warning, ui::unit_dig_in_pips_image, ui::unit_most_prevalent, ui::unit_second_most_prevalent, ui::unit_controller_flag, ui::unit_selection_attrition_icon< T >, ui::unit_panel_dynamic_tinted_bg< T >, ui::unit_details_load_army_button, ui::unit_details_unload_army_button, ui::unit_details_hunt_rebels, ui::unit_details_dont_hunt_rebels, ui::multi_unit_details_ai_controlled, ui::diplomacy_crisis_sponsored_attacker_flag, ui::diplomacy_crisis_sponsored_defender_flag, ui::select_gp_selection_icon, ui::select_gp_banned, ui::select_gp_discredited, ui::diplomacy_declare_war_call_allies_checkbox, ui::gp_info_background, ui::gp_detail_banned, ui::gp_detail_discredited, ui::diplomacy_casus_belli_cancel_button, ui::pop_revolt_faction, ui::pop_movement_social, ui::pop_movement_political, ui::pop_movement_flag, ui::pop_filter_button, ui::factory_upgrade_button, ui::factory_close_and_delete_button, ui::factory_input_icon, ui::stockpile_sell_button, ui::stockpile_buy_from_stockpile_hint, ui::mil_goto_background_button< T >, and ui::input_n_image.

Definition at line 161 of file gui_element_types.cpp.

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

◆ test_mouse()

message_result ui::image_element_base::test_mouse ( sys::state state,
int32_t  x,
int32_t  y,
mouse_probe_type  type 
)
inlineoverridevirtualnoexcept

Member Data Documentation

◆ disabled

bool ui::image_element_base::disabled = false

Definition at line 66 of file gui_element_types.hpp.

◆ frame

int32_t ui::image_element_base::frame = 0

Definition at line 65 of file gui_element_types.hpp.

◆ interactable

bool ui::image_element_base::interactable = false

Definition at line 67 of file gui_element_types.hpp.


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