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

#include <gui_map_icons.hpp>

Inheritance diagram for ui::port_window:
Collaboration diagram for ui::port_window:

Public Member Functions

std::unique_ptr< element_basemake_child (sys::state &state, std::string_view name, dcon::gui_def_id id) noexcept override
 
void set_province (sys::state &state, dcon::province_id p)
 
void on_update (sys::state &state) noexcept override
 
void impl_render (sys::state &state, int32_t x, int32_t y) noexcept override
 
message_result get (sys::state &state, Cyto::Any &payload) noexcept override
 
mouse_probe impl_probe_mouse (sys::state &state, int32_t x, int32_t y, mouse_probe_type type) 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

bool visible = true
 
bool populated = false
 
float map_x = 0
 
float map_y = 0
 
dcon::province_id port_for
 
outline_color color = outline_color::gray
 
int32_t displayed_count = 0
 
- 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
 

Detailed Description

Definition at line 100 of file gui_map_icons.hpp.

Member Function Documentation

◆ get()

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

Reimplemented from ui::element_base.

Definition at line 246 of file gui_map_icons.hpp.

Here is the call graph for this function:

◆ impl_probe_mouse()

mouse_probe ui::port_window::impl_probe_mouse ( sys::state state,
int32_t  x,
int32_t  y,
mouse_probe_type  type 
)
inlineoverridevirtualnoexcept

Reimplemented from ui::container_base.

Definition at line 297 of file gui_map_icons.hpp.

Here is the call graph for this function:

◆ impl_render()

void ui::port_window::impl_render ( sys::state state,
int32_t  x,
int32_t  y 
)
inlineoverridevirtualnoexcept

Reimplemented from ui::container_base.

Definition at line 224 of file gui_map_icons.hpp.

Here is the call graph for this function:

◆ make_child()

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

Reimplemented from ui::window_element_base.

Definition at line 110 of file gui_map_icons.hpp.

◆ on_update()

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

Reimplemented from ui::element_base.

Definition at line 165 of file gui_map_icons.hpp.

Here is the call graph for this function:

◆ set_province()

void ui::port_window::set_province ( sys::state state,
dcon::province_id  p 
)
inline

Definition at line 152 of file gui_map_icons.hpp.

Member Data Documentation

◆ color

outline_color ui::port_window::color = outline_color::gray

Definition at line 107 of file gui_map_icons.hpp.

◆ displayed_count

int32_t ui::port_window::displayed_count = 0

Definition at line 108 of file gui_map_icons.hpp.

◆ map_x

float ui::port_window::map_x = 0

Definition at line 104 of file gui_map_icons.hpp.

◆ map_y

float ui::port_window::map_y = 0

Definition at line 105 of file gui_map_icons.hpp.

◆ populated

bool ui::port_window::populated = false

Definition at line 103 of file gui_map_icons.hpp.

◆ port_for

dcon::province_id ui::port_window::port_for

Definition at line 106 of file gui_map_icons.hpp.

◆ visible

bool ui::port_window::visible = true

Definition at line 102 of file gui_map_icons.hpp.


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