51 visible ?
"" :
"\033[0m",
52 (win ==
WinFocus) ?
" <-- \033[1;31mFOCUS\033[0m" :
"");
61#ifdef DEBUG_SHOW_SERIALISE
72 win_serialise(np, buf);
84#ifdef DEBUG_SHOW_SERIALISE
int buf_add_printf(struct Buffer *buf, const char *fmt,...)
Format a string appending a Buffer.
void buf_dealloc(struct Buffer *buf)
Release the memory allocated by a buffer.
struct Buffer buf_make(size_t size)
Make a new buffer on the stack.
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".
const char * name_window_size(const struct MuttWindow *win)
static void win_dump(struct MuttWindow *win, int indent)
void debug_win_dump(void)
static struct MuttWindow * WinFocus
The Window that is currently focussed.
#define mutt_debug(LEVEL,...)
Convenience wrapper for the gui headers.
@ LL_DEBUG1
Log at debug level 1.
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.
#define TAILQ_FOREACH(var, head, field)
struct MuttWindow * RootWindow
Parent of all Windows.
String manipulation buffer.
struct WindowState state
Current state of the Window.
enum MuttWindowOrientation orient
Which direction the Window will expand.
struct MuttWindowList children
Children Windows.
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.