tstacked_widget: added getter method for layer grids

This commit is contained in:
Charles Dang 2016-03-03 03:53:17 +11:00
parent ff7128f8dc
commit 02597f0230
2 changed files with 8 additions and 0 deletions

View File

@ -153,4 +153,10 @@ unsigned int tstacked_widget::get_layer_count() const
return generator_->get_item_count();
}
tgrid* tstacked_widget::get_layer_grid(unsigned int i)
{
assert(generator_);
return &generator_->item(i);
}
} // namespace gui2

View File

@ -68,6 +68,8 @@ public:
*/
unsigned int get_layer_count() const;
tgrid* get_layer_grid(unsigned int i);
private:
/**
* Finishes the building initialization of the widget.