diff options
author | Utkarsh Maheshwari <utkarshme96@gmail.com> | 2018-05-19 21:03:17 +0530 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2018-12-31 12:44:21 +0100 |
commit | f102f50ebeca98365b308463c25eb2caffffba51 (patch) | |
tree | 1521fac8bc7ca1bde148f4839bc3bf4e062edcb3 /src/nvim/types.h | |
parent | c9b559a0308714ef8ad396eb340a4af580e44d74 (diff) | |
download | rneovim-f102f50ebeca98365b308463c25eb2caffffba51.tar.gz rneovim-f102f50ebeca98365b308463c25eb2caffffba51.tar.bz2 rneovim-f102f50ebeca98365b308463c25eb2caffffba51.zip |
multigrid: Change screen_* functions to grid_* functions
Diffstat (limited to 'src/nvim/types.h')
-rw-r--r-- | src/nvim/types.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/types.h b/src/nvim/types.h index 84634b1cb7..aa83bc04bf 100644 --- a/src/nvim/types.h +++ b/src/nvim/types.h @@ -23,14 +23,24 @@ typedef char_u schar_T[(MAX_MCO+1) * 4 + 1]; typedef int16_t sattr_T; // TODO(bfredl): find me a good home +typedef int GridHandle; typedef struct { + GridHandle handle; + schar_T *ScreenLines; sattr_T *ScreenAttrs; unsigned *LineOffset; char_u *LineWraps; + // the size of the allocated grid int Rows; int Columns; + + // offsets for the grid relative to the screen + int OffsetRow; + int OffsetColumn; + + int was_resized; } ScreenGrid; #endif // NVIM_TYPES_H |