[U] Updated docs

This commit is contained in:
seleznevae 2020-01-21 19:03:57 +03:00
parent 4871105b0f
commit 8080378736
5 changed files with 11 additions and 4 deletions

View File

@ -27,6 +27,9 @@ These pages contain the API documentation of **libfort** - simple library to cre
- @link ft_table_write_ln ft_table_write_ln @endlink -- fill cells with the strings from the 2D array and move to the next line
- @link ft_add_separator ft_add_separator @endlink -- add horizontal separator
- Remove content
- @link ft_erase_range ft_erase_range @endlink -- erase range of cells
- Modify appearance of the table
- @link ft_set_default_border_style ft_set_default_border_style @endlink -- set default border style for all new created tables
- @link ft_set_border_style ft_set_border_style @endlink -- modify border style of the table

View File

@ -738,6 +738,8 @@ int ft_set_border_style(ft_table_t *table, const struct ft_border_style *style);
#define FT_CUR_ROW (UINT_MAX - 1) /**< Current row */
/** @} */
#define FT_MAX_ROW_INDEX (UINT_MAX - 2)
#define FT_MAX_COL_INDEX (UINT_MAX - 2)
/**

View File

@ -995,7 +995,7 @@ public:
{
if (FT_IS_ERROR(ft_erase_range(ps_table_->table_,
property_owner_t::ps_row_idx_, 0,
property_owner_t::ps_row_idx_, (UINT_MAX - 2)))) {
property_owner_t::ps_row_idx_, FT_MAX_COL_INDEX))) {
throw std::runtime_error("Failed to erase row");
}
}
@ -1016,7 +1016,7 @@ public:
{
if (FT_IS_ERROR(ft_erase_range(ps_table_->table_,
0, ps_coll_idx_,
(UINT_MAX - 2), ps_coll_idx_))) {
FT_MAX_ROW_INDEX, ps_coll_idx_))) {
throw std::runtime_error("Failed to erase column");
}
}

View File

@ -738,6 +738,8 @@ int ft_set_border_style(ft_table_t *table, const struct ft_border_style *style);
#define FT_CUR_ROW (UINT_MAX - 1) /**< Current row */
/** @} */
#define FT_MAX_ROW_INDEX (UINT_MAX - 2)
#define FT_MAX_COL_INDEX (UINT_MAX - 2)
/**

View File

@ -995,7 +995,7 @@ public:
{
if (FT_IS_ERROR(ft_erase_range(ps_table_->table_,
property_owner_t::ps_row_idx_, 0,
property_owner_t::ps_row_idx_, (UINT_MAX - 2)))) {
property_owner_t::ps_row_idx_, FT_MAX_COL_INDEX))) {
throw std::runtime_error("Failed to erase row");
}
}
@ -1016,7 +1016,7 @@ public:
{
if (FT_IS_ERROR(ft_erase_range(ps_table_->table_,
0, ps_coll_idx_,
(UINT_MAX - 2), ps_coll_idx_))) {
FT_MAX_ROW_INDEX, ps_coll_idx_))) {
throw std::runtime_error("Failed to erase column");
}
}