| 245 | } |
| 246 | |
| 247 | void Notebook::ReorderChild( Widget::Ptr child, IndexType position ) { |
| 248 | auto tab_label = GetTabLabel( child ); |
| 249 | |
| 250 | if( !tab_label ) { |
| 251 | return; |
| 252 | } |
| 253 | |
| 254 | auto old_page_number = GetPageOf( child ); |
| 255 | |
| 256 | RemovePage( old_page_number ); |
| 257 | InsertPage( child, tab_label, position - ( old_page_number > position ? 1 : 0 ) ); |
| 258 | } |
| 259 | |
| 260 | Notebook::TabPosition Notebook::GetTabPosition() const { |
| 261 | return static_cast<TabPosition>( m_tab_position ); |
nothing calls this directly
no outgoing calls
no test coverage detected