mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
UI: add "compositor" layer to merge grids for TUI use in a correct way
Initially we will use this for the popupmenu, floating windows will follow soon NB: writedelay + compositor is weird, we need more flexible redraw introspection.
This commit is contained in:
@@ -36,6 +36,7 @@ typedef struct ui_t UI;
|
||||
|
||||
struct ui_t {
|
||||
bool rgb;
|
||||
bool composed;
|
||||
bool ui_ext[kUIExtCount]; ///< Externalized widgets
|
||||
int width, height;
|
||||
void *data;
|
||||
@@ -44,14 +45,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);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user