[C] Small fixes
This commit is contained in:
@@ -676,7 +676,7 @@ int ft_set_border_style(ft_table_t *table, const struct ft_border_style *style);
|
||||
* @{
|
||||
*/
|
||||
#define FT_COPT_MIN_WIDTH (0x01U << 0) /**< Minimum width */
|
||||
#define FT_COPT_TEXT_ALIGN (0x01U << 1) /**< Text alignmemnt */
|
||||
#define FT_COPT_TEXT_ALIGN (0x01U << 1) /**< Text alignment */
|
||||
#define FT_COPT_TOP_PADDING (0x01U << 2) /**< Top padding for cell content */
|
||||
#define FT_COPT_BOTTOM_PADDING (0x01U << 3) /**< Bottom padding for cell content */
|
||||
#define FT_COPT_LEFT_PADDING (0x01U << 4) /**< Left padding for cell content */
|
||||
|
31
lib/fort.hpp
31
lib/fort.hpp
@@ -563,17 +563,18 @@ public:
|
||||
}
|
||||
|
||||
/**
|
||||
* Set default border style for all new formatted tables.
|
||||
* Set current cell position.
|
||||
*
|
||||
* @param style
|
||||
* Pointer to border style.
|
||||
* @return
|
||||
* - True: Success; table border style was changed.
|
||||
* - False: Error
|
||||
* Current cell - cell that will be edited with all modifiing functions.
|
||||
*
|
||||
* @param row
|
||||
* New row number for the current cell.
|
||||
* @param col
|
||||
* New row number for the current cell.
|
||||
*/
|
||||
bool set_default_border_style(struct ft_border_style *style)
|
||||
void set_cur_cell(size_t row, size_t col)
|
||||
{
|
||||
return FT_IS_SUCCESS(ft_set_default_border_style(style));
|
||||
ft_set_cur_cell(table, row, col);
|
||||
}
|
||||
private:
|
||||
ft_table_t *table;
|
||||
@@ -628,7 +629,19 @@ public:
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Set default border style for all new formatted tables.
|
||||
*
|
||||
* @param style
|
||||
* Pointer to border style.
|
||||
* @return
|
||||
* - True: Success; table border style was changed.
|
||||
* - False: Error
|
||||
*/
|
||||
bool set_default_border_style(struct ft_border_style *style)
|
||||
{
|
||||
return FT_IS_SUCCESS(ft_set_default_border_style(style));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user