2018-01-17 19:22:57 +01:00
|
|
|
#ifndef CELL_H
|
|
|
|
#define CELL_H
|
|
|
|
|
2018-05-06 15:36:53 +02:00
|
|
|
#include "fort_utils.h"
|
2018-01-17 19:22:57 +01:00
|
|
|
|
2018-08-28 21:25:43 +02:00
|
|
|
FT_INTERNAL
|
2018-05-06 16:04:34 +02:00
|
|
|
fort_cell_t *create_cell(void);
|
2018-01-17 19:22:57 +01:00
|
|
|
|
2018-08-28 21:25:43 +02:00
|
|
|
FT_INTERNAL
|
2018-01-17 19:22:57 +01:00
|
|
|
void destroy_cell(fort_cell_t *cell);
|
2018-08-28 21:25:43 +02:00
|
|
|
|
2018-11-02 22:16:20 +01:00
|
|
|
FT_INTERNAL
|
|
|
|
fort_cell_t *copy_cell(fort_cell_t *cell);
|
|
|
|
|
2018-08-28 21:25:43 +02:00
|
|
|
FT_INTERNAL
|
2018-11-10 07:58:21 +01:00
|
|
|
size_t hint_width_cell(const fort_cell_t *cell, const context_t *context, enum request_geom_type geom);
|
2018-01-17 19:22:57 +01:00
|
|
|
|
2018-08-28 21:25:43 +02:00
|
|
|
FT_INTERNAL
|
|
|
|
size_t hint_height_cell(const fort_cell_t *cell, const context_t *context);
|
2018-01-17 19:22:57 +01:00
|
|
|
|
2018-08-28 21:25:43 +02:00
|
|
|
FT_INTERNAL
|
2018-05-02 16:55:29 +02:00
|
|
|
void set_cell_type(fort_cell_t *cell, enum CellType type);
|
|
|
|
|
2018-08-28 21:25:43 +02:00
|
|
|
FT_INTERNAL
|
|
|
|
enum CellType get_cell_type(const fort_cell_t *cell);
|
2018-01-17 19:22:57 +01:00
|
|
|
|
2018-08-28 21:25:43 +02:00
|
|
|
FT_INTERNAL
|
2018-03-29 20:25:04 +02:00
|
|
|
int cell_printf(fort_cell_t *cell, size_t row, char *buf, size_t buf_len, const context_t *context);
|
2018-08-28 21:25:43 +02:00
|
|
|
|
|
|
|
FT_INTERNAL
|
2018-01-17 19:22:57 +01:00
|
|
|
fort_status_t fill_cell_from_string(fort_cell_t *cell, const char *str);
|
|
|
|
|
2018-04-24 20:36:07 +02:00
|
|
|
#ifdef FT_HAVE_WCHAR
|
2018-08-28 21:25:43 +02:00
|
|
|
FT_INTERNAL
|
2018-04-24 20:36:07 +02:00
|
|
|
int cell_wprintf(fort_cell_t *cell, size_t row, wchar_t *buf, size_t buf_len, const context_t *context);
|
2018-08-28 21:25:43 +02:00
|
|
|
|
|
|
|
FT_INTERNAL
|
2018-04-24 20:36:07 +02:00
|
|
|
fort_status_t fill_cell_from_wstring(fort_cell_t *cell, const wchar_t *str);
|
|
|
|
#endif
|
|
|
|
|
2018-08-28 21:25:43 +02:00
|
|
|
FT_INTERNAL
|
2018-05-06 16:04:34 +02:00
|
|
|
string_buffer_t *cell_get_string_buffer(fort_cell_t *cell);
|
2018-01-17 19:22:57 +01:00
|
|
|
|
2018-03-09 10:44:16 +01:00
|
|
|
#endif /* CELL_H */
|