diff options
author | Tiago Cunha <tcunha@gmx.com> | 2010-07-02 02:54:52 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2010-07-02 02:54:52 +0000 |
commit | e4703bacb54b873a49a060395870120449efaf18 (patch) | |
tree | dbb3e18c606e82c1bb78f4646a0426ec749223bf /tmux.h | |
parent | e4573de97b40a7aaebcdcd2a4b699b5f995fe506 (diff) | |
download | rtmux-e4703bacb54b873a49a060395870120449efaf18.tar.gz rtmux-e4703bacb54b873a49a060395870120449efaf18.tar.bz2 rtmux-e4703bacb54b873a49a060395870120449efaf18.zip |
Sync OpenBSD patchset 732:
Custom layouts. list-windows command displays the layout as a string (such as
"bb62,159x48,0,0{79x48,0,0,79x48,80,0}") and it can be applied to another
window (with the same number of panes or fewer) using select-layout.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.567 2010-07-02 02:52:13 tcunha Exp $ */ +/* $Id: tmux.h,v 1.568 2010-07-02 02:54:52 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1849,9 +1849,11 @@ struct window_pane *window_pane_find_left(struct window_pane *); struct window_pane *window_pane_find_right(struct window_pane *); /* layout.c */ +u_int layout_count_cells(struct layout_cell *); struct layout_cell *layout_create_cell(struct layout_cell *); void layout_free_cell(struct layout_cell *); void layout_print_cell(struct layout_cell *, const char *, u_int); +void layout_destroy_cell(struct layout_cell *, struct layout_cell **); void layout_set_size( struct layout_cell *, u_int, u_int, u_int, u_int); void layout_make_leaf( @@ -1872,6 +1874,10 @@ struct layout_cell *layout_split_pane( struct window_pane *, enum layout_type, int); void layout_close_pane(struct window_pane *); +/* layout-custom.c */ +char *layout_dump(struct window *); +int layout_parse(struct window *, const char *); + /* layout-set.c */ const char *layout_set_name(u_int); int layout_set_lookup(const char *); @@ -1882,6 +1888,7 @@ void layout_set_active_changed(struct window *); /* layout-string.c */ struct layout_cell *layout_find_string(struct window *, const char *); +struct layout_cell *layout_find_bottomright(struct layout_cell *); /* window-clock.c */ extern const struct window_mode window_clock_mode; |