libtui
|
A readadble and writable 2D mapped buffer in the heap. WARNING: Internal, end user shouldn't use this. More...
#include <stdlib.h>
Go to the source code of this file.
Data Structures | |
struct | libtui_buffer |
A struct that represents a 2D buffer. WARNING: Internal struct, end user shouldn't use this. More... | |
Functions | |
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, end user shouldn't use this. | |
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 Funcion, end user shouldn't use this. | |
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. | |
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. | |
void | libtui_buffer_free (struct libtui_buffer *buf) |
Frees the struct libtui_buffer and the buffer inside it. WARNING: Internal Funcion, end user shouldn't use this. | |
A readadble and writable 2D mapped buffer in the heap. WARNING: Internal, end user shouldn't use this.
All the things that were declared in this header is internal and meant to be used by the library. If you don't know what you're doing don't use this header because it doesn't handle errors.