9 typedef struct UiWin UiWin
;
17 UI_OPTION_LINE_NUMBERS_ABSOLUTE
= 1 << 0,
18 UI_OPTION_LINE_NUMBERS_RELATIVE
= 1 << 1,
19 UI_OPTION_SYMBOL_SPACE
= 1 << 2,
20 UI_OPTION_SYMBOL_TAB
= 1 << 3,
21 UI_OPTION_SYMBOL_TAB_FILL
= 1 << 4,
22 UI_OPTION_SYMBOL_EOL
= 1 << 5,
23 UI_OPTION_SYMBOL_EOF
= 1 << 6,
24 UI_OPTION_CURSOR_LINE
= 1 << 7,
28 UI_STYLE_LEXER_MAX
= 64,
42 bool (*init
)(Ui
*, Vis
*);
45 UiWin
* (*window_new
)(Ui
*, View
*, File
*);
46 void (*window_free
)(UiWin
*);
47 void (*window_focus
)(UiWin
*);
48 UiWin
* (*prompt_new
)(Ui
*, View
*, File
*);
49 void (*prompt
)(Ui
*, const char *title
, const char *value
);
50 char* (*prompt_input
)(Ui
*);
51 void (*prompt_hide
)(Ui
*);
52 void (*die
)(Ui
*, const char *msg
, va_list ap
);
53 void (*info
)(Ui
*, const char *msg
, va_list ap
);
54 void (*info_hide
)(Ui
*);
55 void (*arrange
)(Ui
*, enum UiLayout
);
59 const char* (*getkey
)(Ui
*);
61 void (*terminal_save
)(Ui
*);
62 void (*terminal_restore
)(Ui
*);
63 TermKey
* (*termkey_get
)(Ui
*);
68 void (*draw_status
)(UiWin
*);
69 void (*reload
)(UiWin
*, File
*);
70 void (*options_set
)(UiWin
*, enum UiOption
);
71 enum UiOption (*options_get
)(UiWin
*);
72 bool (*syntax_style
)(UiWin
*, int id
, const char *style
);