mirror of
https://github.com/neovim/neovim.git
synced 2025-11-27 12:40:39 +00:00
committed by
Justin M. Keyes
parent
37b755ab47
commit
9f994bb699
@@ -526,3 +526,19 @@ bool ui_is_external(UIExtension widget)
|
||||
{
|
||||
return ui_ext[widget];
|
||||
}
|
||||
|
||||
Array ui_array(void)
|
||||
{
|
||||
Array all_uis = ARRAY_DICT_INIT;
|
||||
for (size_t i = 0; i < ui_count; i++) {
|
||||
Dictionary dic = ARRAY_DICT_INIT;
|
||||
PUT(dic, "width", INTEGER_OBJ(uis[i]->width));
|
||||
PUT(dic, "height", INTEGER_OBJ(uis[i]->height));
|
||||
PUT(dic, "rgb", BOOLEAN_OBJ(uis[i]->rgb));
|
||||
for (UIExtension j = 0; j < kUIExtCount; j++) {
|
||||
PUT(dic, ui_ext_names[j], BOOLEAN_OBJ(uis[i]->ui_ext[j]));
|
||||
}
|
||||
ADD(all_uis, DICTIONARY_OBJ(dic));
|
||||
}
|
||||
return all_uis;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user