NeoMutt
2023-05-17-56-ga67199
Teaching an old dog new tricks
DOXYGEN
wdata.h
Go to the documentation of this file.
1
23
#ifndef MUTT_ENTER_WDATA_H
24
#define MUTT_ENTER_WDATA_H
25
26
#include "config.h"
27
#include <stdbool.h>
28
#include <wchar.h>
29
#include "
mutt.h
"
30
#include "
history/lib.h
"
31
35
enum
EnterRedrawFlags
36
{
37
ENTER_REDRAW_NONE
= 0,
38
ENTER_REDRAW_INIT
,
39
ENTER_REDRAW_LINE
,
40
};
41
45
struct
EnterWindowData
46
{
47
// Function parameters
48
char
*
buf
;
49
size_t
buflen
;
50
int
col
;
51
CompletionFlags
flags
;
52
bool
multiple
;
53
struct
Mailbox
*
m
;
54
char
***
files
;
55
int
*
numfiles
;
56
struct
EnterState
*
state
;
57
58
// Local variables
59
enum
EnterRedrawFlags
redraw
;
60
bool
pass
;
61
bool
first
;
62
enum
HistoryClass
hclass
;
63
wchar_t
*
tempbuf
;
64
size_t
templen
;
65
mbstate_t *
mbstate
;
66
int
tabs
;
67
68
bool
done
;
69
70
struct
CompletionData
*
cd
;
71
};
72
73
#endif
/* MUTT_ENTER_WDATA_H */
EnterRedrawFlags
EnterRedrawFlags
Redraw flags for mutt_enter_string_full()
Definition:
wdata.h:36
ENTER_REDRAW_NONE
@ ENTER_REDRAW_NONE
Nothing to redraw.
Definition:
wdata.h:37
ENTER_REDRAW_LINE
@ ENTER_REDRAW_LINE
Redraw entire line.
Definition:
wdata.h:39
ENTER_REDRAW_INIT
@ ENTER_REDRAW_INIT
Go to end of line and redraw.
Definition:
wdata.h:38
lib.h
Read/write command history from/to a file.
HistoryClass
HistoryClass
Type to differentiate different histories.
Definition:
lib.h:48
mutt.h
Many unsorted constants and some structs.
CompletionFlags
uint16_t CompletionFlags
Flags for mutt_enter_string_full(), e.g. MUTT_COMP_ALIAS.
Definition:
mutt.h:54
CompletionData
State data for auto-completion.
Definition:
data.h:32
EnterState
Keep our place when entering a string.
Definition:
state.h:32
EnterWindowData
Data to fill the Enter Window.
Definition:
wdata.h:46
EnterWindowData::pass
bool pass
Password mode, conceal characters.
Definition:
wdata.h:60
EnterWindowData::tabs
int tabs
Number of times the user has hit tab.
Definition:
wdata.h:66
EnterWindowData::numfiles
int * numfiles
Number of files selected.
Definition:
wdata.h:55
EnterWindowData::flags
CompletionFlags flags
Flags, see CompletionFlags.
Definition:
wdata.h:51
EnterWindowData::buflen
size_t buflen
Length of result buffer.
Definition:
wdata.h:49
EnterWindowData::cd
struct CompletionData * cd
Auto-completion state data.
Definition:
wdata.h:70
EnterWindowData::done
bool done
Is text-entry done?
Definition:
wdata.h:68
EnterWindowData::first
bool first
First time through, no input yet.
Definition:
wdata.h:61
EnterWindowData::multiple
bool multiple
Allow multiple matches.
Definition:
wdata.h:52
EnterWindowData::col
int col
Initial cursor positions.
Definition:
wdata.h:50
EnterWindowData::files
char *** files
List of files selected.
Definition:
wdata.h:54
EnterWindowData::tempbuf
wchar_t * tempbuf
Buffer used by completion.
Definition:
wdata.h:63
EnterWindowData::buf
char * buf
Buffer for the result.
Definition:
wdata.h:48
EnterWindowData::state
struct EnterState * state
Current state of text entry.
Definition:
wdata.h:56
EnterWindowData::redraw
enum EnterRedrawFlags redraw
What needs redrawing? See EnterRedrawFlags.
Definition:
wdata.h:59
EnterWindowData::mbstate
mbstate_t * mbstate
Multi-byte state.
Definition:
wdata.h:65
EnterWindowData::m
struct Mailbox * m
Mailbox.
Definition:
wdata.h:53
EnterWindowData::hclass
enum HistoryClass hclass
History to use, e.g. HC_COMMAND.
Definition:
wdata.h:62
EnterWindowData::templen
size_t templen
Length of complete buffer.
Definition:
wdata.h:64
Mailbox
A mailbox.
Definition:
mailbox.h:79