use super::{NcTab, NcTabbed, NcTabbedOptions};
impl NcTabbedOptions {
pub const fn new() -> Self {
Self {
tchannels: 0,
tattrword: 0,
flags: 0,
}
}
}
impl NcTabbed {
pub fn new<'a>(plane: &mut NcPlane) -> NcResult<&'a mut Self> {
Self::with_options(plane, NcTabbedOptions::new())
}
pub fn with_options<'a>(
plane: &mut NcPlane,
options: NcTabbedOptions,
) -> NcResult<&'a mut Self> {
error_ref_mut![unsafe { nctabbed_create(plane, &options) }]
}
}