Struct libnotcurses_sys::c_api::nctree_options [−][src]
#[repr(C)]pub struct nctree_options {
pub items: *const nctree_item,
pub count: c_uint,
pub nctreecb: Option<unsafe extern "C" fn(arg1: *mut ncplane, arg2: *mut c_void, arg3: c_int) -> c_int>,
pub indentcols: c_int,
pub flags: u64,
}Fields
items: *const nctree_itemtop-level nctree_item array
count: c_uintsize of |items|
nctreecb: Option<unsafe extern "C" fn(arg1: *mut ncplane, arg2: *mut c_void, arg3: c_int) -> c_int>item callback function
indentcols: c_intcolumns to indent per level of hierarchy
flags: u64bitfield of NCTREE_OPTION_*
Implementations
pub fn with_all_args(
items: &[NcTreeItem],
count: usize,
nctreecb: Option<NcTreeItemCbUnsafe>,
indentcols: NcDim,
flags: u64
) -> Self
pub fn with_all_args(
items: &[NcTreeItem],
count: usize,
nctreecb: Option<NcTreeItemCbUnsafe>,
indentcols: NcDim,
flags: u64
) -> Self
New NcTreeOptions for NcTree, with all args.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
