Type Definition libnotcurses_sys::widgets::NcSelectorOptions
source · pub type NcSelectorOptions = ncselector_options;Expand description
Options structure for NcSelector.
Implementations§
source§impl NcSelectorOptions
impl NcSelectorOptions
sourcepub fn new(items: &[NcSelectorItem]) -> Self
pub fn new(items: &[NcSelectorItem]) -> Self
New NcSelectorOptions with just the list of items.
sourcepub fn with_all_options(
title: Option<&NcString>,
secondary: Option<&NcString>,
footer: Option<&NcString>,
items: &[NcSelectorItem],
default: u32,
max_display: u32,
opchannels: impl Into<NcChannels>,
descchannels: impl Into<NcChannels>,
titlechannels: impl Into<NcChannels>,
footchannels: impl Into<NcChannels>,
boxchannels: impl Into<NcChannels>
) -> Self
pub fn with_all_options( title: Option<&NcString>, secondary: Option<&NcString>, footer: Option<&NcString>, items: &[NcSelectorItem], default: u32, max_display: u32, opchannels: impl Into<NcChannels>, descchannels: impl Into<NcChannels>, titlechannels: impl Into<NcChannels>, footchannels: impl Into<NcChannels>, boxchannels: impl Into<NcChannels> ) -> Self
New NcSelectorOptions with all options.