NeoMutt
2024-11-14-34-g5aaf0d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
private_data.h
Go to the documentation of this file.
1
23
#ifndef MUTT_PAGER_PRIVATE_DATA_H
24
#define MUTT_PAGER_PRIVATE_DATA_H
25
26
#include "config.h"
27
#include <regex.h>
28
#include <stdbool.h>
29
#include <stdint.h>
30
#include <stdio.h>
31
#include <sys/stat.h>
32
#include "
lib.h
"
33
#include "
color/lib.h
"
34
35
struct
MuttWindow
;
36
40
struct
PagerPrivateData
41
{
42
struct
PagerView
*
pview
;
43
44
FILE *
fp
;
45
struct
stat
st
;
46
LOFF_T
bytes_read
;
47
48
struct
Line
*
lines
;
49
int
lines_used
;
50
int
lines_max
;
51
int
cur_line
;
52
53
int
old_top_line
;
54
int
win_height
;
55
int
top_line
;
56
int
has_types
;
57
58
struct
QuoteStyle
*
quote_list
;
59
int
q_level
;
60
PagerFlags
hide_quoted
;
61
62
PagerFlags
search_flag
;
63
char
search_str
[256];
64
bool
search_compiled
;
65
regex_t
search_re
;
66
bool
search_back
;
67
68
bool
force_redraw
;
69
PagerRedrawFlags
redraw
;
70
struct
AttrColorList
ansi_list
;
71
struct
Notify
*
notify
;
72
73
int
rc
;
74
int
searchctx
;
75
bool
first
;
76
bool
wrapped
;
77
uint64_t
delay_read_timestamp
;
78
bool
pager_redraw
;
79
enum
PagerLoopMode
loop
;
80
};
81
82
void
pager_private_data_free
(
struct
MuttWindow
*win,
void
**ptr);
83
struct
PagerPrivateData
*
pager_private_data_new
(
void
);
84
85
#endif
/* MUTT_PAGER_PRIVATE_DATA_H */
lib.h
Color and attribute parsing.
PagerLoopMode
PagerLoopMode
What the Pager Event Loop should do next.
Definition:
lib.h:151
PagerFlags
uint16_t PagerFlags
Flags for dlg_pager(), e.g. MUTT_SHOWFLAT.
Definition:
lib.h:59
PagerRedrawFlags
uint8_t PagerRedrawFlags
Flags, e.g. PAGER_REDRAW_PAGER.
Definition:
lib.h:189
pager_private_data_new
struct PagerPrivateData * pager_private_data_new(void)
Create new Pager Data.
Definition:
private_data.c:59
pager_private_data_free
void pager_private_data_free(struct MuttWindow *win, void **ptr)
Free Pager Data.
Definition:
private_data.c:39
lib.h
Key value store.
Line
A line of text in the pager.
Definition:
display.h:51
MuttWindow
Definition:
mutt_window.h:122
Notify
Notification API.
Definition:
notify.c:53
PagerPrivateData
Private state data for the Pager.
Definition:
private_data.h:41
PagerPrivateData::hide_quoted
PagerFlags hide_quoted
Set to MUTT_HIDE when quoted email is hidden <toggle-quoted>
Definition:
private_data.h:60
PagerPrivateData::rc
int rc
Return code from functions.
Definition:
private_data.h:73
PagerPrivateData::q_level
int q_level
Number of unique quoting levels.
Definition:
private_data.h:59
PagerPrivateData::cur_line
int cur_line
Current line (last line visible on screen)
Definition:
private_data.h:51
PagerPrivateData::wrapped
bool wrapped
Has the search/next wrapped around?
Definition:
private_data.h:76
PagerPrivateData::pager_redraw
bool pager_redraw
Force a complete redraw.
Definition:
private_data.h:78
PagerPrivateData::lines_used
int lines_used
Size of lines array (used entries)
Definition:
private_data.h:49
PagerPrivateData::search_str
char search_str[256]
Current search string.
Definition:
private_data.h:63
PagerPrivateData::lines_max
int lines_max
Capacity of lines array (total entries)
Definition:
private_data.h:50
PagerPrivateData::delay_read_timestamp
uint64_t delay_read_timestamp
Time that email was first shown.
Definition:
private_data.h:77
PagerPrivateData::force_redraw
bool force_redraw
Repaint is needed.
Definition:
private_data.h:68
PagerPrivateData::loop
enum PagerLoopMode loop
What the Event Loop should do next, e.g. PAGER_LOOP_CONTINUE.
Definition:
private_data.h:79
PagerPrivateData::lines
struct Line * lines
Array of text lines in pager.
Definition:
private_data.h:48
PagerPrivateData::redraw
PagerRedrawFlags redraw
When to redraw the screen.
Definition:
private_data.h:69
PagerPrivateData::has_types
int has_types
Set to MUTT_TYPES for PAGER_MODE_EMAIL or MUTT_SHOWCOLOR.
Definition:
private_data.h:56
PagerPrivateData::notify
struct Notify * notify
Notifications: NotifyPager, PagerPrivateData.
Definition:
private_data.h:71
PagerPrivateData::bytes_read
LOFF_T bytes_read
Number of bytes read from file.
Definition:
private_data.h:46
PagerPrivateData::top_line
int top_line
First visible line on screen.
Definition:
private_data.h:55
PagerPrivateData::st
struct stat st
Stats about Email file.
Definition:
private_data.h:45
PagerPrivateData::first
bool first
First time flag for toggle-new.
Definition:
private_data.h:75
PagerPrivateData::search_back
bool search_back
Search backwards.
Definition:
private_data.h:66
PagerPrivateData::quote_list
struct QuoteStyle * quote_list
Tree of quoting levels.
Definition:
private_data.h:58
PagerPrivateData::pview
struct PagerView * pview
Object to view in the pager.
Definition:
private_data.h:42
PagerPrivateData::ansi_list
struct AttrColorList ansi_list
List of ANSI colours used in the Pager.
Definition:
private_data.h:70
PagerPrivateData::searchctx
int searchctx
Space to show around search matches.
Definition:
private_data.h:74
PagerPrivateData::search_re
regex_t search_re
Compiled search string.
Definition:
private_data.h:65
PagerPrivateData::win_height
int win_height
Number of lines in the Window.
Definition:
private_data.h:54
PagerPrivateData::old_top_line
int old_top_line
Old top line, used for repainting.
Definition:
private_data.h:53
PagerPrivateData::fp
FILE * fp
File containing decrypted/decoded/weeded Email.
Definition:
private_data.h:44
PagerPrivateData::search_flag
PagerFlags search_flag
Set to MUTT_SEARCH when search results are visible <search-toggle>
Definition:
private_data.h:62
PagerPrivateData::search_compiled
bool search_compiled
Search regex is in use.
Definition:
private_data.h:64
PagerView
Paged view into some data.
Definition:
lib.h:172
QuoteStyle
Style of quoted text.
Definition:
quoted.h:67