pub type NcTreeOptions = nctree_options;Expand description
Options struct for NcTree.
Aliased Type§
#[repr(C)]pub struct NcTreeOptions {
pub items: *const nctree_item,
pub count: u32,
pub nctreecb: Option<unsafe extern "C" fn(*mut ncplane, *mut c_void, i32) -> i32>,
pub indentcols: i32,
pub flags: u64,
}Fields§
§items: *const nctree_itemtop-level nctree_item array
count: u32size of |items|
nctreecb: Option<unsafe extern "C" fn(*mut ncplane, *mut c_void, i32) -> i32>item callback function
indentcols: i32columns to indent per level of hierarchy
flags: u64bitfield of NCTREE_OPTION_*
Implementations§
Source§impl NcTreeOptions
§NcTreeOptions constructors
impl NcTreeOptions
§NcTreeOptions constructors
Sourcepub fn new(items: &[NcTreeItem], indentcols: u32) -> Self
pub fn new(items: &[NcTreeItem], indentcols: u32) -> Self
New NcTreeOptions for NcTree.
Sourcepub fn with_all_args(
items: &[NcTreeItem],
count: usize,
nctreecb: Option<NcTreeItemCbUnsafe>,
indentcols: u32,
flags: u64,
) -> Self
pub fn with_all_args( items: &[NcTreeItem], count: usize, nctreecb: Option<NcTreeItemCbUnsafe>, indentcols: u32, flags: u64, ) -> Self
New NcTreeOptions for NcTree, with all args.