Struct libnotcurses_sys::c_api::nctree_options
source · 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§
source§impl nctree_options
impl nctree_options
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.
Trait Implementations§
source§impl Debug for nctree_options
impl Debug for nctree_options
source§impl Default for nctree_options
impl Default for nctree_options
source§impl Hash for nctree_options
impl Hash for nctree_options
source§impl Ord for nctree_options
impl Ord for nctree_options
source§fn cmp(&self, other: &nctree_options) -> Ordering
fn cmp(&self, other: &nctree_options) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<nctree_options> for nctree_options
impl PartialEq<nctree_options> for nctree_options
source§fn eq(&self, other: &nctree_options) -> bool
fn eq(&self, other: &nctree_options) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<nctree_options> for nctree_options
impl PartialOrd<nctree_options> for nctree_options
source§fn partial_cmp(&self, other: &nctree_options) -> Option<Ordering>
fn partial_cmp(&self, other: &nctree_options) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more