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

#include <gui_build_unit_large_window.hpp>

Inheritance diagram for ui::units_build_item:
Collaboration diagram for ui::units_build_item:

Public Member Functions

void on_create (sys::state &state) noexcept override
 
std::unique_ptr< element_basemake_child (sys::state &state, std::string_view name, dcon::gui_def_id id) noexcept override
 
void on_update (sys::state &state) noexcept override
 
message_result get (sys::state &state, Cyto::Any &payload) noexcept override
 
- Public Member Functions inherited from ui::listbox_row_element_base< buildable_unit_entry_info >
message_result get (sys::state &state, Cyto::Any &payload) noexcept override
 
- Public Member Functions inherited from ui::window_element_base
virtual std::unique_ptr< element_basemake_child (sys::state &state, std::string_view name, dcon::gui_def_id id) noexcept
 
void on_create (sys::state &state) noexcept override
 
void on_drag (sys::state &state, int32_t oldx, int32_t oldy, int32_t x, int32_t y, sys::key_modifiers mods) noexcept override
 
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

ui::unit_build_buttonbuild_button = nullptr
 
ui::simple_text_element_baseunit_name = nullptr
 
ui::image_element_baseunit_icon = nullptr
 
ui::simple_text_element_basebuild_time = nullptr
 
ui::simple_text_element_basepop_size = nullptr
 
ui::simple_text_element_basebrigades = nullptr
 
ui::unit_build_button_groupbuild_button_group = nullptr
 
ui::simple_text_element_baseprovince = nullptr
 
std::vector< resource_cost * > resource_cost_elements
 
std::string pop_size_text
 
- 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
 

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
 
- Protected Attributes inherited from ui::listbox_row_element_base< buildable_unit_entry_info >
buildable_unit_entry_info content
 

Detailed Description

Definition at line 362 of file gui_build_unit_large_window.hpp.

Member Function Documentation

◆ get()

message_result ui::units_build_item::get ( sys::state state,
Cyto::Any payload 
)
inlineoverridevirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 534 of file gui_build_unit_large_window.hpp.

Here is the call graph for this function:

◆ make_child()

std::unique_ptr< element_base > ui::units_build_item::make_child ( sys::state state,
std::string_view  name,
dcon::gui_def_id  id 
)
inlineoverridevirtualnoexcept

Reimplemented from ui::window_element_base.

Definition at line 385 of file gui_build_unit_large_window.hpp.

Here is the call graph for this function:

◆ on_create()

void ui::units_build_item::on_create ( sys::state state)
inlineoverridevirtualnoexcept

Reimplemented from ui::window_element_base.

Definition at line 376 of file gui_build_unit_large_window.hpp.

Here is the call graph for this function:

◆ on_update()

void ui::units_build_item::on_update ( sys::state state)
inlineoverridevirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 425 of file gui_build_unit_large_window.hpp.

Here is the call graph for this function:

Member Data Documentation

◆ brigades

ui::simple_text_element_base* ui::units_build_item::brigades = nullptr

Definition at line 369 of file gui_build_unit_large_window.hpp.

◆ build_button

ui::unit_build_button* ui::units_build_item::build_button = nullptr

Definition at line 364 of file gui_build_unit_large_window.hpp.

◆ build_button_group

ui::unit_build_button_group* ui::units_build_item::build_button_group = nullptr

Definition at line 370 of file gui_build_unit_large_window.hpp.

◆ build_time

ui::simple_text_element_base* ui::units_build_item::build_time = nullptr

Definition at line 367 of file gui_build_unit_large_window.hpp.

◆ pop_size

ui::simple_text_element_base* ui::units_build_item::pop_size = nullptr

Definition at line 368 of file gui_build_unit_large_window.hpp.

◆ pop_size_text

std::string ui::units_build_item::pop_size_text

Definition at line 374 of file gui_build_unit_large_window.hpp.

◆ province

ui::simple_text_element_base* ui::units_build_item::province = nullptr

Definition at line 371 of file gui_build_unit_large_window.hpp.

◆ resource_cost_elements

std::vector<resource_cost*> ui::units_build_item::resource_cost_elements

Definition at line 372 of file gui_build_unit_large_window.hpp.

◆ unit_icon

ui::image_element_base* ui::units_build_item::unit_icon = nullptr

Definition at line 366 of file gui_build_unit_large_window.hpp.

◆ unit_name

ui::simple_text_element_base* ui::units_build_item::unit_name = nullptr

Definition at line 365 of file gui_build_unit_large_window.hpp.


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