ui.h
Go to the documentation of this file.
1 #ifndef NVIM_UI_H
2 #define NVIM_UI_H
3 
4 #include <stddef.h>
5 #include <stdbool.h>
6 #include <stdint.h>
7 
8 #include "nvim/globals.h"
10 #include "nvim/highlight_defs.h"
11 
12 typedef enum {
18 #define kUIGlobalCount kUILinegrid
25 } UIExtension;
26 
27 EXTERN const char *ui_ext_names[] INIT(= {
28  "ext_cmdline",
29  "ext_popupmenu",
30  "ext_tabline",
31  "ext_wildmenu",
32  "ext_messages",
33  "ext_linegrid",
34  "ext_multigrid",
35  "ext_hlstate",
36  "ext_termcolors",
37  "_debug_float",
38 });
39 
40 typedef struct ui_t UI;
41 
42 enum {
45 };
46 
47 typedef int LineFlags;
48 
49 struct ui_t {
50  bool rgb;
51  bool composed;
53  int width, height;
54  void *data;
55 
56 #ifdef INCLUDE_GENERATED_DECLARATIONS
57 # include "ui_events.generated.h"
58 #endif
59 
60  void (*inspect)(UI *ui, Dictionary *info);
61 };
62 
63 #ifdef INCLUDE_GENERATED_DECLARATIONS
64 # include "ui.h.generated.h"
65 # include "ui_events_call.h.generated.h"
66 #endif
67 #endif // NVIM_UI_H
Definition: ui.h:14
Definition: ui.h:19
void * data
Definition: ui.h:54
bool rgb
Definition: ui.h:50
int LineFlags
Definition: ui.h:47
EXTERN const char *ui_ext_names[] INIT(={"ext_cmdline","ext_popupmenu","ext_tabline","ext_wildmenu","ext_messages","ext_linegrid","ext_multigrid","ext_hlstate","ext_termcolors","_debug_float",})
Definition: ui.h:49
bool composed
Definition: ui.h:51
Definition: ui.h:23
int height
Definition: ui.h:53
#define EXTERN
Definition: macros.h:7
Definition: ui.h:13
Definition: ui.h:15
Definition: ui.h:17
Definition: ui.h:21
void(* inspect)(UI *ui, Dictionary *info)
Definition: ui.h:60
Definition: ui.h:20
Definition: ui.h:24
Definition: defs.h:95
Definition: ui.h:43
bool ui_ext[kUIExtCount]
Externalized widgets.
Definition: ui.h:52
UIExtension
Definition: ui.h:12
int width
Definition: ui.h:53
Definition: ui.h:44
Definition: ui.h:16
Definition: ui.h:22