tmux  3.2a
About: tmux is a terminal multiplexer that lets you switch easily between several programs in one terminal.
  Fossies Dox: tmux-3.2a.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

layout-set.c File Reference
#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
#include "tmux.h"
Include dependency graph for layout-set.c:

Go to the source code of this file.

Functions

static void layout_set_even_h (struct window *)
 
static void layout_set_even_v (struct window *)
 
static void layout_set_main_h (struct window *)
 
static void layout_set_main_v (struct window *)
 
static void layout_set_tiled (struct window *)
 
int layout_set_lookup (const char *name)
 
u_int layout_set_select (struct window *w, u_int layout)
 
u_int layout_set_next (struct window *w)
 
u_int layout_set_previous (struct window *w)
 
static void layout_set_even (struct window *w, enum layout_type type)
 

Variables

struct {
   const char *   name
 
   void(*   arrange )(struct window *)
 
layout_sets []
 

Function Documentation

◆ layout_set_even()

◆ layout_set_even_h()

static void layout_set_even_h ( struct window w)
static

Definition at line 173 of file layout-set.c.

References LAYOUT_LEFTRIGHT, and layout_set_even().

◆ layout_set_even_v()

static void layout_set_even_v ( struct window w)
static

Definition at line 179 of file layout-set.c.

References layout_set_even(), and LAYOUT_TOPBOTTOM.

◆ layout_set_lookup()

int layout_set_lookup ( const char *  name)

Definition at line 49 of file layout-set.c.

References layout_sets, name, and nitems.

◆ layout_set_main_h()

◆ layout_set_main_v()

◆ layout_set_next()

u_int layout_set_next ( struct window w)

Definition at line 79 of file layout-set.c.

References arrange, window::lastlayout, layout_sets, and nitems.

◆ layout_set_previous()

u_int layout_set_previous ( struct window w)

Definition at line 98 of file layout-set.c.

References arrange, window::lastlayout, layout_sets, and nitems.

◆ layout_set_select()

u_int layout_set_select ( struct window w,
u_int  layout 
)

Definition at line 66 of file layout-set.c.

References arrange, window::lastlayout, layout_sets, and nitems.

◆ layout_set_tiled()

Variable Documentation

◆ arrange

void(* arrange) (struct window *) ( struct window )

Definition at line 39 of file layout-set.c.

Referenced by layout_set_next(), layout_set_previous(), and layout_set_select().

◆ 

layout_sets[] { ... } const struct
Initial value:
= {
{ "even-horizontal", layout_set_even_h },
{ "even-vertical", layout_set_even_v },
{ "main-horizontal", layout_set_main_h },
{ "main-vertical", layout_set_main_v },
{ "tiled", layout_set_tiled },
}
static void layout_set_even_h(struct window *)
Definition: layout-set.c:173
static void layout_set_even_v(struct window *)
Definition: layout-set.c:179
static void layout_set_main_h(struct window *)
Definition: layout-set.c:185
static void layout_set_tiled(struct window *)
Definition: layout-set.c:381
static void layout_set_main_v(struct window *)
Definition: layout-set.c:283

Referenced by layout_set_lookup(), layout_set_next(), layout_set_previous(), and layout_set_select().

◆ name

const char* name

Definition at line 38 of file layout-set.c.

Referenced by alerts_action_applies(), attributes_fromstring(), check_window_name(), client_exec(), cmd_find(), cmd_get_alias(), cmd_parse(), cmd_parse_build_commands(), cmd_refresh_client_update_subscription(), cmd_show_options_all(), cmd_wait_for_add(), cmdq_add_message(), cmdq_error_callback(), cmdq_insert_hook(), cmdq_next(), colour_byname(), control_add_sub(), control_remove_sub(), environ_clear(), environ_find(), environ_put(), environ_set(), environ_unset(), expand_path(), format_cb_client_prefix(), format_expand1(), format_session_name(), format_window_name(), key_bindings_add(), key_bindings_get_table(), key_bindings_init_done(), key_bindings_remove(), key_bindings_remove_table(), key_bindings_reset(), layout_set_lookup(), log_open(), log_toggle(), menu_add_item(), menu_display(), menu_key_cb(), mode_tree_add(), mode_tree_run_command(), notify_add(), notify_client(), notify_hook(), notify_pane(), notify_session(), notify_session_window(), notify_window(), notify_winlink(), options_add(), options_from_string(), options_from_string_choice(), options_from_string_flag(), options_get(), options_get_number(), options_get_only(), options_get_string(), options_map_name(), options_match(), options_match_get(), options_parse(), options_parse_get(), options_push_changes(), options_scope_from_name(), options_set_number(), options_set_string(), options_string_to_style(), osdep_get_cwd(), osdep_get_name(), parse_window_name(), paste_get_name(), paste_get_top(), paste_set(), proc_start(), screen_write_menu(), server_client_check_exit(), server_client_dispatch_identify(), server_client_get_key_table(), server_client_set_key_table(), session_check_name(), session_create(), session_find(), session_group_find(), session_group_new(), spawn_log(), style_add(), style_apply(), tty_create_log(), tty_default_features(), tty_read_callback(), tty_term_apply(), tty_term_create(), tty_term_read_list(), window_customize_build_array(), window_customize_build_option(), window_customize_build_options(), window_customize_draw_option(), window_customize_find_user_options(), window_customize_set_option(), window_customize_set_option_callback(), window_tree_build_pane(), window_tree_build_window(), window_tree_command_done(), yylex_token_tilde(), and yylex_token_variable().