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

Classes

struct  bottom_spacer_option
 
struct  neutral_spacer_option
 
struct  section_header_option
 
struct  top_spacer_option
 
struct  value_option
 

Public Member Functions

void on_create (sys::state &state) noexcept override
 
ui::tooltip_behavior has_tooltip (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
 
ui::message_result on_scroll (sys::state &state, int32_t x, int32_t y, float amount, sys::key_modifiers mods) noexcept override
 
void change_page (sys::state &state, int32_t new_page)
 
int32_t max_page ()
 
void clear_table ()
 
void impl_change_page (sys::state &state, int32_t new_page)
 
void add_value (std::pair< std::string, float > const &v)
 
void add_insert_section_header (sys::state &state, int32_t const &section_type)
 
void add_insert_neutral_spacer (sys::state &state)
 
void add_insert_bottom_spacer (sys::state &state)
 
void add_insert_top_spacer (sys::state &state)
 
std::unique_ptr< budgetwindow_main_expenses_table_row_tmake_row (sys::state &state)
 
std::unique_ptr< budgetwindow_main_expenses_table_header_tmake_headers (sys::state &state)
 
void apply_sort (sys::state &state)
 
void impl_apply_sort (sys::state &state)
 
void on_update (sys::state &state) noexcept override
 
- Public Member Functions inherited from ui::non_owning_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
 
void move_child_to_front (element_base *child) noexcept final
 
void move_child_to_back (element_base *child) 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 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::vector< std::unique_ptr< ui::element_base > > section_header_pool
 
std::vector< std::unique_ptr< ui::element_base > > neutral_spacer_pool
 
std::vector< std::unique_ptr< ui::element_base > > bottom_spacer_pool
 
std::vector< std::unique_ptr< ui::element_base > > top_spacer_pool
 
std::vector< std::unique_ptr< budgetwindow_main_expenses_table_row_t > > row_pool
 
std::vector< std::unique_ptr< budgetwindow_main_expenses_table_header_t > > header_pool
 
int32_t page = 0
 
std::vector< std::variant< std::monostate, value_option, section_header_option, neutral_spacer_option, bottom_spacer_option, top_spacer_option > > values
 
std::vector< int32_t > page_starts
 
bool open_page = false
 
int16_t layout_space = 0
 
- Public Attributes inherited from ui::non_owning_container_base
std::vector< element_base * > children
 
- Public Attributes inherited from ui::element_base
element_data base_data
 
element_baseparent = nullptr
 
uint8_t flags = 0
 

Static Public Attributes

static float row_height = 0
 
static ogl::color4f table_highlight_color {float(1.000000), float(1.000000), float(1.000000), float(0.156863)}
 
static ogl::color3f table_divider_color {float(0.000000), float(0.000000), float(0.000000)}
 
- 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 571 of file budgetwindow.cpp.

Member Function Documentation

◆ add_insert_bottom_spacer()

void alice_ui::budgetwindow_main_expenses_table_t::add_insert_bottom_spacer ( sys::state state)

Definition at line 3034 of file budgetwindow.cpp.

Here is the call graph for this function:

◆ add_insert_neutral_spacer()

void alice_ui::budgetwindow_main_expenses_table_t::add_insert_neutral_spacer ( sys::state state)

Definition at line 3021 of file budgetwindow.cpp.

Here is the call graph for this function:

◆ add_insert_section_header()

void alice_ui::budgetwindow_main_expenses_table_t::add_insert_section_header ( sys::state state,
int32_t const &  section_type 
)

Definition at line 3008 of file budgetwindow.cpp.

Here is the call graph for this function:

◆ add_insert_top_spacer()

void alice_ui::budgetwindow_main_expenses_table_t::add_insert_top_spacer ( sys::state state)

Definition at line 3047 of file budgetwindow.cpp.

Here is the call graph for this function:

◆ add_value()

void alice_ui::budgetwindow_main_expenses_table_t::add_value ( std::pair< std::string, float > const &  v)

Definition at line 2986 of file budgetwindow.cpp.

◆ apply_sort()

void alice_ui::budgetwindow_main_expenses_table_t::apply_sort ( sys::state state)

Definition at line 3129 of file budgetwindow.cpp.

Here is the call graph for this function:

◆ change_page()

void alice_ui::budgetwindow_main_expenses_table_t::change_page ( sys::state state,
int32_t  new_page 
)

Definition at line 2960 of file budgetwindow.cpp.

Here is the call graph for this function:

◆ clear_table()

void alice_ui::budgetwindow_main_expenses_table_t::clear_table ( )

Definition at line 2979 of file budgetwindow.cpp.

◆ has_tooltip()

ui::tooltip_behavior alice_ui::budgetwindow_main_expenses_table_t::has_tooltip ( sys::state state)
inlineoverridevirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 592 of file budgetwindow.cpp.

◆ impl_apply_sort()

void alice_ui::budgetwindow_main_expenses_table_t::impl_apply_sort ( sys::state state)

Definition at line 3080 of file budgetwindow.cpp.

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

◆ impl_change_page()

void alice_ui::budgetwindow_main_expenses_table_t::impl_change_page ( sys::state state,
int32_t  new_page 
)

Definition at line 2887 of file budgetwindow.cpp.

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

◆ make_headers()

std::unique_ptr< budgetwindow_main_expenses_table_header_t > alice_ui::budgetwindow_main_expenses_table_t::make_headers ( sys::state state)

Definition at line 3070 of file budgetwindow.cpp.

Here is the caller graph for this function:

◆ make_row()

std::unique_ptr< budgetwindow_main_expenses_table_row_t > alice_ui::budgetwindow_main_expenses_table_t::make_row ( sys::state state)

Definition at line 3060 of file budgetwindow.cpp.

Here is the caller graph for this function:

◆ max_page()

int32_t alice_ui::budgetwindow_main_expenses_table_t::max_page ( )

Definition at line 2976 of file budgetwindow.cpp.

Here is the caller graph for this function:

◆ on_create()

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

Reimplemented from ui::element_base.

Definition at line 3452 of file budgetwindow.cpp.

◆ on_scroll()

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

◆ on_update()

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

Reimplemented from ui::element_base.

Definition at line 3137 of file budgetwindow.cpp.

Here is the call graph for this function:

◆ test_mouse()

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

Member Data Documentation

◆ bottom_spacer_pool

std::vector<std::unique_ptr<ui::element_base> > alice_ui::budgetwindow_main_expenses_table_t::bottom_spacer_pool

Definition at line 577 of file budgetwindow.cpp.

◆ header_pool

std::vector<std::unique_ptr<budgetwindow_main_expenses_table_header_t> > alice_ui::budgetwindow_main_expenses_table_t::header_pool

Definition at line 581 of file budgetwindow.cpp.

◆ layout_space

int16_t alice_ui::budgetwindow_main_expenses_table_t::layout_space = 0

Definition at line 590 of file budgetwindow.cpp.

◆ neutral_spacer_pool

std::vector<std::unique_ptr<ui::element_base> > alice_ui::budgetwindow_main_expenses_table_t::neutral_spacer_pool

Definition at line 575 of file budgetwindow.cpp.

◆ open_page

bool alice_ui::budgetwindow_main_expenses_table_t::open_page = false

Definition at line 589 of file budgetwindow.cpp.

◆ page

int32_t alice_ui::budgetwindow_main_expenses_table_t::page = 0

Definition at line 583 of file budgetwindow.cpp.

◆ page_starts

std::vector<int32_t> alice_ui::budgetwindow_main_expenses_table_t::page_starts

Definition at line 588 of file budgetwindow.cpp.

◆ row_height

float alice_ui::budgetwindow_main_expenses_table_t::row_height = 0
inlinestatic

Definition at line 584 of file budgetwindow.cpp.

◆ row_pool

std::vector<std::unique_ptr<budgetwindow_main_expenses_table_row_t> > alice_ui::budgetwindow_main_expenses_table_t::row_pool

Definition at line 580 of file budgetwindow.cpp.

◆ section_header_pool

std::vector<std::unique_ptr<ui::element_base> > alice_ui::budgetwindow_main_expenses_table_t::section_header_pool

Definition at line 573 of file budgetwindow.cpp.

◆ table_divider_color

ogl::color3f alice_ui::budgetwindow_main_expenses_table_t::table_divider_color {float(0.000000), float(0.000000), float(0.000000)}
inlinestatic

Definition at line 586 of file budgetwindow.cpp.

◆ table_highlight_color

ogl::color4f alice_ui::budgetwindow_main_expenses_table_t::table_highlight_color {float(1.000000), float(1.000000), float(1.000000), float(0.156863)}
inlinestatic

Definition at line 585 of file budgetwindow.cpp.

◆ top_spacer_pool

std::vector<std::unique_ptr<ui::element_base> > alice_ui::budgetwindow_main_expenses_table_t::top_spacer_pool

Definition at line 579 of file budgetwindow.cpp.

◆ values

std::vector<std::variant<std::monostate, value_option, section_header_option, neutral_spacer_option, bottom_spacer_option, top_spacer_option> > alice_ui::budgetwindow_main_expenses_table_t::values

Definition at line 587 of file budgetwindow.cpp.


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