diff options
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 32 |
1 files changed, 19 insertions, 13 deletions
@@ -636,6 +636,11 @@ struct grid { struct grid_line *linedata; }; +/* Style option. */ +struct style { + struct grid_cell gc; +}; + /* Hook data structures. */ struct hook { const char *name; @@ -780,8 +785,7 @@ struct window_pane { struct input_ctx *ictx; - struct grid_cell colgc; - + struct style style; int *palette; int pipe_fd; @@ -849,8 +853,8 @@ struct window { struct options *options; - struct grid_cell style; - struct grid_cell active_style; + struct style style; + struct style active_style; u_int references; TAILQ_HEAD(, winlink) winlinks; @@ -1651,7 +1655,7 @@ struct options_entry *options_match_get(struct options *, const char *, int *, int, int *); const char *options_get_string(struct options *, const char *); long long options_get_number(struct options *, const char *); -const struct grid_cell *options_get_style(struct options *, const char *); +struct style *options_get_style(struct options *, const char *); struct options_entry * printflike(4, 5) options_set_string(struct options *, const char *, int, const char *, ...); struct options_entry *options_set_number(struct options *, const char *, @@ -1709,7 +1713,7 @@ void tty_update_window_offset(struct window *); void tty_update_client_offset(struct client *); void tty_raw(struct tty *, const char *); void tty_attributes(struct tty *, const struct grid_cell *, - const struct window_pane *); + struct window_pane *); void tty_reset(struct tty *); void tty_region_off(struct tty *); void tty_margin_off(struct tty *); @@ -1731,7 +1735,7 @@ void tty_start_tty(struct tty *); void tty_stop_tty(struct tty *); void tty_set_title(struct tty *, const char *); void tty_update_mode(struct tty *, int, struct screen *); -void tty_draw_line(struct tty *, const struct window_pane *, struct screen *, +void tty_draw_line(struct tty *, struct window_pane *, struct screen *, u_int, u_int, u_int, u_int, u_int); int tty_open(struct tty *, char **); void tty_close(struct tty *); @@ -2209,7 +2213,7 @@ void window_pane_alternate_off(struct window_pane *, void window_pane_set_palette(struct window_pane *, u_int, int); void window_pane_unset_palette(struct window_pane *, u_int); void window_pane_reset_palette(struct window_pane *); -int window_pane_get_palette(const struct window_pane *, int); +int window_pane_get_palette(struct window_pane *, int); int window_pane_set_mode(struct window_pane *, const struct window_mode *, struct cmd_find_state *, struct args *); @@ -2424,14 +2428,16 @@ __dead void printflike(1, 2) fatal(const char *, ...); __dead void printflike(1, 2) fatalx(const char *, ...); /* style.c */ -int style_parse(const struct grid_cell *, - struct grid_cell *, const char *); -const char *style_tostring(struct grid_cell *); +int style_parse(struct style *,const struct grid_cell *, + const char *); +const char *style_tostring(struct style *); void style_apply(struct grid_cell *, struct options *, const char *); void style_apply_update(struct grid_cell *, struct options *, const char *); -int style_equal(const struct grid_cell *, - const struct grid_cell *); +int style_equal(struct style *, struct style *); +void style_set(struct style *, const struct grid_cell *); +void style_copy(struct style *, struct style *); +int style_is_default(struct style *); #endif /* TMUX_H */ |