Struct libnotcurses_sys::ffi::ncmenu_options [−][src]
#[repr(C)]pub struct ncmenu_options { pub sections: *mut ncmenu_section, pub sectioncount: c_int, pub headerchannels: u64, pub sectionchannels: u64, pub flags: u64, }
Fields
sections: *mut ncmenu_section
array of ‘sectioncount’ menu_sections
sectioncount: c_int
must be positive
headerchannels: u64
styling for header
sectionchannels: u64
styling for sections
flags: u64
flag word of NCMENU_OPTION_*
Implementations
New NcMenuOptions for NcMenu
.
sections
must contain at least 1 NcMenuSection
.
pub fn with_all_args(
sections: &mut [NcMenuSection],
style_header: NcChannels,
style_sections: NcChannels,
flags: u64
) -> Self
[src]
pub fn with_all_args(
sections: &mut [NcMenuSection],
style_header: NcChannels,
style_sections: NcChannels,
flags: u64
) -> Self
[src]New NcMenuOptions for NcMenu
, with all args.
sections
must contain at least 1 NcMenuSection
.
Returns the styling for the header.
(No equivalent C style function)
Returns a mutable reference of the styling for the sections.
(No equivalent C style function)
Returns the styling for the sections.
(No equivalent C style function)
Returns a mutable reference of the styling for the sections.
(No equivalent C style function)
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
Auto Trait Implementations
impl RefUnwindSafe for ncmenu_options
impl !Send for ncmenu_options
impl !Sync for ncmenu_options
impl Unpin for ncmenu_options
impl UnwindSafe for ncmenu_options
Blanket Implementations
Mutably borrows from an owned value. Read more