Project Alice
Loading...
Searching...
No Matches
alice_ui::budgetwindow_main_expenses_table_row_t Struct Reference
Inheritance diagram for alice_ui::budgetwindow_main_expenses_table_row_t:
Collaboration diagram for alice_ui::budgetwindow_main_expenses_table_row_t:

Public Member Functions

void set_item_name_text (sys::state &state, std::string const &new_text)
 
void set_item_value_text (sys::state &state, std::string const &new_text)
 
void render (sys::state &state, int32_t x, int32_t y) noexcept override
 
ui::message_result on_lbutton_down (sys::state &state, int32_t x, int32_t y, sys::key_modifiers mods) noexcept override
 
ui::message_result on_rbutton_down (sys::state &state, int32_t x, int32_t y, sys::key_modifiers mods) noexcept override
 
void on_update (sys::state &state) noexcept override
 
void update_tooltip (sys::state &state, int32_t x, int32_t y, text::columnar_layout &contents) noexcept override
 
void tooltip_position (sys::state &state, int32_t x, int32_t y, int32_t &ident, ui::urect &subrect) noexcept override
 
void on_create (sys::state &state) noexcept override
 
ui::message_result test_mouse (sys::state &state, int32_t x, int32_t y, ui::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 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_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

std::pair< std::string, float > value
 
bool alternate_row = false
 
text::layout item_name_internal_layout
 
text::text_color item_name_text_color = item_name_default_text_color
 
std::string item_name_cached_text
 
text::layout item_value_internal_layout
 
text::text_color item_value_text_color = item_value_default_text_color
 
std::string item_value_cached_text
 
- Public Attributes inherited from ui::element_base
element_data base_data
 
element_baseparent = nullptr
 
uint8_t flags = 0
 

Static Public Attributes

static text::text_color item_name_default_text_color = text::text_color::black
 
static text::alignment item_name_text_alignment = text::alignment::right
 
static text::text_color item_value_default_text_color = text::text_color::black
 
static text::alignment item_value_text_alignment = text::alignment::right
 
static std::string_view row_texture_key
 
static dcon::texture_id row_background_texture
 
static std::string_view alt_row_texture_key
 
static dcon::texture_id alt_row_background_texture
 
- 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
 

Additional Inherited Members

- 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 533 of file budgetwindow.cpp.

Member Function Documentation

◆ on_create()

void alice_ui::budgetwindow_main_expenses_table_row_t::on_create ( sys::state state)
overridevirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 2853 of file budgetwindow.cpp.

◆ on_lbutton_down()

ui::message_result alice_ui::budgetwindow_main_expenses_table_row_t::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 2830 of file budgetwindow.cpp.

◆ on_rbutton_down()

ui::message_result alice_ui::budgetwindow_main_expenses_table_row_t::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 2832 of file budgetwindow.cpp.

◆ on_update()

void alice_ui::budgetwindow_main_expenses_table_row_t::on_update ( sys::state state)
overridevirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 2855 of file budgetwindow.cpp.

Here is the call graph for this function:

◆ render()

void alice_ui::budgetwindow_main_expenses_table_row_t::render ( sys::state state,
int32_t  x,
int32_t  y 
)
overridevirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 2795 of file budgetwindow.cpp.

Here is the call graph for this function:

◆ set_item_name_text()

void alice_ui::budgetwindow_main_expenses_table_row_t::set_item_name_text ( sys::state state,
std::string const &  new_text 
)

Definition at line 2863 of file budgetwindow.cpp.

Here is the call graph for this function:

◆ set_item_value_text()

void alice_ui::budgetwindow_main_expenses_table_row_t::set_item_value_text ( sys::state state,
std::string const &  new_text 
)

Definition at line 2875 of file budgetwindow.cpp.

Here is the call graph for this function:

◆ test_mouse()

ui::message_result alice_ui::budgetwindow_main_expenses_table_row_t::test_mouse ( sys::state state,
int32_t  x,
int32_t  y,
ui::mouse_probe_type  type 
)
inlineoverridevirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 559 of file budgetwindow.cpp.

◆ tooltip_position()

void alice_ui::budgetwindow_main_expenses_table_row_t::tooltip_position ( sys::state state,
int32_t  x,
int32_t  y,
int32_t &  ident,
ui::urect subrect 
)
overridevirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 2842 of file budgetwindow.cpp.

Here is the call graph for this function:

◆ update_tooltip()

void alice_ui::budgetwindow_main_expenses_table_row_t::update_tooltip ( sys::state state,
int32_t  x,
int32_t  y,
text::columnar_layout contents 
)
overridevirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 2834 of file budgetwindow.cpp.

Member Data Documentation

◆ alt_row_background_texture

dcon::texture_id alice_ui::budgetwindow_main_expenses_table_row_t::alt_row_background_texture
inlinestatic

Definition at line 551 of file budgetwindow.cpp.

◆ alt_row_texture_key

std::string_view alice_ui::budgetwindow_main_expenses_table_row_t::alt_row_texture_key
inlinestatic

Definition at line 550 of file budgetwindow.cpp.

◆ alternate_row

bool alice_ui::budgetwindow_main_expenses_table_row_t::alternate_row = false

Definition at line 535 of file budgetwindow.cpp.

◆ item_name_cached_text

std::string alice_ui::budgetwindow_main_expenses_table_row_t::item_name_cached_text

Definition at line 539 of file budgetwindow.cpp.

◆ item_name_default_text_color

text::text_color alice_ui::budgetwindow_main_expenses_table_row_t::item_name_default_text_color = text::text_color::black
inlinestatic

Definition at line 537 of file budgetwindow.cpp.

◆ item_name_internal_layout

text::layout alice_ui::budgetwindow_main_expenses_table_row_t::item_name_internal_layout

Definition at line 536 of file budgetwindow.cpp.

◆ item_name_text_alignment

text::alignment alice_ui::budgetwindow_main_expenses_table_row_t::item_name_text_alignment = text::alignment::right
inlinestatic

Definition at line 540 of file budgetwindow.cpp.

◆ item_name_text_color

text::text_color alice_ui::budgetwindow_main_expenses_table_row_t::item_name_text_color = item_name_default_text_color

Definition at line 538 of file budgetwindow.cpp.

◆ item_value_cached_text

std::string alice_ui::budgetwindow_main_expenses_table_row_t::item_value_cached_text

Definition at line 545 of file budgetwindow.cpp.

◆ item_value_default_text_color

text::text_color alice_ui::budgetwindow_main_expenses_table_row_t::item_value_default_text_color = text::text_color::black
inlinestatic

Definition at line 543 of file budgetwindow.cpp.

◆ item_value_internal_layout

text::layout alice_ui::budgetwindow_main_expenses_table_row_t::item_value_internal_layout

Definition at line 542 of file budgetwindow.cpp.

◆ item_value_text_alignment

text::alignment alice_ui::budgetwindow_main_expenses_table_row_t::item_value_text_alignment = text::alignment::right
inlinestatic

Definition at line 546 of file budgetwindow.cpp.

◆ item_value_text_color

text::text_color alice_ui::budgetwindow_main_expenses_table_row_t::item_value_text_color = item_value_default_text_color

Definition at line 544 of file budgetwindow.cpp.

◆ row_background_texture

dcon::texture_id alice_ui::budgetwindow_main_expenses_table_row_t::row_background_texture
inlinestatic

Definition at line 549 of file budgetwindow.cpp.

◆ row_texture_key

std::string_view alice_ui::budgetwindow_main_expenses_table_row_t::row_texture_key
inlinestatic

Definition at line 548 of file budgetwindow.cpp.

◆ value

std::pair<std::string, float> alice_ui::budgetwindow_main_expenses_table_row_t::value

Definition at line 534 of file budgetwindow.cpp.


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