Project Alice
|
#include <gui_element_types.hpp>
Public Member Functions | |
virtual void | on_value_change (sys::state &state, int32_t v) noexcept |
void | update_raw_value (sys::state &state, int32_t v) |
void | update_scaled_value (sys::state &state, float v) |
float | scaled_value () const |
int32_t | raw_value () const |
void | change_settings (sys::state &state, mutable_scrollbar_settings const &settings_s) |
void | on_create (sys::state &state) noexcept override |
message_result | get (sys::state &state, Cyto::Any &payload) noexcept final |
Public Member Functions inherited from ui::container_base | |
mouse_probe | impl_probe_mouse (sys::state &state, int32_t x, int32_t y, mouse_probe_type type) noexcept override |
message_result | impl_on_key_down (sys::state &state, sys::virtual_key key, sys::key_modifiers mods) noexcept final |
void | impl_on_update (sys::state &state) noexcept override |
message_result | impl_set (sys::state &state, Cyto::Any &payload) noexcept final |
void | impl_render (sys::state &state, int32_t x, int32_t y) noexcept override |
void | impl_on_reset_text (sys::state &state) noexcept override |
std::unique_ptr< element_base > | remove_child (element_base *child) noexcept final |
void | move_child_to_front (element_base *child) noexcept final |
void | move_child_to_back (element_base *child) noexcept final |
void | add_child_to_front (std::unique_ptr< element_base > child) noexcept final |
void | add_child_to_back (std::unique_ptr< element_base > child) noexcept final |
element_base * | get_child_by_name (sys::state const &state, std::string_view name) noexcept final |
element_base * | get_child_by_index (sys::state const &state, int32_t index) noexcept final |
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 void * | get_by_name (sys::state &state, std::string_view name) 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 | tooltip_position (sys::state &state, int32_t x, int32_t y, int32_t &ident, urect &subrect) noexcept |
virtual void | update_tooltip (sys::state &state, int32_t x, int32_t y, text::columnar_layout &contents) noexcept |
virtual void | on_hover (sys::state &state) noexcept |
virtual void | on_hover_end (sys::state &state) 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 | |
image_element_base * | left_limit = nullptr |
image_element_base * | right_limit = nullptr |
int32_t | stored_value = 0 |
scrollbar_settings | settings |
scrollbar_track * | track = nullptr |
Public Attributes inherited from ui::container_base | |
std::vector< std::unique_ptr< element_base > > | children |
Public Attributes inherited from ui::element_base | |
element_data | base_data |
element_base * | parent = nullptr |
uint8_t | flags = 0 |
Protected Attributes | |
scrollbar_left * | left = nullptr |
scrollbar_right * | right = nullptr |
scrollbar_slider * | slider = nullptr |
Additional Inherited Members | |
Static Public Attributes inherited from ui::element_base | |
static constexpr uint8_t | is_invisible_mask = 0x01 |
static constexpr uint8_t | wants_update_when_hidden_mask = 0x02 |
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 898 of file gui_element_types.hpp.
void ui::scrollbar::change_settings | ( | sys::state & | state, |
mutable_scrollbar_settings const & | settings_s | ||
) |
|
finalvirtualnoexcept |
Reimplemented from ui::element_base.
Definition at line 2709 of file gui_element_types.cpp.
|
overridevirtualnoexcept |
Reimplemented from ui::element_base.
Reimplemented in ui::budget_slider< SliderTarget, SliderDisplayScaling, SliderUpdateType >, ui::budget_slider< budget_slider_target::admin, slider_scaling::quadratic, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::army_stock, slider_scaling::linear, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::construction_stock, slider_scaling::linear, slider_update_type::manual >, ui::budget_slider< budget_slider_target::education, slider_scaling::quadratic, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::middle_tax, slider_scaling::linear, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::military, slider_scaling::quadratic, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::navy_stock, slider_scaling::linear, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::poor_tax, slider_scaling::linear, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::rich_tax, slider_scaling::linear, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::social, slider_scaling::linear, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::tariffs, slider_scaling::linear, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::domestic_investment, slider_scaling::quadratic, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::overseas, slider_scaling::linear, slider_update_type::autoscalerupdate >, and ui::autoscaling_scrollbar.
Definition at line 2591 of file gui_element_types.cpp.
|
inlinevirtualnoexcept |
Reimplemented in ui::budget_slider< SliderTarget, SliderDisplayScaling, SliderUpdateType >, ui::budget_slider< budget_slider_target::admin, slider_scaling::quadratic, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::army_stock, slider_scaling::linear, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::construction_stock, slider_scaling::linear, slider_update_type::manual >, ui::budget_slider< budget_slider_target::education, slider_scaling::quadratic, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::middle_tax, slider_scaling::linear, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::military, slider_scaling::quadratic, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::navy_stock, slider_scaling::linear, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::poor_tax, slider_scaling::linear, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::rich_tax, slider_scaling::linear, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::social, slider_scaling::linear, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::tariffs, slider_scaling::linear, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::domestic_investment, slider_scaling::quadratic, slider_update_type::autoscalerupdate >, ui::budget_slider< budget_slider_target::overseas, slider_scaling::linear, slider_update_type::autoscalerupdate >, ui::trade_slider, ui::multiline_text_scrollbar, ui::standard_listbox_scrollbar< RowWinT, RowConT >, ui::standard_listbox_scrollbar< army_group_entry, dcon::automated_army_group_id >, ui::standard_listbox_scrollbar< event_option_button_row, int32_t >, ui::standard_listbox_scrollbar< chat_message_entry, chat_message >, ui::standard_listbox_scrollbar< chat_player_entry, dcon::nation_id >, ui::standard_listbox_scrollbar< colonist_entry, dcon::colonization_id >, ui::standard_listbox_scrollbar< debt_item, debt_item_data >, ui::standard_listbox_scrollbar< decision_item, dcon::decision_id >, ui::standard_listbox_scrollbar< diplo_actions_row_entry, int16_t >, ui::standard_listbox_scrollbar< diplomacy_casus_belli_entry, dcon::nation_id >, ui::standard_listbox_scrollbar< diplomacy_country_info, dcon::nation_id >, ui::standard_listbox_scrollbar< diplomacy_crisis_peace_goal_row, int32_t >, ui::standard_listbox_scrollbar< diplomacy_make_cb_type, dcon::cb_type_id >, ui::standard_listbox_scrollbar< diplomacy_peace_goal_row, dcon::wargoal_id >, ui::standard_listbox_scrollbar< diplomacy_war_info, dcon::war_id >, ui::standard_listbox_scrollbar< election_party_entry, dcon::political_party_id >, ui::standard_listbox_scrollbar< election_popularity_entry, dcon::political_party_id >, ui::standard_listbox_scrollbar< election_voter_issue_entry, dcon::issue_option_id >, ui::standard_listbox_scrollbar< election_issue_support_item, dcon::issue_option_id >, ui::standard_listbox_scrollbar< factory_build_item, dcon::factory_type_id >, ui::standard_listbox_scrollbar< leader_select_row, dcon::leader_id >, ui::standard_listbox_scrollbar< ledger_commodity_price_entry, dcon::commodity_id >, ui::standard_listbox_scrollbar< ledger_factories_production_entry, dcon::factory_id >, ui::standard_listbox_scrollbar< ledger_nation_comparison_entry, dcon::nation_id >, ui::standard_listbox_scrollbar< ledger_nation_reforms_entry< true >, dcon::nation_id >, ui::standard_listbox_scrollbar< ledger_nation_political_systems_entry, dcon::nation_id >, ui::standard_listbox_scrollbar< ledger_nation_population_entry, dcon::nation_id >, ui::standard_listbox_scrollbar< ledger_nation_ranking_entry, dcon::nation_id >, ui::standard_listbox_scrollbar< ledger_nation_reforms_entry< false >, dcon::nation_id >, ui::standard_listbox_scrollbar< ledger_nation_entry, dcon::nation_id >, ui::standard_listbox_scrollbar< ledger_province_entry, dcon::province_id >, ui::standard_listbox_scrollbar< ledger_province_population_entry, dcon::province_id >, ui::standard_listbox_scrollbar< ledger_provinces_production_entry, dcon::province_id >, ui::standard_listbox_scrollbar< map_state_select_entry, dcon::state_definition_id >, ui::standard_listbox_scrollbar< message_filters_country_item, dcon::nation_id >, ui::standard_listbox_scrollbar< message_log_entry, int32_t >, ui::standard_listbox_scrollbar< message_settings_item, int32_t >, ui::standard_listbox_scrollbar< military_leaders, dcon::leader_id >, ui::standard_listbox_scrollbar< military_unit_entry< T >, military_unit_info< T > >, ui::standard_listbox_scrollbar< movements_option, dcon::movement_id >, ui::standard_listbox_scrollbar< movements_rebel_option, dcon::rebel_faction_id >, ui::standard_listbox_scrollbar< nation_picker_multiplayer_entry, dcon::nation_id >, ui::standard_listbox_scrollbar< playable_nations_item, dcon::nation_id >, ui::standard_listbox_scrollbar< politics_all_party_entry, dcon::political_party_id >, ui::standard_listbox_scrollbar< politics_issue_support_item, dcon::issue_option_id >, ui::standard_listbox_scrollbar< politics_party_issue_entry, dcon::issue_option_id >, ui::standard_listbox_scrollbar< politics_upper_house_entry, dcon::ideology_id >, ui::standard_listbox_scrollbar< pop_detailed_ideology_distribution_item, std::pair< dcon::ideology_id, float > >, ui::standard_listbox_scrollbar< pop_detailed_issue_distribution_item, std::pair< dcon::issue_option_id, float > >, ui::standard_listbox_scrollbar< pop_details_needs_item, pop_details_needs_data >, ui::standard_listbox_scrollbar< pop_distribution_item< T >, std::pair< T, float > >, ui::standard_listbox_scrollbar< pop_left_side_item, pop_left_side_data >, ui::standard_listbox_scrollbar< pop_item, dcon::pop_id >, ui::standard_listbox_scrollbar< production_investment_country_info, dcon::nation_id >, ui::standard_listbox_scrollbar< production_project_info, production_project_data >, ui::standard_listbox_scrollbar< production_state_info, dcon::state_instance_id >, ui::standard_listbox_scrollbar< province_search_list_item, dcon::province_id >, ui::standard_listbox_scrollbar< reforms_option, dcon::issue_option_id >, ui::standard_listbox_scrollbar< release_nation_option, dcon::national_identity_id >, ui::standard_listbox_scrollbar< reorg_unit_listbox_row< T2 >, T2 >, ui::standard_listbox_scrollbar< save_game_item, std::shared_ptr< save_item > >, ui::standard_listbox_scrollbar< unit_type_row, army_group_unit_type_info_grid_row >, ui::standard_listbox_scrollbar< selected_unit_item, unit_var >, ui::standard_listbox_scrollbar< technology_possible_invention, dcon::invention_id >, ui::standard_listbox_scrollbar< technology_selected_invention, dcon::invention_id >, ui::standard_listbox_scrollbar< trade_flow_entry, trade_flow_data >, ui::standard_listbox_scrollbar< unciv_reforms_option, dcon::reform_option_id >, ui::standard_listbox_scrollbar< subunit_details_entry_regiment, dcon::regiment_id >, ui::standard_listbox_scrollbar< subunit_details_entry_ship, dcon::ship_id >, ui::standard_listbox_scrollbar< unit_grid_row, grid_row >, ui::standard_listbox_scrollbar< unit_type_listbox_entry, dcon::unit_type_id >, ui::standard_listbox_scrollbar< units_build_item, buildable_unit_entry_info >, ui::standard_listbox_scrollbar< units_queue_item, ui::queue_unit_entry_info >, ui::standard_listbox_scrollbar< wargoal_country_item, dcon::national_identity_id >, ui::standard_listbox_scrollbar< wargoal_type_item, dcon::cb_type_id >, ui::standard_listbox_scrollbar< wargoal_target_country_item, dcon::nation_id >, ui::listbox2_scrollbar, and table::body< item_type >::_scrollbar.
Definition at line 913 of file gui_element_types.hpp.
int32_t ui::scrollbar::raw_value | ( | ) | const |
float ui::scrollbar::scaled_value | ( | ) | const |
void ui::scrollbar::update_raw_value | ( | sys::state & | state, |
int32_t | v | ||
) |
void ui::scrollbar::update_scaled_value | ( | sys::state & | state, |
float | v | ||
) |
Definition at line 2529 of file gui_element_types.cpp.
|
protected |
Definition at line 901 of file gui_element_types.hpp.
image_element_base* ui::scrollbar::left_limit = nullptr |
Definition at line 906 of file gui_element_types.hpp.
|
protected |
Definition at line 902 of file gui_element_types.hpp.
image_element_base* ui::scrollbar::right_limit = nullptr |
Definition at line 907 of file gui_element_types.hpp.
scrollbar_settings ui::scrollbar::settings |
Definition at line 910 of file gui_element_types.hpp.
|
protected |
Definition at line 903 of file gui_element_types.hpp.
int32_t ui::scrollbar::stored_value = 0 |
Definition at line 908 of file gui_element_types.hpp.
scrollbar_track* ui::scrollbar::track = nullptr |
Definition at line 912 of file gui_element_types.hpp.