ui/common/wrapper.c

changeset 782
a72d7509d292
parent 746
7899792496cb
child 783
25b2da0aac15
equal deleted inserted replaced
781:b15ada8bdd8f 782:a72d7509d292
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 }

mercurial