Bram Moolenaar | f9cc9f2 | 2019-07-14 21:29:22 +0200 | [diff] [blame] | 1 | /* highlight.c */ |
Bram Moolenaar | 2ac6e82 | 2019-07-15 22:40:22 +0200 | [diff] [blame] | 2 | int highlight_num_groups(void); |
| 3 | char_u *highlight_group_name(int id); |
| 4 | int highlight_link_id(int id); |
Bram Moolenaar | f9cc9f2 | 2019-07-14 21:29:22 +0200 | [diff] [blame] | 5 | void init_highlight(int both, int reset); |
| 6 | int load_colors(char_u *name); |
| 7 | int lookup_color(int idx, int foreground, int *boldp); |
| 8 | void do_highlight(char_u *line, int forceit, int init); |
| 9 | void free_highlight(void); |
| 10 | void restore_cterm_colors(void); |
| 11 | void set_normal_colors(void); |
| 12 | char_u *hl_get_font_name(void); |
| 13 | void hl_set_font_name(char_u *font_name); |
| 14 | void hl_set_bg_color_name(char_u *name); |
| 15 | void hl_set_fg_color_name(char_u *name); |
| 16 | guicolor_T color_name2handle(char_u *name); |
Drew Vogel | e30d102 | 2021-10-24 20:35:07 +0100 | [diff] [blame] | 17 | guicolor_T decode_hex_color(char_u *hex); |
| 18 | guicolor_T colorname2rgb(char_u *name); |
| 19 | void save_colorname_hexstr(int r, int g, int b, char_u *name); |
| 20 | void load_default_colors_lists(void); |
| 21 | guicolor_T gui_get_color_cmn(char_u *name); |
| 22 | guicolor_T gui_get_rgb_color_cmn(int r, int g, int b); |
Bram Moolenaar | f9cc9f2 | 2019-07-14 21:29:22 +0200 | [diff] [blame] | 23 | int get_cterm_attr_idx(int attr, int fg, int bg); |
| 24 | int get_tgc_attr_idx(int attr, guicolor_T fg, guicolor_T bg); |
| 25 | int get_gui_attr_idx(int attr, guicolor_T fg, guicolor_T bg); |
| 26 | void clear_hl_tables(void); |
| 27 | int hl_combine_attr(int char_attr, int prim_attr); |
| 28 | attrentry_T *syn_gui_attr2entry(int attr); |
| 29 | int syn_attr2attr(int attr); |
| 30 | attrentry_T *syn_term_attr2entry(int attr); |
| 31 | attrentry_T *syn_cterm_attr2entry(int attr); |
| 32 | char_u *highlight_has_attr(int id, int flag, int modec); |
| 33 | char_u *highlight_color(int id, char_u *what, int modec); |
| 34 | long_u highlight_gui_color_rgb(int id, int fg); |
Bram Moolenaar | 2ac6e82 | 2019-07-15 22:40:22 +0200 | [diff] [blame] | 35 | int syn_list_header(int did_header, int outlen, int id); |
Bram Moolenaar | f9cc9f2 | 2019-07-14 21:29:22 +0200 | [diff] [blame] | 36 | int syn_name2id(char_u *name); |
| 37 | int syn_name2attr(char_u *name); |
| 38 | int highlight_exists(char_u *name); |
| 39 | char_u *syn_id2name(int id); |
| 40 | int syn_namen2id(char_u *linep, int len); |
| 41 | int syn_check_group(char_u *pp, int len); |
| 42 | int syn_id2attr(int hl_id); |
| 43 | int syn_id2colors(int hl_id, guicolor_T *fgp, guicolor_T *bgp); |
| 44 | void syn_id2cterm_bg(int hl_id, int *fgp, int *bgp); |
| 45 | int syn_get_final_id(int hl_id); |
| 46 | void highlight_gui_started(void); |
| 47 | int highlight_changed(void); |
| 48 | void set_context_in_highlight_cmd(expand_T *xp, char_u *arg); |
| 49 | char_u *get_highlight_name(expand_T *xp, int idx); |
| 50 | char_u *get_highlight_name_ext(expand_T *xp, int idx, int skip_cleared); |
| 51 | void free_highlight_fonts(void); |
Yegappan Lakshmanan | d1a8d65 | 2021-11-03 21:56:45 +0000 | [diff] [blame^] | 52 | void f_hlget(typval_T *argvars, typval_T *rettv); |
| 53 | void f_hlset(typval_T *argvars, typval_T *rettv); |
Bram Moolenaar | f9cc9f2 | 2019-07-14 21:29:22 +0200 | [diff] [blame] | 54 | /* vim: set ft=c : */ |