58 visible ?
"" :
"\033[0m",
59 (win ==
WinFocus) ?
" <-- \033[1;31mFOCUS\033[0m" :
"");
68#ifdef DEBUG_SHOW_SERIALISE
74static const char *win_size(
struct MuttWindow *win)
107 win_serialise(np, buf);
125#ifdef DEBUG_SHOW_SERIALISE
127 win_serialise(win_root, buf);
#define ARRAY_FOREACH(elem, head)
Iterate over all elements of the array.
int buf_add_printf(struct Buffer *buf, const char *fmt,...)
Format a string appending a Buffer.
size_t buf_addstr(struct Buffer *buf, const char *s)
Add a string to a Buffer.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
Convenience wrapper for the core headers.
Convenience wrapper for the debug headers.
const char * name_window_size(const struct MuttWindow *win)
Get the name of a window size.
static void win_dump(struct MuttWindow *win, int indent)
Recursively dump window structure.
void debug_win_dump(void)
Dump all windows to debug output.
static struct MuttWindow * WinFocus
The Window that is currently focused.
#define mutt_debug(LEVEL,...)
Convenience wrapper for the gui headers.
@ LL_DEBUG1
Log at debug level 1.
@ MODULE_ID_GUI
ModuleGui, Graphical code
Convenience wrapper for the library headers.
bool mutt_window_is_visible(struct MuttWindow *win)
Is the Window visible?
const char * mutt_window_win_name(const struct MuttWindow *win)
Get the name of a Window.
struct MuttWindow * window_get_focus(void)
Get the currently focused Window.
@ MUTT_WIN_ORIENT_VERTICAL
Window uses all available vertical space.
@ MUTT_WIN_SIZE_FIXED
Window has a fixed size.
@ MUTT_WIN_SIZE_MINIMISE
Window size depends on its children.
@ MUTT_WIN_SIZE_MAXIMISE
Window wants as much space as possible.
void * neomutt_get_module_data(struct NeoMutt *n, enum ModuleId id)
Get the private data for a Module.
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
void buf_pool_release(struct Buffer **ptr)
Return a Buffer to the pool.
#define TAILQ_FOREACH(var, head, field)
String manipulation buffer.
struct MuttWindow * root_window
Parent of all Windows.
struct MuttWindowArray children
Children Windows.
struct WindowState state
Current state of the Window.
enum MuttWindowOrientation orient
Which direction the Window will expand.
enum MuttWindowSize size
Type of Window, e.g. MUTT_WIN_SIZE_FIXED.
Container for Accounts, Notifications.
short cols
Number of columns, can be MUTT_WIN_SIZE_UNLIMITED.
short row_offset
Absolute on-screen row.
short col_offset
Absolute on-screen column.
short rows
Number of rows, can be MUTT_WIN_SIZE_UNLIMITED.