grid_defs.h
Go to the documentation of this file.
1 #ifndef NVIM_GRID_DEFS_H
2 #define NVIM_GRID_DEFS_H
3 
4 #include <stdint.h>
5 
6 #include "nvim/types.h"
7 
8 #define MAX_MCO 6 // maximum value for 'maxcombine'
9 
10 // The characters and attributes drawn on grids.
11 typedef char_u schar_T[(MAX_MCO+1) * 4 + 1];
12 typedef int16_t sattr_T;
13 
36 typedef struct {
38 
41  unsigned *line_offset;
43 
44  // the size of the allocated grid.
45  int Rows;
46  int Columns;
47 
48  // offsets for the grid relative to the global screen
51 
52  // grid size requested by the UI. Used for window grids only.
55 
57 } ScreenGrid;
58 
59 #endif // NVIM_GRID_DEFS_H
int16_t sattr_T
Definition: grid_defs.h:12
sattr_T * attrs
Definition: grid_defs.h:40
int col_offset
Definition: grid_defs.h:50
char_u schar_T[(MAX_MCO+1)*4+1]
Definition: grid_defs.h:11
char_u * line_wraps
Definition: grid_defs.h:42
handle_T handle
Definition: grid_defs.h:37
schar_T * chars
Definition: grid_defs.h:39
#define MAX_MCO
Definition: grid_defs.h:8
int was_resized
Definition: grid_defs.h:56
int requested_rows
Definition: grid_defs.h:53
int requested_cols
Definition: grid_defs.h:54
int row_offset
Definition: grid_defs.h:49
int Rows
Definition: grid_defs.h:45
int handle_T
Definition: types.h:17
unsigned char char_u
Definition: types.h:11
Definition: grid_defs.h:36
unsigned * line_offset
Definition: grid_defs.h:41
int Columns
Definition: grid_defs.h:46