struct libtui_buffer * libtui_buffer_create(size_t column, size_t row)
Allocates and returns owned pointer to the struct libtui_buffer struct. WARNING: Internal function,...
Definition libtui_buffer.c:6
void libtui_buffer_free(struct libtui_buffer *buf)
Frees the struct libtui_buffer and the buffer inside it. WARNING: Internal Funcion,...
Definition libtui_buffer.c:51
size_t libtui_buffer_get_index(const struct libtui_buffer *const buf, size_t x, size_t y)
Gets x, y positions and maps them according to the buf which is 1-Dimensional. WARNING: Internal Func...
Definition libtui_buffer.c:30
void libtui_buffer_set(struct libtui_buffer *const buf, const char c, size_t x, size_t y)
Sets the char at a specific position. WARNING: Internal Funcion, end user shouldn't use this.
Definition libtui_buffer.c:36
char libtui_buffer_get(const struct libtui_buffer *const buf, size_t x, size_t y)
Gets the char at a specific location. WARNING: Internal Funcion, end user shouldn't use this.
Definition libtui_buffer.c:43
A struct that represents a 2D buffer. WARNING: Internal struct, end user shouldn't use this.
Definition libtui_buffer.h:27
char * buf
Owned by libtui_buffer.
Definition libtui_buffer.h:29