NeoMutt
2025-12-11-911-gd8d604
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_PAGER_FUNCTIONS_H
24
#define MUTT_PAGER_FUNCTIONS_H
25
26
#include <stdbool.h>
27
28
struct
KeyEvent
;
29
struct
MuttWindow
;
30
struct
PagerPrivateData
;
31
struct
PagerView
;
32
36
struct
PagerFunctionData
37
{
38
struct
NeoMutt
*
n
;
39
struct
PagerModuleData
*
mod_data
;
40
struct
IndexSharedData
*
shared
;
41
struct
PagerPrivateData
*
priv
;
42
};
43
57
typedef
int (*
pager_function_t
)(
struct
PagerFunctionData
*fdata,
58
const
struct
KeyEvent
*event);
59
63
struct
PagerFunction
64
{
65
int
op
;
66
pager_function_t
function
;
67
};
68
69
int
pager_function_dispatcher
(
struct
MuttWindow
*win,
const
struct
KeyEvent
*event);
70
bool
jump_to_bottom
(
struct
PagerPrivateData
*priv,
struct
PagerView
*pview);
71
struct
MenuDefinition
*
pager_get_menu_definition
(
void
);
72
73
#define MdPager (pager_get_menu_definition())
74
75
#endif
/* MUTT_PAGER_FUNCTIONS_H */
pager_function_dispatcher
int pager_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform a Pager function - Implements function_dispatcher_t -.
Definition
functions.c:1207
pager_get_menu_definition
struct MenuDefinition * pager_get_menu_definition(void)
Get the Pager Menu Definition.
Definition
functions.c:1267
jump_to_bottom
bool jump_to_bottom(struct PagerPrivateData *priv, struct PagerView *pview)
Make sure the bottom line is displayed.
Definition
functions.c:388
pager_function_t
int(* pager_function_t)(struct PagerFunctionData *fdata, const struct KeyEvent *event)
Definition
functions.h:57
IndexSharedData
Data shared between Index, Pager and Sidebar.
Definition
shared_data.h:37
KeyEvent
An event such as a keypress.
Definition
get.h:75
MenuDefinition
Functions for a Dialog or Window.
Definition
menu.h:77
MuttWindow
Definition
mutt_window.h:129
NeoMutt
Container for Accounts, Notifications.
Definition
neomutt.h:41
PagerFunctionData
Data passed to Pager worker functions.
Definition
functions.h:37
PagerFunctionData::shared
struct IndexSharedData * shared
Shared Index data.
Definition
functions.h:40
PagerFunctionData::mod_data
struct PagerModuleData * mod_data
Pager module data.
Definition
functions.h:39
PagerFunctionData::priv
struct PagerPrivateData * priv
Private Pager data.
Definition
functions.h:41
PagerFunctionData::n
struct NeoMutt * n
NeoMutt application data.
Definition
functions.h:38
PagerFunction
A NeoMutt function.
Definition
functions.h:64
PagerFunction::function
pager_function_t function
Function to call.
Definition
functions.h:66
PagerFunction::op
int op
Op code, e.g. OP_MAIN_LIMIT.
Definition
functions.h:65
PagerModuleData
Pager private Module data.
Definition
module_data.h:30
PagerPrivateData
Private state data for the Pager.
Definition
private_data.h:41
PagerView
Paged view into some data.
Definition
lib.h:173