ui/common/wrapper.c

changeset 786
150a1180f7ec
parent 783
25b2da0aac15
child 857
1d9dd72fec15
--- a/ui/common/wrapper.c	Thu Oct 02 14:49:17 2025 +0200
+++ b/ui/common/wrapper.c	Thu Oct 02 14:49:27 2025 +0200
@@ -299,3 +299,22 @@
 void ui_textstyle_enable_color(UiTextStyle *style, UiBool enable) {
     style->fg_set = enable;
 }
+
+
+/* ---------------------------- UiCellValue ---------------------------- */
+
+UiBool ui_cell_value_is_string(UiCellValue *value) {
+   return value->type == UI_STRING_EDITABLE;
+}
+
+UiBool ui_cell_value_is_int(UiCellValue *value) {
+    return FALSE; // TODO
+}
+
+const char* ui_cell_value_get_string(UiCellValue *value) {
+    return value->string;
+}
+
+int64_t ui_cell_value_get_int(UiCellValue *value) {
+    return value->i;
+}

mercurial