| 278 | } |
| 279 | |
| 280 | const 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 | |
| 288 | Notebook::IndexType Notebook::GetPageCount() const { |
| 289 | return static_cast<IndexType>( m_children.size() ); |
no outgoing calls
no test coverage detected