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

Method GetNthTabLabel

src/SFGUI/Notebook.cpp:280–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280const Widget::Ptr Notebook::GetNthTabLabel( IndexType page_number ) const {
281 if( ( page_number >= 0 ) && ( page_number < GetPageCount() ) ) {
282 return m_children[static_cast<std::size_t>( page_number )].tab_label;
283 }
284
285 return Widget::Ptr();
286}
287
288Notebook::IndexType Notebook::GetPageCount() const {
289 return static_cast<IndexType>( m_children.size() );

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected