| 297 } |
297 } |
| 298 |
298 |
| 299 void ui_textstyle_enable_color(UiTextStyle *style, UiBool enable) { |
299 void ui_textstyle_enable_color(UiTextStyle *style, UiBool enable) { |
| 300 style->fg_set = enable; |
300 style->fg_set = enable; |
| 301 } |
301 } |
| |
302 |
| |
303 |
| |
304 /* ---------------------------- UiTextStyle ---------------------------- */ |
| |
305 |
| |
306 UiBool ui_cell_value_is_string(UiCellValue *value) { |
| |
307 return value->type == UI_STRING_EDITABLE; |
| |
308 } |
| |
309 |
| |
310 UiBool ui_cell_value_is_int(UiCellValue *value) { |
| |
311 return FALSE; // TODO |
| |
312 } |
| |
313 |
| |
314 const char* ui_cell_value_get_string(UiCellValue *value) { |
| |
315 return value->string; |
| |
316 } |
| |
317 |
| |
318 int64_t ui_cell_value_get_int(UiCellValue *value) { |
| |
319 return value->i; |
| |
320 } |