2018-01-17 19:22:57 +01:00
|
|
|
#ifndef CELL_H
|
|
|
|
#define CELL_H
|
|
|
|
|
|
|
|
#include "fort_impl.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* CELL
|
|
|
|
* ***************************************************************************/
|
|
|
|
fort_cell_t * create_cell();
|
|
|
|
|
|
|
|
|
|
|
|
void destroy_cell(fort_cell_t *cell);
|
|
|
|
int hint_width_cell(const fort_cell_t *cell, const context_t *context);
|
|
|
|
int hint_height_cell(const fort_cell_t *cell, const context_t *context);
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Returns number of lines in cell. If cell is empty or
|
|
|
|
* contains empty string, then 0 is returned.
|
|
|
|
*/
|
2018-03-09 10:44:16 +01:00
|
|
|
/* static int lines_number_cell(fort_cell_t *cell); */
|
2018-01-17 19:22:57 +01:00
|
|
|
|
|
|
|
int cell_printf(fort_cell_t *cell, size_t row, size_t column, char *buf, size_t buf_len, const context_t *context);
|
2018-03-05 19:08:14 +01:00
|
|
|
int cell_wprintf(fort_cell_t *cell, size_t row, size_t column, wchar_t *buf, size_t buf_len, const context_t *context);
|
|
|
|
|
2018-01-17 19:22:57 +01:00
|
|
|
|
|
|
|
fort_status_t fill_cell_from_string(fort_cell_t *cell, const char *str);
|
|
|
|
|
|
|
|
string_buffer_t* cell_get_string_buffer(fort_cell_t *cell);
|
|
|
|
|
2018-03-09 10:44:16 +01:00
|
|
|
#endif /* CELL_H */
|