NeoMutt  2022-04-29-247-gc6aae8
Teaching an old dog new tricks
lib.h File Reference

Envelope-editing Window. More...

#include "config.h"
#include "autocrypt/lib.h"
+ Include dependency graph for lib.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct MuttWindowenv_window_new (struct Email *e, struct Buffer *fcc, struct ConfigSubset *sub)
 Create the Envelope Window. More...
int env_function_dispatcher (struct MuttWindow *win, int op)
 Perform an Envelope function - Implements function_dispatcher_t -. More...

Detailed Description

Envelope-editing Window.

  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see

Definition in file lib.h.

Function Documentation

◆ env_window_new()

struct MuttWindow * env_window_new ( struct Email e,
struct Buffer fcc,
struct ConfigSubset sub 

Create the Envelope Window.

fccBuffer to save FCC
Return values
ptrNew Window

Definition at line 969 of file window.c.

983 struct EnvelopeWindowData *wdata = env_wdata_new();
984 wdata->fcc = fcc;
985 wdata->email = e;
986 wdata->sub = sub;
987 wdata->is_news = OptNewsSend;
989 win_env->wdata = wdata;
990 win_env->wdata_free = env_wdata_free;
991 win_env->recalc = env_recalc;
992 win_env->repaint = env_repaint;
994 return win_env;
The "-- Attachments" line.
Definition: private.h:56
struct EnvelopeWindowData * env_wdata_new(void)
Create new Envelope Data.
Definition: wdata.c:55
static void init_header_padding(void)
Calculate how much padding the compose table will need.
Definition: window.c:181
static int env_email_observer(struct NotifyCallback *nc)
Notification that the Email has changed - Implements observer_t -.
Definition: window.c:867
static int env_color_observer(struct NotifyCallback *nc)
Notification that a Color has changed - Implements observer_t -.
Definition: window.c:784
static int env_window_observer(struct NotifyCallback *nc)
Notification that a Window has changed - Implements observer_t -.
Definition: window.c:930
static int env_config_observer(struct NotifyCallback *nc)
Notification that a Config Variable has changed - Implements observer_t -.
Definition: window.c:820
static int env_header_observer(struct NotifyCallback *nc)
Notification that a User Header has changed - Implements observer_t -.
Definition: window.c:891
static int env_recalc(struct MuttWindow *win)
Recalculate the Window data - Implements MuttWindow::recalc() -.
Definition: window.c:751
static int env_repaint(struct MuttWindow *win)
Repaint the Window - Implements MuttWindow::repaint() -.
Definition: window.c:772
void env_wdata_free(struct MuttWindow *win, void **ptr)
Free the Envelope Data - Implements MuttWindow::wdata_free() -.
Definition: wdata.c:39
bool notify_observer_add(struct Notify *notify, enum NotifyType type, observer_t callback, void *global_data)
Add an observer to an object.
Definition: notify.c:189
struct MuttWindow * mutt_window_new(enum WindowType type, enum MuttWindowOrientation orient, enum MuttWindowSize size, int cols, int rows)
Create a new Window.
Definition: mutt_window.c:181
Window with a custom drawing function.
Definition: mutt_window.h:95
Window uses all available vertical space.
Definition: mutt_window.h:38
Use as much space as possible.
Definition: mutt_window.h:52
Window has a fixed size.
Definition: mutt_window.h:47
MuttWindow has changed, NotifyWindow, EventWindow.
Definition: notify_type.h:55
Config has changed, NotifyConfig, EventConfig.
Definition: notify_type.h:43
Colour has changed, NotifyColor, EventColor.
Definition: notify_type.h:41
A header has changed, NotifyHeader EventHeader.
Definition: notify_type.h:47
Register for all notifications.
Definition: notify_type.h:35
bool OptNewsSend
(pseudo) used to change behavior when posting
Definition: options.h:51
struct Notify * notify
Notifications: NotifyEmail, EventEmail.
Definition: email.h:71
Data to fill the Envelope Window.
Definition: wdata.h:39
bool is_news
Email is a news article.
Definition: wdata.h:54
struct Buffer * fcc
Where the outgoing Email will be saved.
Definition: wdata.h:42
struct Email * email
Email being composed.
Definition: wdata.h:41
struct ConfigSubset * sub
Inherited config items.
Definition: wdata.h:40
int(* repaint)(struct MuttWindow *win)
Definition: mutt_window.h:182
void * wdata
Private data.
Definition: mutt_window.h:145
struct Notify * notify
Notifications: NotifyWindow, EventWindow.
Definition: mutt_window.h:138
int(* recalc)(struct MuttWindow *win)
Definition: mutt_window.h:171
void(* wdata_free)(struct MuttWindow *win, void **ptr)
Definition: mutt_window.h:160
Container for Accounts, Notifications.
Definition: neomutt.h:37
struct Notify * notify
Notifications handler.
Definition: neomutt.h:38
+ Here is the call graph for this function:
+ Here is the caller graph for this function: