51 visible ?
"" :
"\033[0m",
52 (win ==
WinFocus) ?
" <-- \033[1;31mFOCUS\033[0m" :
"");
61#ifdef DEBUG_SHOW_SERIALISE
62static const char *win_size(
struct MuttWindow *win)
90 win_serialise(np, buf);
102#ifdef DEBUG_SHOW_SERIALISE
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".
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.
@ 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.
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)
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.
enum MuttWindowSize size
Type of Window, e.g. MUTT_WIN_SIZE_FIXED.
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.