MCPcopy Create free account
hub / github.com/TankOs/SFGUI / GetNthPage

Method GetNthPage

src/SFGUI/Notebook.cpp:272–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272const Widget::Ptr Notebook::GetNthPage( IndexType page_number ) const {
273 if( ( page_number >= 0 ) && ( page_number < GetPageCount() ) ) {
274 return m_children[static_cast<std::size_t>( page_number )].child;
275 }
276
277 return Widget::Ptr();
278}
279
280const Widget::Ptr Notebook::GetNthTabLabel( IndexType page_number ) const {
281 if( ( page_number >= 0 ) && ( page_number < GetPageCount() ) ) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected