summaryrefslogtreecommitdiff
path: root/src/text.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/text.h')
-rw-r--r--src/text.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/text.h b/src/text.h
index 708ef09..e6f681a 100644
--- a/src/text.h
+++ b/src/text.h
@@ -10,6 +10,11 @@ struct render_cmd;
struct text *text_create(uint32_t initial_capacity);
void text_destroy(struct text *text);
+/**
+ * Clear the text without reclaiming memory
+ */
+void text_clear(struct text *text);
+
void text_append(struct text *text, uint32_t line, uint32_t col, uint8_t *bytes,
uint32_t nbytes, uint32_t *lines_added, uint32_t *cols_added);