NeoMutt  2025-12-11-872-g385a04
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
functions.h
Go to the documentation of this file.
1
22
23#ifndef MUTT_EDITOR_FUNCTIONS_H
24#define MUTT_EDITOR_FUNCTIONS_H
25
26#include <stdbool.h>
27#include <stddef.h>
28
29struct EnterState;
30struct EnterWindowData;
31struct KeyEvent;
32struct MuttWindow;
33
35
36#define MdEditor (editor_get_menu_definition())
37
47
60typedef int (*enter_function_t)(struct EnterFunctionData *fdata, const struct KeyEvent *event);
61
70
71int enter_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event);
72bool self_insert(struct EnterWindowData *wdata, int ch);
73void replace_part(struct EnterState *es, size_t from, const char *buf);
74
75#endif /* MUTT_EDITOR_FUNCTIONS_H */
struct MenuDefinition * editor_get_menu_definition(void)
Get the Editor Menu Definition.
Definition functions.c:573
void replace_part(struct EnterState *es, size_t from, const char *buf)
Search and replace on a buffer.
Definition functions.c:149
bool self_insert(struct EnterWindowData *wdata, int ch)
Insert a normal character.
Definition window.c:88
int(* enter_function_t)(struct EnterFunctionData *fdata, const struct KeyEvent *event)
Definition functions.h:60
int enter_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform an Enter function - Implements function_dispatcher_t -.
Definition functions.c:533
Editor private Module data.
Definition module_data.h:30
Data passed to Enter worker functions.
Definition functions.h:42
struct EditorModuleData * mod_data
Editor module data.
Definition functions.h:44
struct NeoMutt * n
NeoMutt application data.
Definition functions.h:43
struct EnterWindowData * wdata
Enter window data.
Definition functions.h:45
A NeoMutt function.
Definition functions.h:66
int op
Op code, e.g. OP_SEARCH.
Definition functions.h:67
enter_function_t function
Function to call.
Definition functions.h:68
Keep our place when entering a string.
Definition state.h:32
Data to fill the Enter Window.
Definition wdata.h:57
An event such as a keypress.
Definition get.h:75
Functions for a Dialog or Window.
Definition menu.h:77
Container for Accounts, Notifications.
Definition neomutt.h:41