mirror of
https://github.com/tmux/tmux.git
synced 2025-01-27 16:48:49 +00:00
horizontal -> h, vertical -> v, to shorten some function names a little.
This commit is contained in:
parent
d601c42ea2
commit
404411f5e7
@ -1,4 +1,4 @@
|
|||||||
/* $Id: layout-manual.c,v 1.2 2009-05-18 21:06:16 nicm Exp $ */
|
/* $Id: layout-manual.c,v 1.3 2009-05-18 21:29:11 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -20,10 +20,10 @@
|
|||||||
|
|
||||||
#include "tmux.h"
|
#include "tmux.h"
|
||||||
|
|
||||||
void layout_manual_vertical_update_offsets(struct window *);
|
void layout_manual_v_update_offsets(struct window *);
|
||||||
|
|
||||||
void
|
void
|
||||||
layout_manual_vertical_refresh(struct window *w, unused int active_only)
|
layout_manual_v_refresh(struct window *w, unused int active_only)
|
||||||
{
|
{
|
||||||
struct window_pane *wp;
|
struct window_pane *wp;
|
||||||
u_int npanes, canfit, total;
|
u_int npanes, canfit, total;
|
||||||
@ -102,14 +102,14 @@ layout_manual_vertical_refresh(struct window *w, unused int active_only)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Fill in the offsets. */
|
/* Fill in the offsets. */
|
||||||
layout_manual_vertical_update_offsets(w);
|
layout_manual_v_update_offsets(w);
|
||||||
|
|
||||||
/* Switch the active window if necessary. */
|
/* Switch the active window if necessary. */
|
||||||
window_set_active_pane(w, w->active);
|
window_set_active_pane(w, w->active);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
layout_manual_vertical_resize(struct window_pane *wp, int adjust)
|
layout_manual_v_resize(struct window_pane *wp, int adjust)
|
||||||
{
|
{
|
||||||
struct window *w = wp->window;
|
struct window *w = wp->window;
|
||||||
struct window_pane *wq;
|
struct window_pane *wq;
|
||||||
@ -163,11 +163,11 @@ layout_manual_vertical_resize(struct window_pane *wp, int adjust)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
layout_manual_vertical_update_offsets(w);
|
layout_manual_v_update_offsets(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
layout_manual_vertical_update_offsets(struct window *w)
|
layout_manual_v_update_offsets(struct window *w)
|
||||||
{
|
{
|
||||||
struct window_pane *wp;
|
struct window_pane *wp;
|
||||||
u_int yoff;
|
u_int yoff;
|
||||||
|
23
layout.c
23
layout.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: layout.c,v 1.10 2009-05-18 21:16:09 nicm Exp $ */
|
/* $Id: layout.c,v 1.11 2009-05-18 21:29:11 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -32,21 +32,20 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
void layout_active_only_refresh(struct window *, int);
|
void layout_active_only_refresh(struct window *, int);
|
||||||
void layout_even_horizontal_refresh(struct window *, int);
|
void layout_even_h_refresh(struct window *, int);
|
||||||
void layout_even_vertical_refresh(struct window *, int);
|
void layout_even_v_refresh(struct window *, int);
|
||||||
void layout_left_vertical_refresh(struct window *, int);
|
void layout_left_v_refresh(struct window *, int);
|
||||||
|
|
||||||
const struct {
|
const struct {
|
||||||
const char *name;
|
const char *name;
|
||||||
void (*refresh)(struct window *, int);
|
void (*refresh)(struct window *, int);
|
||||||
void (*resize)(struct window_pane *, int);
|
void (*resize)(struct window_pane *, int);
|
||||||
} layouts[] = {
|
} layouts[] = {
|
||||||
{ "manual-vertical",
|
{ "manual-vertical", layout_manual_v_refresh, layout_manual_v_resize },
|
||||||
layout_manual_vertical_refresh, layout_manual_vertical_resize },
|
|
||||||
{ "active-only", layout_active_only_refresh, NULL },
|
{ "active-only", layout_active_only_refresh, NULL },
|
||||||
{ "even-horizontal", layout_even_horizontal_refresh, NULL },
|
{ "even-horizontal", layout_even_h_refresh, NULL },
|
||||||
{ "even-vertical", layout_even_vertical_refresh, NULL },
|
{ "even-vertical", layout_even_v_refresh, NULL },
|
||||||
{ "left-vertical", layout_left_vertical_refresh, NULL },
|
{ "left-vertical", layout_left_v_refresh, NULL },
|
||||||
};
|
};
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
@ -136,7 +135,7 @@ layout_active_only_refresh(struct window *w, unused int active_only)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
layout_even_horizontal_refresh(struct window *w, int active_only)
|
layout_even_h_refresh(struct window *w, int active_only)
|
||||||
{
|
{
|
||||||
struct window_pane *wp;
|
struct window_pane *wp;
|
||||||
u_int i, n, width, xoff;
|
u_int i, n, width, xoff;
|
||||||
@ -184,7 +183,7 @@ layout_even_horizontal_refresh(struct window *w, int active_only)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
layout_even_vertical_refresh(struct window *w, int active_only)
|
layout_even_v_refresh(struct window *w, int active_only)
|
||||||
{
|
{
|
||||||
struct window_pane *wp;
|
struct window_pane *wp;
|
||||||
u_int i, n, height, yoff;
|
u_int i, n, height, yoff;
|
||||||
@ -232,7 +231,7 @@ layout_even_vertical_refresh(struct window *w, int active_only)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
layout_left_vertical_refresh(struct window *w, int active_only)
|
layout_left_v_refresh(struct window *w, int active_only)
|
||||||
{
|
{
|
||||||
struct window_pane *wp;
|
struct window_pane *wp;
|
||||||
u_int i, n, height, yoff;
|
u_int i, n, height, yoff;
|
||||||
|
6
tmux.h
6
tmux.h
@ -1,4 +1,4 @@
|
|||||||
/* $Id: tmux.h,v 1.321 2009-05-18 21:16:09 nicm Exp $ */
|
/* $Id: tmux.h,v 1.322 2009-05-18 21:29:11 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -1575,8 +1575,8 @@ void layout_next(struct window *);
|
|||||||
void layout_previous(struct window *);
|
void layout_previous(struct window *);
|
||||||
|
|
||||||
/* layout-manual.c */
|
/* layout-manual.c */
|
||||||
void layout_manual_vertical_refresh(struct window *, int);
|
void layout_manual_v_refresh(struct window *, int);
|
||||||
void layout_manual_vertical_resize(struct window_pane *, int);
|
void layout_manual_v_resize(struct window_pane *, int);
|
||||||
|
|
||||||
/* window-clock.c */
|
/* window-clock.c */
|
||||||
extern const struct window_mode window_clock_mode;
|
extern const struct window_mode window_clock_mode;
|
||||||
|
Loading…
Reference in New Issue
Block a user