//----------------------------------------------------------------------------
void Layout::setGeometry(const SGRecti& geom)
{
- if( geom == _geometry )
- return;
-
- _geometry = geom;
- _flags |= LAYOUT_DIRTY;
+ if( geom != _geometry )
+ {
+ _geometry = geom;
+ _flags |= LAYOUT_DIRTY;
+ }
update();
}
}
}
+ //----------------------------------------------------------------------------
+ void Layout::clear()
+ {
+ while( itemAt(0) )
+ takeAt(0);
+ }
+
//----------------------------------------------------------------------------
void Layout::ItemData::reset()
{
SG_LOG( SG_GUI,
SG_DEBUG,
- "Layout::distribute(" << num_children << " items)" );
+ "Layout::distribute(" << space.size << "px for "
+ << num_children << " items, s.t."
+ << " min=" << space.min_size
+ << ", hint=" << space.size_hint
+ << ", max=" << space.max_size << ")" );
if( space.size < space.min_size )
{