Implement layout_children().

It now properly forwards it to all children in the generator.
This commit is contained in:
Mark de Wever 2010-02-21 10:44:04 +00:00
parent 42424afdb5
commit 6b7a3dc02d
2 changed files with 11 additions and 0 deletions

View file

@ -29,6 +29,14 @@ tstacked_widget::tstacked_widget()
false, false, tgenerator_::independant, false);
}
void tstacked_widget::layout_children()
{
assert(generator_);
for(unsigned i = 0; i < generator_->get_item_count(); ++i) {
generator_->item(i).layout_children();
}
}
namespace {
/**

View file

@ -43,6 +43,9 @@ public:
/** Inherited from tcontrol. */
unsigned get_state() const { return 0; }
/** Inherited from tscrollbar_container. */
void layout_children();
private:
/**