summaryrefslogtreecommitdiff
path: root/src/tui_text.c
diff options
context:
space:
mode:
authorlouie <lshprung@tutanota.com>2023-07-07 15:03:52 -0700
committerlouie <lshprung@tutanota.com>2023-07-08 17:28:21 -0700
commit15b92cd8b26116a5c59fab1490f50b33a5cdf01c (patch)
treeb7ab60c0601e2dda33ef915c0919c431c355f664 /src/tui_text.c
parent2d4457781f7262bef67d6681767db9393ce35b6d (diff)
Create tui_text structure
Diffstat (limited to 'src/tui_text.c')
-rw-r--r--src/tui_text.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/tui_text.c b/src/tui_text.c
new file mode 100644
index 0000000..d86002a
--- /dev/null
+++ b/src/tui_text.c
@@ -0,0 +1,36 @@
+#include "tui_text.h"
+
+// getters
+int tui_text_get_x(Tui_text *t) {
+ return t->start_x;
+}
+
+int tui_text_get_y(Tui_text *t) {
+ return t->start_y;
+}
+
+enum tui_text_type tui_text_get_type(Tui_text *t) {
+ return t->type;
+}
+
+void *tui_text_get_data(Tui_text *t) {
+ return t->data;
+}
+
+
+// setters
+void tui_text_set_x(Tui_text *t, int start_x) {
+ t->start_x = start_x;
+}
+
+void tui_text_set_y(Tui_text *t, int start_y) {
+ t->start_y = start_y;
+}
+
+void tui_text_set_type(Tui_text *t, enum tui_text_type type) {
+ t->type = type;
+}
+
+void tui_text_set_data(Tui_text *t, void *data) {
+ t->data = data;
+}