NeoMutt  2025-12-11-435-g4ac674
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
34extern struct MenuDefinition *MdEditor;
35extern struct SubMenu *SmEditor;
36
49typedef int (*enter_function_t)(struct EnterWindowData *wdata, const struct KeyEvent *event);
50
59
60int enter_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event);
61bool self_insert(struct EnterWindowData *wdata, int ch);
62void replace_part(struct EnterState *es, size_t from, const char *buf);
63
64#endif /* MUTT_EDITOR_FUNCTIONS_H */
struct SubMenu * SmEditor
Editor functions.
Definition functions.c:49
struct MenuDefinition * MdEditor
Editor Menu Definition.
Definition functions.c:46
int(* enter_function_t)(struct EnterWindowData *wdata, const struct KeyEvent *event)
Definition functions.h:49
void replace_part(struct EnterState *es, size_t from, const char *buf)
Search and replace on a buffer.
Definition functions.c:151
bool self_insert(struct EnterWindowData *wdata, int ch)
Insert a normal character.
Definition window.c:86
int enter_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform an Enter function - Implements function_dispatcher_t -.
Definition functions.c:510
A NeoMutt function.
Definition functions.h:55
int op
Op code, e.g. OP_SEARCH.
Definition functions.h:56
enter_function_t function
Function to call.
Definition functions.h:57
Keep our place when entering a string.
Definition state.h:32
Data to fill the Enter Window.
Definition wdata.h:51
An event such as a keypress.
Definition get.h:50
Functions for a Dialog or Window.
Definition menu.h:80
Collection of related functions.
Definition menu.h:68