NeoMutt  2025-12-11-980-ge38c27
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h
Go to the documentation of this file.
1
22
41
42#ifndef MUTT_SIDEBAR_LIB_H
43#define MUTT_SIDEBAR_LIB_H
44
45#include "mutt/list.h"
46
47struct Buffer;
48struct Command;
49struct KeyEvent;
50struct ListHead;
51struct MuttWindow;
52struct NeoMutt;
53struct ParseContext;
54struct ParseError;
55struct SubMenu;
56
57void sb_init(struct MuttWindow *all_dialogs_window);
58void sb_cleanup(struct ListHead *sidebar_pinned, struct MuttWindow *all_dialogs_window);
59
60int sb_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event);
61
62enum CommandResult parse_sidebar_pin(const struct Command *cmd, struct Buffer *line,
63 const struct ParseContext *pc,
64 struct ParseError *pe);
65enum CommandResult parse_sidebar_unpin(const struct Command *cmd, struct Buffer *line,
66 const struct ParseContext *pc,
67 struct ParseError *pe);
68
69void sidebar_init_keys(struct NeoMutt *n, struct SubMenu *sm_generic);
70struct SubMenu *sidebar_get_submenu(void);
71
72#endif /* MUTT_SIDEBAR_LIB_H */
CommandResult
Error codes for command_t parse functions.
Definition command.h:37
enum CommandResult parse_sidebar_pin(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'sidebar-pin' command - Implements Command::parse() -.
Definition commands.c:45
enum CommandResult parse_sidebar_unpin(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'sidebar-unpin' command - Implements Command::parse() -.
Definition commands.c:76
int sb_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform a Sidebar function - Implements function_dispatcher_t -.
Singly-linked list type.
void sb_init(struct MuttWindow *all_dialogs_window)
Set up the Sidebar.
Definition sidebar.c:213
void sidebar_init_keys(struct NeoMutt *n, struct SubMenu *sm_generic)
Initialise the Sidebar Keybindings - Implements ::init_keys_api.
struct SubMenu * sidebar_get_submenu(void)
Get the Sidebar SubMenu.
void sb_cleanup(struct ListHead *sidebar_pinned, struct MuttWindow *all_dialogs_window)
Clean up the Sidebar.
Definition sidebar.c:233
String manipulation buffer.
Definition buffer.h:36
An event such as a keypress.
Definition get.h:75
Container for Accounts, Notifications.
Definition neomutt.h:41
Context for config parsing (history/backtrace)
Definition pcontext.h:34
Detailed error information from config parsing.
Definition perror.h:34
Collection of related functions.
Definition menudef.h:33