diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2017-05-10 17:39:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-10 17:39:09 +0200 |
commit | 031756c5e6a3dc2b9e811086a2531a41e4f58a19 (patch) | |
tree | 294effe35254d53766dfe2358415f26e8dd61cb9 /src/nvim/ui.h | |
parent | d9023b84e63f51611cf55f72ca5e021d64ba7ce9 (diff) | |
parent | 2d5920ae1ada751811e04bcc8d3a8fe4f890617a (diff) | |
download | rneovim-031756c5e6a3dc2b9e811086a2531a41e4f58a19.tar.gz rneovim-031756c5e6a3dc2b9e811086a2531a41e4f58a19.tar.bz2 rneovim-031756c5e6a3dc2b9e811086a2531a41e4f58a19.zip |
Merge pull request #6618 from bfredl/ui_event
generate UI remote event wrappers and add them to metadata
Diffstat (limited to 'src/nvim/ui.h')
-rw-r--r-- | src/nvim/ui.h | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/src/nvim/ui.h b/src/nvim/ui.h index 9338ab3ea3..064f77fee1 100644 --- a/src/nvim/ui.h +++ b/src/nvim/ui.h @@ -28,35 +28,17 @@ struct ui_t { bool ui_ext[UI_WIDGETS]; ///< Externalized widgets int width, height; void *data; - void (*resize)(UI *ui, int rows, int columns); - void (*clear)(UI *ui); - void (*eol_clear)(UI *ui); - void (*cursor_goto)(UI *ui, int row, int col); - void (*mode_info_set)(UI *ui, bool enabled, Array cursor_styles); - void (*update_menu)(UI *ui); - void (*busy_start)(UI *ui); - void (*busy_stop)(UI *ui); - void (*mouse_on)(UI *ui); - void (*mouse_off)(UI *ui); - void (*mode_change)(UI *ui, int mode_idx); - void (*set_scroll_region)(UI *ui, int top, int bot, int left, int right); - void (*scroll)(UI *ui, int count); - void (*highlight_set)(UI *ui, HlAttrs attrs); - void (*put)(UI *ui, uint8_t *str, size_t len); - void (*bell)(UI *ui); - void (*visual_bell)(UI *ui); - void (*flush)(UI *ui); - void (*update_fg)(UI *ui, int fg); - void (*update_bg)(UI *ui, int bg); - void (*update_sp)(UI *ui, int sp); - void (*suspend)(UI *ui); - void (*set_title)(UI *ui, char *title); - void (*set_icon)(UI *ui, char *icon); + +#ifdef INCLUDE_GENERATED_DECLARATIONS +# include "ui_events.generated.h" +#endif + void (*event)(UI *ui, char *name, Array args, bool *args_consumed); void (*stop)(UI *ui); }; #ifdef INCLUDE_GENERATED_DECLARATIONS # include "ui.h.generated.h" +# include "ui_events_call.h.generated.h" #endif #endif // NVIM_UI_H |