libadwaita/
tab_view.rs

1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use crate::{TabPage, TabView};
4use glib::translate::*;
5
6impl TabView {
7    #[doc(alias = "adw_tab_view_get_nth_page")]
8    #[doc(alias = "get_nth_page")]
9    pub fn nth_page(&self, position: i32) -> TabPage {
10        assert!(position < self.n_pages());
11        unsafe {
12            from_glib_none(ffi::adw_tab_view_get_nth_page(
13                self.to_glib_none().0,
14                position,
15            ))
16        }
17    }
18}