diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-02-02 21:27:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-02 21:27:09 +0100 |
commit | 79a0ea2bec7c4a1c82990c07c87098b87bc2a1da (patch) | |
tree | ffdf0820ab0b70622d58d40936ac6f0d9e2658fd /src/nvim/ui.h | |
parent | f89d0d8230f34dca49eddbea179d274955b572b9 (diff) | |
parent | 0f96a21e3fd6ba989e27a992e48c084dd02d8885 (diff) | |
download | rneovim-79a0ea2bec7c4a1c82990c07c87098b87bc2a1da.tar.gz rneovim-79a0ea2bec7c4a1c82990c07c87098b87bc2a1da.tar.bz2 rneovim-79a0ea2bec7c4a1c82990c07c87098b87bc2a1da.zip |
Merge pull request #9530 from bfredl/pum_float
Implement popupmenu as a floating grid internally to reduce flicker
Diffstat (limited to 'src/nvim/ui.h')
-rw-r--r-- | src/nvim/ui.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nvim/ui.h b/src/nvim/ui.h index 16237214cb..a5a0fa8b75 100644 --- a/src/nvim/ui.h +++ b/src/nvim/ui.h @@ -34,8 +34,16 @@ EXTERN const char *ui_ext_names[] INIT(= { typedef struct ui_t UI; +enum { + kLineFlagWrap = 1, + kLineFlagInvalid = 2, +}; + +typedef int LineFlags; + struct ui_t { bool rgb; + bool composed; bool ui_ext[kUIExtCount]; ///< Externalized widgets int width, height; void *data; @@ -44,14 +52,6 @@ struct ui_t { # include "ui_events.generated.h" #endif - // For perfomance and simplicity, we use the dense screen representation - // in the bridge and the TUI. The remote_ui module will translate this - // in to the public grid_line format. - void (*raw_line)(UI *ui, Integer grid, Integer row, Integer startcol, - Integer endcol, Integer clearcol, Integer clearattr, - Boolean wrap, const schar_T *chunk, const sattr_T *attrs); - void (*event)(UI *ui, char *name, Array args, bool *args_consumed); - void (*stop)(UI *ui); void (*inspect)(UI *ui, Dictionary *info); }; |