mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 22:01:40 +00:00
tstacked_widget: added getter method for layer grids
This commit is contained in:
parent
ff7128f8dc
commit
02597f0230
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user