Skip to content

Commit

Permalink
tstacked_widget: added getter method for layer grids
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Mar 3, 2016
1 parent ff7128f commit 02597f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/widgets/stacked_widget.cpp
Expand Up @@ -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
2 changes: 2 additions & 0 deletions src/gui/widgets/stacked_widget.hpp
Expand Up @@ -68,6 +68,8 @@ class tstacked_widget : public tcontainer_
*/
unsigned int get_layer_count() const;

tgrid* get_layer_grid(unsigned int i);

private:
/**
* Finishes the building initialization of the widget.
Expand Down

0 comments on commit 02597f0

Please sign in to comment.