BoxLayout.cpp File Reference

#include "Vaca/BoxLayout.h"
#include "Vaca/BoxConstraint.h"
#include "Vaca/Size.h"
#include "Vaca/Debug.h"

Defines

#define GET_CHILD_SIZE(w, h)
#define FINAL_SIZE(w)
#define FIXUP(x, y, w, h)

Functions

static bool WidgetIsExpansive (Widget *widget)


Define Documentation

#define FINAL_SIZE (  ) 

Value:

{                                               \
    if (isHomogeneous())                        \
      sz.w *= childCount;                       \
    sz.w += m_childSpacing * (childCount-1);    \
  }

#define FIXUP ( x,
y,
w,
 ) 

#define GET_CHILD_SIZE ( w,
 ) 

Value:

{                                               \
    if (isHomogeneous())                        \
      sz.w = VACA_MAX(sz.w, pref.w);            \
    else                                        \
      sz.w += pref.w;                           \
    sz.h = VACA_MAX(sz.h, pref.h);              \
  }


Function Documentation

static bool WidgetIsExpansive ( Widget widget  )  [static]