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

Method GetTabLabel

src/SFGUI/Notebook.cpp:292–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292const Widget::Ptr Notebook::GetTabLabel( Widget::Ptr child ) const {
293 auto page_number = GetPageOf( child );
294
295 if( page_number < 0 ) {
296 return Widget::Ptr();
297 }
298
299 return m_children[static_cast<std::size_t>( page_number )].tab_label;
300}
301
302void Notebook::SetTabLabel( Widget::Ptr child, Widget::Ptr tab_label ) {
303 auto page_number = GetPageOf( child );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected