185 if (ev_w->
win != win_root)
258 bool changed =
false;
bool cs_subset_bool(const struct ConfigSubset *sub, const char *name)
Get a boolean config item by name.
Convenience wrapper for the config headers.
Convenience wrapper for the core headers.
struct MuttWindow * AllDialogsWindow
Parent of all Dialogs.
struct MuttWindow * alldialogs_new(void)
Create the AllDialogs Window.
#define mutt_debug(LEVEL,...)
static int rootwin_config_observer(struct NotifyCallback *nc)
Notification that a Config Variable has changed - Implements observer_t -.
static int rootwin_resize_observer(struct NotifyCallback *nc)
Notification that the terminal has been resized - Implements observer_t -.
static int rootwin_window_observer(struct NotifyCallback *nc)
Notification that a Window has changed - Implements observer_t -.
Help Bar Convenience wrapper for the Help Bar headers.
struct MuttWindow * helpbar_new(void)
Create the Help Bar Window.
@ LL_DEBUG5
Log at debug level 5.
struct MuttWindow * msgcont_new(void)
Create a new Message Container.
struct MuttWindow * MessageContainer
Window acting as a stack for the message windows.
struct MuttWindow * msgwin_new(bool interactive)
Create the Message Window.
Convenience wrapper for the library headers.
bool notify_observer_remove(struct Notify *notify, const observer_t callback, const void *global_data)
Remove an observer from an object.
bool notify_observer_add(struct Notify *notify, enum NotifyType type, observer_t callback, void *global_data)
Add an observer to an object.
void notify_set_parent(struct Notify *notify, struct Notify *parent)
Set the parent notification handler.
bool mutt_str_equal(const char *a, const char *b)
Compare two strings.
void mutt_window_reflow(struct MuttWindow *win)
Resize a Window and its children.
void mutt_window_free(struct MuttWindow **ptr)
Free a Window and its children.
void mutt_window_add_child(struct MuttWindow *parent, struct MuttWindow *child)
Add a child to Window.
struct MuttWindow * mutt_window_new(enum WindowType type, enum MuttWindowOrientation orient, enum MuttWindowSize size, int cols, int rows)
Create a new Window.
void window_invalidate_all(void)
Mark all windows as in need of repaint.
@ WT_ROOT
Parent of All Windows.
@ WT_HELP_BAR
Help Bar containing list of useful key bindings.
@ MUTT_WIN_ORIENT_VERTICAL
Window uses all available vertical space.
@ NT_WINDOW_DELETE
Window is about to be deleted.
@ MUTT_WIN_SIZE_FIXED
Window has a fixed size.
@ NT_WINDOW
MuttWindow has changed, NotifyWindow, EventWindow.
@ NT_CONFIG
Config has changed, NotifyConfig, EventConfig.
@ NT_RESIZE
Window has been resized.
#define TAILQ_FIRST(head)
#define TAILQ_REMOVE(head, elm, field)
#define TAILQ_NEXT(elm, field)
#define TAILQ_INSERT_HEAD(head, elm, field)
void mutt_resize_screen(void)
Update NeoMutt's opinion about the window size.
void rootwin_set_size(int cols, int rows)
Set the dimensions of the Root Window.
void rootwin_cleanup(void)
Free all the default Windows.
struct MuttWindow * RootWindow
Parent of all Windows.
void rootwin_new(void)
Create the default Windows.
struct Notify * notify
Notifications: NotifyConfig, EventConfig.
const char * name
Name of config item that changed.
An Event that happened to a Window.
struct MuttWindow * win
Window that changed.
struct WindowState state
Current state of the Window.
struct Notify * notify
Notifications: NotifyWindow, EventWindow.
struct MuttWindowList children
Children Windows.
enum WindowType type
Window type, e.g. WT_SIDEBAR.
Container for Accounts, Notifications.
struct Notify * notify_resize
Window resize notifications handler.
struct Notify * notify
Notifications handler.
struct ConfigSubset * sub
Inherited config items.
Data passed to a notification function.
void * event_data
Data from notify_send()
enum NotifyType event_type
Send: Event type, e.g. NT_ACCOUNT.
int event_subtype
Send: Event subtype, e.g. NT_ACCOUNT_ADD.
void * global_data
Data from notify_observer_add()
short cols
Number of columns, can be MUTT_WIN_SIZE_UNLIMITED.
short rows
Number of rows, can be MUTT_WIN_SIZE_UNLIMITED.