libnotcurses_sys/widgets/tabbed/
mod.rs

1//! `NcTabbed` widget.
2
3// functions already exported by bindgen : 39
4// ------------------------------------------
5//   nctab_cb
6//   nctab_move
7//   nctab_move_left
8//   nctab_move_right
9//   nctab_name
10//   nctab_name_width
11//   nctab_next
12//   nctab_prev
13//   nctab_set_cb
14//   nctab_set_name
15//   nctab_set_userptr
16//   nctab_userptr
17//   nctabbed_add
18//   nctabbed_channels
19//   nctabbed_content_plane
20//   nctabbed_create
21//   nctabbed_del
22//   nctabbed_destroy
23//   nctabbed_ensure_selected_header_visible
24//   nctabbed_leftmost
25//   nctabbed_next
26//   nctabbed_plane
27//   nctabbed_prev
28//   nctabbed_redraw
29//   nctabbed_rotate
30//   nctabbed_select
31//   nctabbed_selected
32//   nctabbed_separator
33//   nctabbed_separator_width
34//   nctabbed_set_hdrchan
35//   nctabbed_set_selchan
36//   nctabbed_set_separator
37//   nctabbed_set_sepchan
38//   nctabbed_tabcount
39//   nctablet_ncplane
40
41use crate::c_api::ffi;
42
43// mod methods;
44
45/// A tab for [`NcTabbed`].
46///
47/// `type in C: nctab (struct)`
48pub type NcTab = ffi::nctab;
49
50/// Tabbed widgets.
51///
52/// The tab list is displayed at the top or at the bottom of the plane,
53/// and only one tab is visible at a time.
54///
55/// `type in C: nctabbed (struct)`
56pub type NcTabbed = ffi::nctabbed;
57
58/// Options for [`NcTabbed`].
59///
60/// `type in C: nctabbed_options (struct)`
61pub type NcTabbedOptions = ffi::nctabbed_options;
62
63impl NcTabbedOptions {
64    /// To display the tab list at the bottom instead of at the top of the plane.
65    pub const BOTTOM: u32 = c_api::NCTABBED_OPTION_BOTTOM;
66}
67
68pub(crate) mod c_api {
69    use super::ffi;
70
71    /// To display the tab list at the bottom instead of at the top of the plane.
72    pub const NCTABBED_OPTION_BOTTOM: u32 = ffi::NCTABBED_OPTION_BOTTOM;
73}