Project Alice
Loading...
Searching...
No Matches
ui::listbox_element_base< RowWinT, RowConT > Class Template Reference

#include <gui_element_types.hpp>

Inheritance diagram for ui::listbox_element_base< RowWinT, RowConT >:
Collaboration diagram for ui::listbox_element_base< RowWinT, RowConT >:

Public Member Functions

void update (sys::state &state)
 
message_result on_scroll (sys::state &state, int32_t x, int32_t y, float amount, sys::key_modifiers mods) noexcept override
 
void on_create (sys::state &state) noexcept override
 
void render (sys::state &state, int32_t x, int32_t y) noexcept override
 
void scroll_to_bottom (sys::state &state)
 
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::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_baseremove_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_baseget_child_by_name (sys::state const &state, std::string_view name) noexcept final
 
element_baseget_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 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

standard_listbox_scrollbar< RowWinT, RowConT > * list_scrollbar = nullptr
 
std::vector< RowConT > row_contents {}
 
- 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_baseparent = nullptr
 
uint8_t flags = 0
 

Protected Member Functions

virtual std::string_view get_row_element_name ()
 
virtual bool is_reversed ()
 
- 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

std::vector< RowWinT * > row_windows {}
 

Additional Inherited Members

- Static Public Attributes inherited from ui::element_base
static constexpr uint8_t is_invisible_mask = 0x01
 

Detailed Description

template<class RowWinT, class RowConT>
class ui::listbox_element_base< RowWinT, RowConT >

Definition at line 1000 of file gui_element_types.hpp.

Member Function Documentation

◆ get_row_element_name()

template<class RowWinT , class RowConT >
virtual std::string_view ui::listbox_element_base< RowWinT, RowConT >::get_row_element_name ( )
inlineprotectedvirtual

Reimplemented in ui::chat_message_listbox< ShowFull >, ui::chat_message_listbox< true >, ui::chat_player_listbox, ui::election_voter_issues_listbox, ui::election_parties_listbox, ui::election_popularity_listbox, ui::elections_issue_option_listbox, ui::national_event_listbox, ui::provincial_event_listbox, ui::national_election_event_listbox, ui::leader_select_listbox, ui::ledger_nation_ranking_listbox, ui::ledger_nation_comparison_listbox, ui::ledger_nation_political_systems_listbox, ui::ledger_nation_political_reforms_listbox, ui::ledger_nation_social_reforms_listbox, ui::ledger_nation_population_listbox, ui::ledger_province_listbox, ui::ledger_province_population_listbox, ui::ledger_provinces_production_listbox, ui::ledger_factories_production_listbox, ui::ledger_commodity_price_listbox, ui::ledger_nations_listbox, ui::message_filters_country_listbox, ui::message_settings_listbox, ui::message_log_listbox, ui::macro_builder_template_listbox, ui::macro_builder_unit_listbox, ui::saves_listbox, ui::playable_nations_lb, ui::nation_picker_multiplayer_listbox, ui::colonist_listbox, ui::province_search_list, ui::map_state_select_listbox, ui::unit_grid_lb, ui::unit_details_army_listbox, ui::unit_details_navy_listbox, ui::selected_unit_list, ui::selected_army_group_land_units_list, ui::selected_army_group_sea_units_list, ui::army_groups_list, ui::reorg_unit_listbox_left< T, T2 >, ui::reorg_unit_listbox_right< T, T2 >, ui::diplomacy_peace_goal_listbox, ui::diplomacy_crisis_peace_goal_listbox, ui::wargoal_type_listbox, ui::wargoal_country_listbox, ui::wargoal_offer_type_listbox, ui::wargoal_target_country_listbox, ui::wargoal_offer_country_listbox, ui::debt_listbox, ui::diplomacy_make_cb_listbox, ui::diplomacy_country_listbox, ui::diplomacy_casus_belli_listbox, ui::diplomacy_war_listbox, ui::politics_upper_house_listbox, ui::politics_party_issues_listbox, ui::politics_all_party_listbox, ui::politics_issue_support_listbox, ui::pop_left_side_listbox, ui::pop_distribution_listbox< T >, ui::pop_detailed_issue_distribution_listbox, ui::pop_detailed_ideology_distribution_listbox, ui::pop_details_needs_listbox, ui::pop_listbox, ui::production_state_invest_listbox, ui::production_state_listbox, ui::technology_possible_invention_listbox, ui::technology_selected_inventions_listbox, ui::trade_market_activity_listbox, ui::trade_stockpile_listbox, ui::trade_common_market_listbox, ui::trade_government_needs_listbox, ui::trade_factory_needs_listbox, ui::trade_pop_needs_listbox, ui::trade_flow_listbox_base, ui::units_build_listbox, ui::units_queue_listbox, ui::units_province_build_listbox, ui::units_province_queue_listbox, ui::military_leaders_listbox, ui::military_units_listbox< T >, ui::decision_listbox, ui::movements_list, ui::movements_rebel_list, ui::reforms_listbox, ui::release_nation_listbox, ui::unciv_reforms_listbox, ui::factory_build_list, ui::production_country_listbox, and ui::production_project_listbox.

