Type Definition libnotcurses_sys::NcOptions
source · [−]pub type NcOptions = notcurses_options;
Expand description
Options struct for Nc
Implementations
sourceimpl NcOptions
impl NcOptions
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: impl Into<NcFlag>) -> Self
pub fn with_flags(flags: impl Into<NcFlag>) -> Self
New NcOptions
, with flags.
sourcepub fn with_all_options(
loglevel: impl Into<NcLogLevel>,
margin_t: u32,
margin_r: u32,
margin_b: u32,
margin_l: u32,
flags: impl Into<NcFlag>
) -> Self
pub fn with_all_options(
loglevel: impl Into<NcLogLevel>,
margin_t: u32,
margin_r: u32,
margin_b: u32,
margin_l: u32,
flags: impl Into<NcFlag>
) -> Self
New NcOptions
, with all the options.
Arguments
-
loglevel
Progressively higher log levels result in more logging to stderr. By default, nothing is printed to stderr once fullscreen service begins.
-
margin_t, margin_r, margin_b, margin_l
Desirable margins (top, right, bottom, left).
If all are 0 (default), we will render to the entirety of the screen. If the screen is too small, we do what we can. Absolute coordinates are relative to the rendering area ((0, 0) is always the origin of the rendering area).
-
flags
General flags; This is expressed as a bitfield so that future options can be added without reshaping the struct. Undefined bits must be set to 0.