87 #ifdef USE_DEBUG_WINDOW 123 #ifdef USE_DEBUG_WINDOW 147 if ((c_status_on_top && (win_first->
type ==
WT_INDEX)) ||
bool mutt_str_equal(const char *a, const char *b)
Compare two strings.
A new Dialog Window has been created, e.g. WT_DLG_INDEX.
bool cs_subset_bool(const struct ConfigSubset *sub, const char *name)
Get a boolean config item by name.
#define TAILQ_FIRST(head)
Data passed to a notification function.
void window_set_focus(struct MuttWindow *win)
Set the Window focus.
An Event that happened to a Window.
#define TAILQ_LAST(head, headname)
Window uses all available vertical space.
WindowType
Type of Window.
#define WN_HIDDEN
Window became hidden.
A division of the screen.
static int dialog_config_observer(struct NotifyCallback *nc)
Listen for config changes affecting a Dialog - Implements observer_t.
Container for Accounts, Notifications.
MuttWindow has changed, NotifyWindow, EventWindow.
struct MuttWindow * dialog_create_simple_index(struct Menu *menu, enum WindowType type)
Create a simple index Dialog.
Convenience wrapper for the config headers.
An Index Window containing a selection list.
void mutt_window_free(struct MuttWindow **ptr)
Free a Window and its children.
enum NotifyType event_type
Send: Event type, e.g. NT_ACCOUNT.
struct MuttWindow * focus
Focussed Window.
struct Notify * notify
Notifications system.
Convenience wrapper for the core headers.
void dialog_push(struct MuttWindow *dlg)
Display a Window to the user.
bool notify_observer_add(struct Notify *notify, enum NotifyType type, observer_t callback, void *global_data)
Add an observer to an object.
void * global_data
Data from notify_observer_add()
#define TAILQ_REMOVE(head, elm, field)
struct WindowState state
Current state of the Window.
bool visible
Window is visible.
#define MUTT_WIN_SIZE_UNLIMITED
Use as much space as possible.
short rows
Number of rows, can be MUTT_WIN_SIZE_UNLIMITED.
void dialog_destroy_simple_index(struct MuttWindow **ptr)
Destroy a simple index Dialog.
#define TAILQ_INSERT_TAIL(head, elm, field)
struct Notify * notify
Notifications handler.
Container for All Dialogs (nested Windows)
struct MuttWindow * AllDialogsWindow
Parent of all Dialogs.
void * event_data
Data from notify_send()
void mutt_window_add_child(struct MuttWindow *parent, struct MuttWindow *child)
Add a child to Window.
Config has changed, NotifyConfig, EventConfig.
Convenience wrapper for the debug headers.
void mutt_window_reflow(struct MuttWindow *win)
Resize a Window and its children.
struct MuttWindow * parent
Parent Window.
#define WN_VISIBLE
Window became visible.
void dialog_pop(void)
Hide a Window from the user.
struct MuttWindowList children
Children Windows.
bool notify_observer_remove(struct Notify *notify, observer_t callback, void *global_data)
Remove an observer from an object.
void notify_set_parent(struct Notify *notify, struct Notify *parent)
Set the parent notification handler.
void debug_win_dump(void)
struct ConfigSubset * sub
Inherited config items.
struct MuttWindow * mutt_window_new(enum WindowType type, enum MuttWindowOrientation orient, enum MuttWindowSize size, int cols, int rows)
Create a new Window.
Convenience wrapper for the library headers.
Window wants as much space as possible.
Index Bar containing status info about the Index.
enum WindowType type
Window type, e.g. WT_SIDEBAR.
struct MuttWindow * dialog_find(struct MuttWindow *win)
Find the parent Dialog of a Window.
const char * name
Name of config item that changed.
bool notify_send(struct Notify *notify, enum NotifyType event_type, int event_subtype, void *event_data)
Send out a notification message.