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

Method SetTabLabel

src/SFGUI/Notebook.cpp:302–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302void Notebook::SetTabLabel( Widget::Ptr child, Widget::Ptr tab_label ) {
303 auto page_number = GetPageOf( child );
304
305 if( page_number < 0 ) {
306 return;
307 }
308
309 m_children[static_cast<std::size_t>( page_number )].tab_label = tab_label;
310}
311
312void Notebook::SetCurrentPage( IndexType page_number ) {
313 auto old_page = m_current_page;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected