NeoMutt  2022-04-29-249-gaae397
Teaching an old dog new tricks
cbar.h File Reference

Compose Bar. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct MuttWindowcbar_new (struct ComposeSharedData *shared)
 Create the Compose Bar (status) More...

Detailed Description

Compose Bar.

  • 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 cbar.h.

Function Documentation

◆ cbar_new()

struct MuttWindow * cbar_new ( struct ComposeSharedData shared)

Create the Compose Bar (status)

sharedShared compose data

Definition at line 304 of file cbar.c.

310 win_cbar->wdata = cbar_data_new();
311 win_cbar->wdata_free = cbar_data_free;
312 win_cbar->recalc = cbar_recalc;
313 win_cbar->repaint = cbar_repaint;
320 return win_cbar;
struct ComposeBarData * cbar_data_new(void)
Free the private data attached to the MuttWindow.
Definition: cbar_data.c:55
int cbar_color_observer(struct NotifyCallback *nc)
Notification that a Color has changed - Implements observer_t -.
Definition: cbar.c:203
int cbar_config_observer(struct NotifyCallback *nc)
Notification that a Config Variable has changed - Implements observer_t -.
Definition: cbar.c:229
int cbar_window_observer(struct NotifyCallback *nc)
Notification that a Window has changed - Implements observer_t -.
Definition: cbar.c:267
int cbar_email_observer(struct NotifyCallback *nc)
Notification that the Email has changed - Implements observer_t -.
Definition: cbar.c:250
static int cbar_recalc(struct MuttWindow *win)
Recalculate the Window data - Implements MuttWindow::recalc() -.
Definition: cbar.c:160
static int cbar_repaint(struct MuttWindow *win)
Repaint the Window - Implements MuttWindow::repaint() -.
Definition: cbar.c:183
void cbar_data_free(struct MuttWindow *win, void **ptr)
Free the private data attached to the MuttWindow - Implements MuttWindow::wdata_free() -.
Definition: cbar_data.c:40
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
Status Bar containing extra info about the Index/Pager/etc.
Definition: mutt_window.h:102
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
Email has changed, NotifyEmail, EventEmail.
Definition: notify_type.h:44
struct Email * email
Email being composed.
Definition: shared_data.h:36
struct Notify * notify
Notifications: NotifyEmail, EventEmail.
Definition: email.h:71
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: