aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-05-18 21:01:38 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-05-18 21:01:38 +0000
commitab4e5e8574c3ccffeed275eeebc4845e3f33acab (patch)
tree60b6019361ac2d801c3b2b29531a1acffa175426 /tmux.h
parentb6b00c53bdd386b0570544d561e4a9d176d13291 (diff)
downloadrtmux-ab4e5e8574c3ccffeed275eeebc4845e3f33acab.tar.gz
rtmux-ab4e5e8574c3ccffeed275eeebc4845e3f33acab.tar.bz2
rtmux-ab4e5e8574c3ccffeed275eeebc4845e3f33acab.zip
Clean up manual layout code:
- change the one layout function into two _refresh and _resize - create layout-manual.c for manual layout code - move the fit panes/update panes code from window.c to the new file as it is only used by manual layout now - move the resize pane code into layout-manual.c as well - get rid of the direct calls to fit/update and make them go through layout - rename a couple of variables This is mainly as a first step before reworking the manual layout code to see if anything breaks.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/tmux.h b/tmux.h
index e58ac097..6c2a2e85 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.318 2009-05-16 11:48:47 nicm Exp $ */
+/* $Id: tmux.h,v 1.319 2009-05-18 21:01:38 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1549,8 +1549,6 @@ struct window_pane *window_add_pane(struct window *, int,
void window_remove_pane(struct window *, struct window_pane *);
u_int window_index_of_pane(struct window *, struct window_pane *);
struct window_pane *window_pane_at_index(struct window *, u_int);
-void window_fit_panes(struct window *);
-void window_update_panes(struct window *);
u_int window_count_panes(struct window *);
void window_destroy_panes(struct window *);
struct window_pane *window_pane_create(struct window *, u_int, u_int, u_int);
@@ -1571,10 +1569,15 @@ void window_pane_mouse(struct window_pane *,
const char * layout_name(struct window *);
int layout_lookup(const char *);
void layout_refresh(struct window *, int);
+void layout_resize(struct window_pane *, int);
int layout_select(struct window *, u_int);
void layout_next(struct window *);
void layout_previous(struct window *);
+/* layout-manual.c */
+void layout_manual_refresh(struct window *, int);
+void layout_manual_resize(struct window_pane *, int);
+
/* window-clock.c */
extern const struct window_mode window_clock_mode;