Project Alice
Loading...
Searching...
No Matches
table::column< item_type > Struct Template Reference

#include <table.hpp>

Public Attributes

bool sortable = true
 
std::string header = "???"
 
std::function< bool(sys::state &state, ui::element_base *container, const item_type &a, const item_type &b)> compare
 
std::function< std::string(sys::state &state, ui::element_base *container, const item_type &a)> view
 
std::function< void(sys::state &state, text::columnar_layout &contents, const item_type &a, std::string fallback)> update_tooltip = tooltip_fallback<item_type>
 
std::string cell_definition_string ="thin_cell_number"
 
std::string header_definition_string ="thin_cell_number"
 
bool has_tooltip = false
 

Detailed Description

template<typename item_type>
struct table::column< item_type >

Definition at line 49 of file table.hpp.

Member Data Documentation

◆ cell_definition_string

template<typename item_type >
std::string table::column< item_type >::cell_definition_string ="thin_cell_number"

Definition at line 60 of file table.hpp.

◆ compare

template<typename item_type >
std::function<bool(sys::state& state, ui::element_base* container, const item_type & a, const item_type & b)> table::column< item_type >::compare

Definition at line 52 of file table.hpp.

◆ has_tooltip

template<typename item_type >
bool table::column< item_type >::has_tooltip = false

Definition at line 62 of file table.hpp.

◆ header

template<typename item_type >
std::string table::column< item_type >::header = "???"

Definition at line 51 of file table.hpp.

◆ header_definition_string

template<typename item_type >
std::string table::column< item_type >::header_definition_string ="thin_cell_number"

Definition at line 61 of file table.hpp.

◆ sortable

template<typename item_type >
bool table::column< item_type >::sortable = true

Definition at line 50 of file table.hpp.

◆ update_tooltip

template<typename item_type >
std::function<void( sys::state& state, text::columnar_layout& contents, const item_type& a, std::string fallback )> table::column< item_type >::update_tooltip = tooltip_fallback<item_type>

Definition at line 59 of file table.hpp.

◆ view

template<typename item_type >
std::function<std::string(sys::state& state, ui::element_base* container, const item_type& a)> table::column< item_type >::view

Definition at line 53 of file table.hpp.


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