9 typedef struct UiWin UiWin
;
18 UI_OPTION_LINE_NUMBERS_ABSOLUTE
= 1 << 0,
19 UI_OPTION_LINE_NUMBERS_RELATIVE
= 1 << 1,
20 UI_OPTION_SYMBOL_SPACE
= 1 << 2,
21 UI_OPTION_SYMBOL_TAB
= 1 << 3,
22 UI_OPTION_SYMBOL_TAB_FILL
= 1 << 4,
23 UI_OPTION_SYMBOL_EOL
= 1 << 5,
24 UI_OPTION_SYMBOL_EOF
= 1 << 6,
25 UI_OPTION_CURSOR_LINE
= 1 << 7,
26 UI_OPTION_STATUSBAR
= 1 << 8,
27 UI_OPTION_ONELINE
= 1 << 9,
28 UI_OPTION_LARGE_FILE
= 1 << 10,
32 UI_STYLE_LEXER_MAX
= 64,
38 UI_STYLE_COLOR_COLUMN
,
47 bool (*init
)(Ui
*, Vis
*);
51 UiWin
* (*window_new
)(Ui
*, View
*, File
*, enum UiOption
);
52 void (*window_free
)(UiWin
*);
53 void (*window_focus
)(UiWin
*);
54 void (*die
)(Ui
*, const char *msg
, va_list ap
) __attribute__((noreturn
));
55 void (*info
)(Ui
*, const char *msg
, va_list ap
);
56 void (*info_hide
)(Ui
*);
57 void (*arrange
)(Ui
*, enum UiLayout
);
62 const char* (*getkey
)(Ui
*);
64 void (*terminal_save
)(Ui
*);
65 void (*terminal_restore
)(Ui
*);
66 TermKey
* (*termkey_get
)(Ui
*);
71 void (*draw_status
)(UiWin
*);
72 void (*reload
)(UiWin
*, File
*);
73 void (*options_set
)(UiWin
*, enum UiOption
);
74 enum UiOption (*options_get
)(UiWin
*);
75 bool (*syntax_style
)(UiWin
*, int id
, const char *style
);