Project Alice
Loading...
Searching...
No Matches
table::body< item_type > Class Template Reference

#include <table.hpp>

Inheritance diagram for table::body< item_type >:
Collaboration diagram for table::body< item_type >:

Classes

class  _scrollbar
 

Public Member Functions

 body (uint8_t in_columns, uint8_t in_rows)
 
void update (sys::state &state)
 
void on_create (sys::state &state) noexcept override
 
ui::message_result get (sys::state &state, Cyto::Any &payload) noexcept override
 
ui::tooltip_behavior has_tooltip (sys::state &state) 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

_scrollbarlist_scrollbar = nullptr
 
std::vector< entry< item_type > * > cells {}
 
int32_t scroll_pos
 
uint8_t columns
 
uint16_t rows
 
float scroll_impulse
 
- 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

template<typename item_type>
class table::body< item_type >

Definition at line 259 of file table.hpp.

Constructor & Destructor Documentation

◆ body()

template<typename item_type >
table::body< item_type >::body ( uint8_t  in_columns,
uint8_t  in_rows 
)
inline

Definition at line 275 of file table.hpp.

Member Function Documentation

◆ get()

template<typename item_type >
ui::message_result table::body< item_type >::get ( sys::state state,
Cyto::Any payload 
)
inlineoverridevirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 319 of file table.hpp.

Here is the call graph for this function:

◆ has_tooltip()

template<typename item_type >
ui::tooltip_behavior table::body< item_type >::has_tooltip ( sys::state state)
inlineoverridevirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 335 of file table.hpp.

◆ on_create()

template<typename item_type >
void table::body< item_type >::on_create ( sys::state state)
inlineoverridevirtualnoexcept

Reimplemented from ui::element_base.

Definition at line 309 of file table.hpp.

Here is the call graph for this function:

◆ update()

template<typename item_type >
void table::body< item_type >::update ( sys::state state)
inline

Definition at line 282 of file table.hpp.

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

Member Data Documentation

◆ cells

template<typename item_type >
std::vector<entry<item_type>*> table::body< item_type >::cells {}

Definition at line 269 of file table.hpp.

◆ columns

template<typename item_type >
uint8_t table::body< item_type >::columns

Definition at line 271 of file table.hpp.

◆ list_scrollbar

template<typename item_type >
_scrollbar* table::body< item_type >::list_scrollbar = nullptr

Definition at line 268 of file table.hpp.

◆ rows

template<typename item_type >
uint16_t table::body< item_type >::rows

Definition at line 272 of file table.hpp.

◆ scroll_impulse

template<typename item_type >
float table::body< item_type >::scroll_impulse

Definition at line 273 of file table.hpp.

◆ scroll_pos

template<typename item_type >
int32_t table::body< item_type >::scroll_pos

Definition at line 270 of file table.hpp.


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