Type Definition libnotcurses_sys::NcOptions
source · pub type NcOptions = notcurses_options;Expand description
Implementations§
source§impl NcOptions
impl NcOptions
sourcepub fn builder() -> NcOptionsBuilder
pub fn builder() -> NcOptionsBuilder
Returns a default Nc options builder.
sourcepub fn to_builder(&self) -> NcOptionsBuilder
pub fn to_builder(&self) -> NcOptionsBuilder
Returns a builder object from the current Nc options.
sourcepub fn with_margins(top: u32, right: u32, bottom: u32, left: u32) -> Self
pub fn with_margins(top: u32, right: u32, bottom: u32, left: u32) -> Self
New NcOptions, with margins.
sourcepub fn with_flags(flags: NcFlag) -> Self
pub fn with_flags(flags: NcFlag) -> Self
New NcOptions, with flags.
sourcepub fn with_all_options(
loglevel: NcLogLevel,
trbl_margins: Option<(u32, u32, u32, u32)>,
flags: NcFlag
) -> NcOptions
pub fn with_all_options( loglevel: NcLogLevel, trbl_margins: Option<(u32, u32, u32, u32)>, flags: NcFlag ) -> NcOptions
New NcOptions, with flags
source§impl NcOptions
impl NcOptions
sourcepub fn log_level(&self) -> NcLogLevel
pub fn log_level(&self) -> NcLogLevel
Returns the log level.
sourcepub fn is_drain_input(&self) -> bool
pub fn is_drain_input(&self) -> bool
Returns true if it has the DrainInput flag set.
sourcepub fn is_inhibit_set_locale(&self) -> bool
pub fn is_inhibit_set_locale(&self) -> bool
Returns true if it has the InhibitSetLocale flag set.
sourcepub fn is_no_alternate_screen(&self) -> bool
pub fn is_no_alternate_screen(&self) -> bool
Returns true if it has the NoAlternateScreen flag set.
sourcepub fn is_no_clear_bitmaps(&self) -> bool
pub fn is_no_clear_bitmaps(&self) -> bool
Returns true if it has the NoClearBitmaps flag set.
sourcepub fn is_no_font_changes(&self) -> bool
pub fn is_no_font_changes(&self) -> bool
Returns true if it has the NoFontChanges flag set.
sourcepub fn is_no_quit_sig_handlers(&self) -> bool
pub fn is_no_quit_sig_handlers(&self) -> bool
Returns true if it has the NoQuitSigHandlers flag set.
sourcepub fn is_no_winch_sig_handler(&self) -> bool
pub fn is_no_winch_sig_handler(&self) -> bool
Returns true if it has the NoWinchSigHandler flag set.
sourcepub fn is_preserve_cursor(&self) -> bool
pub fn is_preserve_cursor(&self) -> bool
Returns true if it has the PreserveCursor flag set.
sourcepub fn is_scrolling(&self) -> bool
pub fn is_scrolling(&self) -> bool
Returns true if it has the Scrolling flag set.
sourcepub fn is_cli_mode(&self) -> bool
pub fn is_cli_mode(&self) -> bool
Returns true if it has the CliMode flag set.
Returns true if it has the SuppressBanners flag set.
Trait Implementations§
source§impl From<&NcOptionsBuilder> for NcOptions
impl From<&NcOptionsBuilder> for NcOptions
source§fn from(builder: &NcOptionsBuilder) -> Self
fn from(builder: &NcOptionsBuilder) -> Self
Converts to this type from the input type.
source§impl From<&mut NcOptionsBuilder> for NcOptions
impl From<&mut NcOptionsBuilder> for NcOptions
source§fn from(builder: &mut NcOptionsBuilder) -> Self
fn from(builder: &mut NcOptionsBuilder) -> Self
Converts to this type from the input type.
source§impl From<NcOptionsBuilder> for NcOptions
impl From<NcOptionsBuilder> for NcOptions
source§fn from(builder: NcOptionsBuilder) -> NcOptions
fn from(builder: NcOptionsBuilder) -> NcOptions
Converts to this type from the input type.