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

Method HandleRemove

src/SFGUI/Notebook.cpp:523–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521}
522
523void Notebook::HandleRemove( Widget::Ptr child ) {
524 auto page_number = GetPageOf( child );
525
526 if( page_number >= 0 ) {
527 Remove( ( m_children.begin() + GetPageOf( child ) )->tab_label );
528 m_children.erase( m_children.begin() + GetPageOf( child ) );
529 }
530
531 RequestResize();
532 Invalidate();
533}
534
535void Notebook::HandleSizeChange() {
536 m_first_tab = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected