mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
ui: refactor ui options
This commit is contained in:
@@ -13,14 +13,22 @@ typedef enum {
|
||||
kUIPopupmenu,
|
||||
kUITabline,
|
||||
kUIWildmenu,
|
||||
} UIWidget;
|
||||
#define UI_WIDGETS (kUIWildmenu + 1)
|
||||
kUIExtCount,
|
||||
} UIExtension;
|
||||
|
||||
EXTERN const char *ui_ext_names[] INIT(= {
|
||||
"ext_cmdline",
|
||||
"ext_popupmenu",
|
||||
"ext_tabline",
|
||||
"ext_wildmenu"
|
||||
});
|
||||
|
||||
|
||||
typedef struct ui_t UI;
|
||||
|
||||
struct ui_t {
|
||||
bool rgb;
|
||||
bool ui_ext[UI_WIDGETS]; ///< Externalized widgets
|
||||
bool ui_ext[kUIExtCount]; ///< Externalized widgets
|
||||
int width, height;
|
||||
void *data;
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
|
Reference in New Issue
Block a user