blob: 6d39caab502405c5fa9eb7eef5441deb3a9a8bd8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#ifndef NVIM_TYPES_H
#define NVIM_TYPES_H
#include <stdint.h>
// dummy to pass an ACL to a function
typedef void *vim_acl_T;
// Shorthand for unsigned variables. Many systems, but not all, have u_char
// already defined, so we use char_u to avoid trouble.
typedef unsigned char char_u;
// Can hold one decoded UTF-8 character.
typedef uint32_t u8char_T;
typedef struct expand expand_T;
#define MAX_MCO 6 // maximum value for 'maxcombine'
// The characters and attributes cached for the screen.
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;
// the size expected to be allocated to the internal grid
int internal_rows;
int internal_columns;
int was_resized;
} ScreenGrid;
#endif // NVIM_TYPES_H
|