Definition at line 1004 of file gui_element_types.hpp.

◆ is_reversed()

template<class RowWinT , class RowConT >
virtual bool ui::listbox_element_base< RowWinT, RowConT >::is_reversed ( )
inlineprotectedvirtual

◆ on_create()

template<class RowWinT , class RowConT >
void ui::listbox_element_base< RowWinT, RowConT >::on_create ( sys::state state)
overridevirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 1748 of file gui_element_types.cpp.

Here is the caller graph for this function:

◆ on_scroll()

template<class RowWinT , class RowConT >
message_result ui::listbox_element_base< RowWinT, RowConT >::on_scroll ( sys::state state,
int32_t  x,
int32_t  y,
float  amount,
sys::key_modifiers  mods 
)
overridevirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 1594 of file gui_element_types.cpp.

◆ render()

template<class RowWinT , class RowConT >
void ui::listbox_element_base< RowWinT, RowConT >::render ( sys::state state,
int32_t  x,
int32_t  y 
)
overridevirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 1769 of file gui_element_types.cpp.

Here is the call graph for this function:

◆ scroll_to_bottom()

template<class RowWinT , class RowConT >
void ui::listbox_element_base< RowWinT, RowConT >::scroll_to_bottom ( sys::state state)

Definition at line 1606 of file gui_element_types.cpp.

Here is the caller graph for this function:

◆ test_mouse()

template<class RowWinT , class RowConT >
message_result ui::listbox_element_base< RowWinT, RowConT >::test_mouse ( sys::state state,
int32_t  x,
int32_t  y,
mouse_probe_type  type 
)
inlineoverridevirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 1020 of file gui_element_types.hpp.

◆ update()

template<class RowWinT , class RowConT >
void ui::listbox_element_base< RowWinT, RowConT >::update ( sys::state state)

Definition at line 1534 of file gui_element_types.cpp.

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

Member Data Documentation

◆ list_scrollbar

template<class RowWinT , class RowConT >
standard_listbox_scrollbar<RowWinT, RowConT>* ui::listbox_element_base< RowWinT, RowConT >::list_scrollbar = nullptr

Definition at line 1012 of file gui_element_types.hpp.

◆ row_contents

template<class RowWinT , class RowConT >
std::vector<RowConT> ui::listbox_element_base< RowWinT, RowConT >::row_contents {}

Definition at line 1013 of file gui_element_types.hpp.

◆ row_windows

template<class RowWinT , class RowConT >
std::vector<RowWinT*> ui::listbox_element_base< RowWinT, RowConT >::row_windows {}
protected

Definition at line 1002 of file gui_element_types.hpp.


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