pub struct NcOptionsBuilder { /* private fields */ }
Expand description

Builder object for NcOptions.

Implementations§

New NcOptionsBuilder.

New builder from pre-existing options.

Finishes the building and returns NcOptions.

Sets the log level.

Sets the margins.

Sets the top margin.

Sets the right margin.

Sets the bottom margin.

Sets the left margin.

If true, Input may be freely dropped.

This ought be provided when the program does not intend to handle input. Otherwise, input can accumulate in internal buffers, eventually preventing Notcurses from processing terminal messages.

See NcFlag::DrainInput.

If true, wont call setlocale().

See NcFlag::InhibitSetLocale.

If true, wont enter alternate mode.

See NcFlag::NoAlternateScreen.

If true, wont try to clear any preexisting bitmaps.

See NcFlag::NoClearBitmaps.

If true, wont modify the font.

See NcFlag::NoFontChanges.

If true, wont handle SIGINT, SIGSEGV, SIGABRT nor SIGQUIT.

See NcFlag::NoQuitSigHandlers.

If true, wont handle SIGWINCH.

See NcFlag::NoWinchSigHandler.

If true, will initializes the CLI plane’s virtual cursor to match the physical cursor at context creation time.

See NcFlag::PreserveCursor.

If true, will prepare the CLI plane in scrolling mode.

See NcFlag::Scrolling.

A shortcut for setting the following options together: no_alternate_screen, no_clear_bitmaps, preserve_cursor & scrolling.

See NcFlag::CliMode.

If true, wont print banners.

See NcFlag::SuppressBanners.

Sets the log level.

Sets the margins.

Sets the top margin.

Sets the right margin.

Sets the bottom margin.

Sets the left margin.

If true, Input may be freely dropped.

This ought be provided when the program does not intend to handle input. Otherwise, input can accumulate in internal buffers, eventually preventing Notcurses from processing terminal messages.

See NcFlag::DrainInput.

If true, wont call setlocale().

See NcFlag::InhibitSetLocale.

If true, wont enter alternate mode.

See NcFlag::NoAlternateScreen.

If true, wont try to clear any preexisting bitmaps.

See NcFlag::NoClearBitmaps.

If true, wont modify the font.

See NcFlag::NoFontChanges.

If true, wont handle SIGINT, SIGSEGV, SIGABRT nor SIGQUIT.

See NcFlag::NoQuitSigHandlers.

If true, wont handle SIGWINCH.

See NcFlag::NoWinchSigHandler.

If true, will initializes the CLI plane’s virtual cursor to match the physical cursor at context creation time.

See NcFlag::PreserveCursor.

If true, will prepare the CLI plane in scrolling mode.

See NcFlag::Scrolling.

A shortcut for setting the following options together: no_alternate_screen, no_clear_bitmaps, preserve_cursor & scrolling.

See NcFlag::CliMode.

If true, wont print banners.

See NcFlag::SuppressBanners.

Returns the (top, right, bottom, left) margins.

Returns the log level.

Returns true if it has the DrainInput flag set.

Returns true if it has the InhibitSetLocale flag set.

Returns true if it has the NoAlternateScreen flag set.

Returns true if it has the NoClearBitmaps flag set.

Returns true if it has the NoFontChanges flag set.

Returns true if it has the NoQuitSigHandlers flag set.

Returns true if it has the NoWinchSigHandler flag set.

Returns true if it has the PreserveCursor flag set.

Returns true if it has the Scrolling flag set.

Returns true if it has the CliMode flag set.

Returns true if it has the SuppressBanners flag set.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.