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

#include <gui_element_types.hpp>

Inheritance diagram for ui::multiline_text_element_base:
Collaboration diagram for ui::multiline_text_element_base:

Public Member Functions

void on_create (sys::state &state) noexcept override
 
void on_reset_text (sys::state &state) noexcept override
 
void render (sys::state &state, int32_t x, int32_t y) noexcept override
 
message_result on_lbutton_down (sys::state &state, int32_t x, int32_t y, sys::key_modifiers mods) noexcept override
 
message_result on_rbutton_down (sys::state &state, 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::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

float line_height = 0.f
 
int32_t current_line = 0
 
int32_t visible_lines = 0
 
bool black_text = true
 
text::layout internal_layout
 
- 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 901 of file gui_element_types.hpp.

Member Function Documentation

◆ on_create()

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

Reimplemented from ui::element_base.

Reimplemented in ui::event_name_text, ui::issue_name_text, ui::release_nation_description_text, ui::release_nation_window_description_text, ui::reform_name_text, and ui::factory_build_description.

Definition at line 990 of file gui_element_types.cpp.

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

◆ on_lbutton_down()

message_result ui::multiline_text_element_base::on_lbutton_down ( sys::state state,
int32_t  x,
int32_t  y,
sys::key_modifiers  mods 
)
overridevirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 1022 of file gui_element_types.cpp.

Here is the call graph for this function:

◆ on_rbutton_down()

message_result ui::multiline_text_element_base::on_rbutton_down ( sys::state state,
int32_t  x,
int32_t  y,
sys::key_modifiers  mods 
)
overridevirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 1090 of file gui_element_types.cpp.

◆ on_reset_text()

void ui::multiline_text_element_base::on_reset_text ( sys::state state)
overridevirtualnoexcept

Reimplemented from ui::element_base.

Reimplemented in ui::event_name_text.

Definition at line 998 of file gui_element_types.cpp.

◆ render()

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

Reimplemented from ui::element_base.

Definition at line 1002 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::multiline_text_element_base::test_mouse ( sys::state state,
int32_t  x,
int32_t  y,
mouse_probe_type  type 
)
overridevirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 1094 of file gui_element_types.cpp.

Member Data Documentation

◆ black_text

bool ui::multiline_text_element_base::black_text = true

Definition at line 906 of file gui_element_types.hpp.

◆ current_line

int32_t ui::multiline_text_element_base::current_line = 0

Definition at line 904 of file gui_element_types.hpp.

◆ internal_layout

text::layout ui::multiline_text_element_base::internal_layout

Definition at line 907 of file gui_element_types.hpp.

◆ line_height

float ui::multiline_text_element_base::line_height = 0.f

Definition at line 903 of file gui_element_types.hpp.

◆ visible_lines

int32_t ui::multiline_text_element_base::visible_lines = 0

Definition at line 905 of file gui_element_types.hpp.


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