ui: refactor ui options

This commit is contained in:
Björn Linse
2018-02-13 13:45:49 +01:00
parent 0f1bc5ddce
commit 6e5cb0debd
11 changed files with 109 additions and 45 deletions

View File

@@ -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