NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
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
29
struct
EnterState
;
30
struct
EnterWindowData
;
31
struct
KeyEvent
;
32
struct
MuttWindow
;
33
34
struct
MenuDefinition
*
editor_get_menu_definition
(
void
);
35
39
struct
EnterFunctionData
40
{
41
struct
NeoMutt
*
n
;
42
struct
EditorModuleData
*
mod_data
;
43
struct
EnterWindowData
*
wdata
;
44
};
45
58
typedef
int (*
enter_function_t
)(
struct
EnterFunctionData
*fdata,
const
struct
KeyEvent
*event);
59
63
struct
EnterFunction
64
{
65
int
op
;
66
enter_function_t
function
;
67
};
68
69
int
enter_function_dispatcher
(
struct
MuttWindow
*win,
const
struct
KeyEvent
*event);
70
bool
self_insert
(
struct
EnterWindowData
*wdata,
int
ch);
71
void
replace_part
(
struct
EnterState
*es,
size_t
from,
const
char
*buf);
72
73
#endif
/* MUTT_EDITOR_FUNCTIONS_H */
editor_get_menu_definition
struct MenuDefinition * editor_get_menu_definition(void)
Get the Editor Menu Definition.
Definition
functions.c:575
replace_part
void replace_part(struct EnterState *es, size_t from, const char *buf)
Search and replace on a buffer.
Definition
functions.c:150
self_insert
bool self_insert(struct EnterWindowData *wdata, int ch)
Insert a normal character.
Definition
window.c:88
enter_function_t
int(* enter_function_t)(struct EnterFunctionData *fdata, const struct KeyEvent *event)
Definition
functions.h:58
enter_function_dispatcher
int enter_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform an Enter function - Implements function_dispatcher_t -.
Definition
functions.c:535
EditorModuleData
Editor private Module data.
Definition
module_data.h:30
EnterFunctionData
Data passed to Enter worker functions.
Definition
functions.h:40
EnterFunctionData::mod_data
struct EditorModuleData * mod_data
Editor module data.
Definition
functions.h:42
EnterFunctionData::n
struct NeoMutt * n
NeoMutt application data.
Definition
functions.h:41
EnterFunctionData::wdata
struct EnterWindowData * wdata
Enter window data.
Definition
functions.h:43
EnterFunction
A NeoMutt function.
Definition
functions.h:64
EnterFunction::op
int op
Op code, e.g. OP_SEARCH.
Definition
functions.h:65
EnterFunction::function
enter_function_t function
Function to call.
Definition
functions.h:66
EnterState
Keep our place when entering a string.
Definition
state.h:32
EnterWindowData
Data to fill the Enter Window.
Definition
wdata.h:57
KeyEvent
An event such as a keypress.
Definition
get.h:75
MenuDefinition
Functions for a Dialog or Window.
Definition
menudef.h:44
MuttWindow
Definition
mutt_window.h:129
NeoMutt
Container for Accounts, Notifications.
Definition
neomutt.h:41