ui/common/wrapper.c

changeset 786
150a1180f7ec
parent 783
25b2da0aac15
child 857
1d9dd72fec15
equal deleted inserted replaced
785:b943e3d618f0 786:150a1180f7ec
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 /* ---------------------------- UiCellValue ---------------------------- */
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