86  if ((max_count > 0) && (space > 0))
 
   88    int alloc = (space + max_count - 1) / max_count;
 
   98      alloc = 
MIN(space, alloc);
 
 
  175  if ((max_count > 0) && (space > 0))
 
  177    int alloc = (space + max_count - 1) / max_count;
 
  187      alloc = 
MIN(space, alloc);
 
 
Convenience wrapper for the library headers.
 
@ 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.
 
#define TAILQ_FOREACH(var, head, field)
 
static void window_reflow_vert(struct MuttWindow *win)
Reflow Windows using all the available vertical space.
 
static void window_reflow_horiz(struct MuttWindow *win)
Reflow Windows using all the available horizontal space.
 
void window_reflow(struct MuttWindow *win)
Reflow Windows.
 
short req_cols
Number of columns required.
 
struct WindowState state
Current state of the Window.
 
enum MuttWindowOrientation orient
Which direction the Window will expand.
 
short req_rows
Number of rows required.
 
struct MuttWindowList children
Children Windows.
 
enum MuttWindowSize size
Type of Window, e.g. MUTT_WIN_SIZE_FIXED.
 
bool visible
Window is visible.
 
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.