Data Structures | Macros | Typedefs | Enumerations | Variables
cursor_shape.h File Reference
#include "nvim/types.h"
#include "nvim/api/private/defs.h"

Go to the source code of this file.

Data Structures

struct  cursor_entry
 

Macros

#define MSHAPE_NUMBERED   1000 /* offset for shapes identified by number */
 
#define MSHAPE_HIDE   1 /* hide mouse pointer */
 
#define SHAPE_MOUSE   1 /* used for mouse pointer shape */
 
#define SHAPE_CURSOR   2 /* used for text cursor shape */
 

Typedefs

typedef struct cursor_entry cursorentry_T
 

Enumerations

enum  ModeShape {
  SHAPE_IDX_N = 0, SHAPE_IDX_V = 1, SHAPE_IDX_I = 2, SHAPE_IDX_R = 3,
  SHAPE_IDX_C = 4, SHAPE_IDX_CI = 5, SHAPE_IDX_CR = 6, SHAPE_IDX_O = 7,
  SHAPE_IDX_VE = 8, SHAPE_IDX_CLINE = 9, SHAPE_IDX_STATUS = 10, SHAPE_IDX_SDRAG = 11,
  SHAPE_IDX_VSEP = 12, SHAPE_IDX_VDRAG = 13, SHAPE_IDX_MORE = 14, SHAPE_IDX_MOREL = 15,
  SHAPE_IDX_SM = 16, SHAPE_IDX_COUNT = 17
}
 
enum  CursorShape { SHAPE_BLOCK = 0, SHAPE_HOR = 1, SHAPE_VER = 2 }
 

Variables

cursorentry_T shape_table [SHAPE_IDX_COUNT]
 Handling of cursor and mouse pointer shapes in various modes. More...
 

Macro Definition Documentation

#define MSHAPE_HIDE   1 /* hide mouse pointer */
#define MSHAPE_NUMBERED   1000 /* offset for shapes identified by number */
#define SHAPE_CURSOR   2 /* used for text cursor shape */
#define SHAPE_MOUSE   1 /* used for mouse pointer shape */

Typedef Documentation

typedef struct cursor_entry cursorentry_T

Enumeration Type Documentation

Enumerator
SHAPE_BLOCK 

block cursor

SHAPE_HOR 

horizontal bar cursor

SHAPE_VER 

vertical bar cursor

enum ModeShape

struct to store values from 'guicursor' and 'mouseshape' Indexes in shape_table[]

Enumerator
SHAPE_IDX_N 

Normal mode.

SHAPE_IDX_V 

Visual mode.

SHAPE_IDX_I 

Insert mode.

SHAPE_IDX_R 

Replace mode.

SHAPE_IDX_C 

Command line Normal mode.

SHAPE_IDX_CI 

Command line Insert mode.

SHAPE_IDX_CR 

Command line Replace mode.

SHAPE_IDX_O 

Operator-pending mode.

SHAPE_IDX_VE 

Visual mode with 'selection' exclusive.

SHAPE_IDX_CLINE 

On command line.

SHAPE_IDX_STATUS 

On status line.

SHAPE_IDX_SDRAG 

dragging a status line

SHAPE_IDX_VSEP 

On vertical separator line.

SHAPE_IDX_VDRAG 

dragging a vertical separator line

SHAPE_IDX_MORE 

Hit-return or More.

SHAPE_IDX_MOREL 

Hit-return or More in last line.

SHAPE_IDX_SM 

showing matching paren

SHAPE_IDX_COUNT 

Variable Documentation

Handling of cursor and mouse pointer shapes in various modes.