NeoMutt  2021-10-29-43-g6b8931
Teaching an old dog new tricks
ibar.h File Reference

Index Bar (status) More...

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

Go to the source code of this file.


struct MuttWindowibar_new (struct MuttWindow *parent, struct IndexSharedData *shared, struct IndexPrivateData *priv)
 Create the Index Bar (status) More...

Detailed Description

Index Bar (status)

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

Function Documentation

◆ ibar_new()

struct MuttWindow* ibar_new ( struct MuttWindow parent,
struct IndexSharedData shared,
struct IndexPrivateData priv 

Create the Index Bar (status)

parentParent Window
sharedShared Index data
privPrivate Index data
Return values
ptrNew Index Bar

Definition at line 349 of file ibar.c.

351 {
352  struct MuttWindow *win_ibar =
356  win_ibar->wdata = ibar_data_new(shared, priv);
357  win_ibar->wdata_free = ibar_data_free;
358  win_ibar->recalc = ibar_recalc;
359  win_ibar->repaint = ibar_repaint;
368  return win_ibar;
369 }
static int ibar_menu_observer(struct NotifyCallback *nc)
Notification that a Menu has changed - Implements observer_t -.
Definition: ibar.c:266
static int ibar_window_observer(struct NotifyCallback *nc)
Notification that a Window has changed - Implements observer_t -.
Definition: ibar.c:281
static int ibar_config_observer(struct NotifyCallback *nc)
Notification that a Config Variable has changed - Implements observer_t -.
Definition: ibar.c:193
static int ibar_color_observer(struct NotifyCallback *nc)
Notification that a Color has changed - Implements observer_t -.
Definition: ibar.c:172
static int ibar_mailbox_observer(struct NotifyCallback *nc)
Notification that a Mailbox has changed - Implements observer_t -.
Definition: ibar.c:251
static int ibar_index_observer(struct NotifyCallback *nc)
Notification that the Index has changed - Implements observer_t -.
Definition: ibar.c:220
static int ibar_recalc(struct MuttWindow *win)
Recalculate the Window data - Implements MuttWindow::recalc() -.
Definition: ibar.c:90
static int ibar_repaint(struct MuttWindow *win)
Repaint the Window - Implements MuttWindow::repaint() -.
Definition: ibar.c:141
static void ibar_data_free(struct MuttWindow *win, void **ptr)
Free the private data attached to the MuttWindow - Implements MuttWindow::wdata_free() -.
Definition: ibar.c:317
static struct IBarPrivateData * ibar_data_new(struct IndexSharedData *shared, struct IndexPrivateData *priv)
Free the private data attached to the MuttWindow.
Definition: ibar.c:331
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:180
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:53
Menu has changed, MenuRedrawFlags.
Definition: notify_type.h:49
Config has changed, NotifyConfig, EventConfig.
Definition: notify_type.h:42
Colour has changed, NotifyColor, EventColor.
Definition: notify_type.h:39
Mailbox has changed, NotifyMailbox, EventMailbox.
Definition: notify_type.h:48
Index data has changed, NotifyIndex, IndexSharedData.
Definition: notify_type.h:47
struct Notify * notify
Notifications: NotifyIndex, IndexSharedData.
Definition: shared_data.h:44
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
struct MuttWindow * parent
Parent Window.
Definition: mutt_window.h:135
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: