cursor_shape.h
Go to the documentation of this file.
1 #ifndef NVIM_CURSOR_SHAPE_H
2 #define NVIM_CURSOR_SHAPE_H
3 
4 #include "nvim/types.h"
6 
9 typedef enum {
28 } ModeShape;
29 
30 typedef enum {
32 SHAPE_HOR = 1,
34 } CursorShape;
35 
36 #define MSHAPE_NUMBERED 1000 /* offset for shapes identified by number */
37 #define MSHAPE_HIDE 1 /* hide mouse pointer */
38 
39 #define SHAPE_MOUSE 1 /* used for mouse pointer shape */
40 #define SHAPE_CURSOR 2 /* used for text cursor shape */
41 
42 typedef struct cursor_entry {
43  char *full_name;
45  int mshape;
46  int percentage;
47  long blinkwait;
48  long blinkon;
49  long blinkoff;
50  int id;
51  int id_lm;
52  char *name;
53  char used_for;
55 
57 
58 #ifdef INCLUDE_GENERATED_DECLARATIONS
59 # include "cursor_shape.h.generated.h"
60 #endif
61 #endif // NVIM_CURSOR_SHAPE_H
Hit-return or More.
Definition: cursor_shape.h:24
dragging a status line
Definition: cursor_shape.h:21
CursorShape
Definition: cursor_shape.h:30
Command line Replace mode.
Definition: cursor_shape.h:16
long blinkon
blinking, on time
Definition: cursor_shape.h:48
Hit-return or More in last line.
Definition: cursor_shape.h:25
block cursor
Definition: cursor_shape.h:31
int percentage
percentage of cell for bar
Definition: cursor_shape.h:46
vertical bar cursor
Definition: cursor_shape.h:33
int mshape
mouse shape: one of the MSHAPE defines
Definition: cursor_shape.h:45
On status line.
Definition: cursor_shape.h:20
Visual mode.
Definition: cursor_shape.h:11
showing matching paren
Definition: cursor_shape.h:26
Visual mode with 'selection' exclusive.
Definition: cursor_shape.h:18
Command line Normal mode.
Definition: cursor_shape.h:14
char * name
mode short name
Definition: cursor_shape.h:52
char used_for
SHAPE_MOUSE and/or SHAPE_CURSOR.
Definition: cursor_shape.h:53
Operator-pending mode.
Definition: cursor_shape.h:17
long blinkoff
blinking, off time
Definition: cursor_shape.h:49
ModeShape
Definition: cursor_shape.h:9
On vertical separator line.
Definition: cursor_shape.h:22
long blinkwait
blinking, wait time before blinking starts
Definition: cursor_shape.h:47
cursorentry_T shape_table[SHAPE_IDX_COUNT]
Handling of cursor and mouse pointer shapes in various modes.
Definition: cursor_shape.c:17
Insert mode.
Definition: cursor_shape.h:12
CursorShape shape
cursor shape: one of the SHAPE_ defines
Definition: cursor_shape.h:44
int id_lm
highlight group ID for :lmap mode
Definition: cursor_shape.h:51
char * full_name
mode description
Definition: cursor_shape.h:43
horizontal bar cursor
Definition: cursor_shape.h:32
dragging a vertical separator line
Definition: cursor_shape.h:23
struct cursor_entry cursorentry_T
Replace mode.
Definition: cursor_shape.h:13
On command line.
Definition: cursor_shape.h:19
Definition: cursor_shape.h:27
Command line Insert mode.
Definition: cursor_shape.h:15
Definition: cursor_shape.h:42
int id
highlight group ID
Definition: cursor_shape.h:50
Normal mode.
Definition: cursor_shape.h:10