screen.h
Go to the documentation of this file.
1 #ifndef NVIM_SCREEN_H
2 #define NVIM_SCREEN_H
3 
4 #include <stdbool.h>
5 
6 #include "nvim/types.h"
7 #include "nvim/buffer_defs.h"
8 #include "nvim/grid_defs.h"
9 #include "nvim/pos.h"
10 
11 /*
12  * flags for update_screen()
13  * The higher the value, the higher the priority
14  */
15 #define VALID 10 /* buffer not changed, or changes marked
16  with b_mod_* */
17 #define INVERTED 20 /* redisplay inverted part that changed */
18 #define INVERTED_ALL 25 /* redisplay whole inverted part */
19 #define REDRAW_TOP 30 /* display first w_upd_rows screen lines */
20 #define SOME_VALID 35 /* like NOT_VALID but may scroll */
21 #define NOT_VALID 40 /* buffer needs complete redraw */
22 #define CLEAR 50 /* screen messed up, clear it */
23 
31 EXTERN ScreenGrid default_grid INIT(= { 0, NULL, NULL, NULL, NULL, 0, 0, 0, 0,
32  0, 0, 0 });
33 
34 #define DEFAULT_GRID_HANDLE 1 // handle for the default_grid
35 
37 typedef struct {
38  enum {
39  kStlClickDisabled = 0,
43  } type;
44  int tabnr;
45  char *func;
47 
49 typedef struct {
51  const char *start;
53 
56 
58 extern long tab_page_click_defs_size;
59 
60 #ifdef INCLUDE_GENERATED_DECLARATIONS
61 # include "screen.h.generated.h"
62 #endif
63 #endif // NVIM_SCREEN_H
EXTERN ScreenGrid default_grid INIT(={0, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, 0})
char * func
Function to run.
Definition: screen.h:45
return NULL
Definition: eval.c:22198
Status line click definition.
Definition: screen.h:37
int tabnr
Tab page number.
Definition: screen.h:44
#define EXTERN
Definition: macros.h:7
StlClickDefinition * tab_page_click_defs
Array defining what should be done when tabline is clicked.
Definition: screen.c:135
const char * start
Location where region starts.
Definition: screen.h:51
long tab_page_click_defs_size
Size of the tab_page_click_defs array.
Definition: screen.c:137
Close given tab.
Definition: screen.h:41
Used for tabline clicks.
Definition: screen.h:49
Definition: grid_defs.h:36
err type
Definition: helpers.c:1169
StlClickDefinition def
Click definition.
Definition: screen.h:50
Switch to the given tab.
Definition: screen.h:40
Run user function.
Definition: screen.h:42