NcTreeOptions

Type Alias NcTreeOptions 

Source
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_item

top-level nctree_item array

§count: u32

size of |items|

§nctreecb: Option<unsafe extern "C" fn(*mut ncplane, *mut c_void, i32) -> i32>

item callback function

§indentcols: i32

columns to indent per level of hierarchy

§flags: u64

bitfield of NCTREE_OPTION_*

Implementations§

Source§

impl NcTreeOptions

§NcTreeOptions constructors

Source

pub fn new(items: &[NcTreeItem], indentcols: u32) -> Self

New NcTreeOptions for NcTree.

Source

pub fn with_all_args( items: &[NcTreeItem], count: usize, nctreecb: Option<NcTreeItemCbUnsafe>, indentcols: u32, flags: u64, ) -> Self

New NcTreeOptions for NcTree, with all args.