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)  

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

Go to the source code of this file.

Data Structures

struct  menu_data
 

Functions

void menu_add_items (struct menu *menu, const struct menu_item *items, struct cmdq_item *qitem, struct client *c, struct cmd_find_state *fs)
 
void menu_add_item (struct menu *menu, const struct menu_item *item, struct cmdq_item *qitem, struct client *c, struct cmd_find_state *fs)
 
struct menumenu_create (const char *title)
 
void menu_free (struct menu *menu)
 
static struct screenmenu_mode_cb (struct client *c, u_int *cx, u_int *cy)
 
static void menu_draw_cb (struct client *c, struct screen_redraw_ctx *ctx0)
 
static void menu_free_cb (struct client *c)
 
static int menu_key_cb (struct client *c, struct key_event *event)
 
int menu_display (struct menu *menu, int flags, struct cmdq_item *item, u_int px, u_int py, struct client *c, struct cmd_find_state *fs, menu_choice_cb cb, void *data)
 

Function Documentation

◆ menu_add_item()

◆ menu_add_items()

void menu_add_items ( struct menu menu,
const struct menu_item items,
struct cmdq_item qitem,
struct client c,
struct cmd_find_state fs 
)

Definition at line 44 of file menu.c.

References menu_add_item(), and menu_item::name.

Referenced by mode_tree_display_menu().

◆ menu_create()

struct menu* menu_create ( const char *  title)

◆ menu_display()

◆ menu_draw_cb()

◆ menu_free()

◆ menu_free_cb()

static void menu_free_cb ( struct client c)
static

◆ menu_key_cb()

◆ menu_mode_cb()

static struct screen* menu_mode_cb ( struct client c,
u_int *  cx,
u_int *  cy 
)
static

Definition at line 135 of file menu.c.

References client::overlay_data, and menu_data::s.

Referenced by menu_display().