Struct libnotcurses_sys::NcPlaneOptionsBuilder [−][src]
pub struct NcPlaneOptionsBuilder { /* fields omitted */ }Expand description
Builder object for NcPlaneOptions.
Can be constructed by calling NcPlaneOptions::builder().
By default it has the MARGINALIZED flag already set, alongside (0, 0)
margins, so that it automatically fills the parent plane.
Implementations
New builder from pre-existing options.
Finishes the building and returns NcPlaneOptions.
Sets the vertical placement relative to parent plane.
Default: 0.
Effect: Sets the y coordinate and unsets the VERALIGNED flag.
Sets the horizontal placement relative to parent plane.
Default: 0.
Effect: Sets the x coordinate and unsets the HORALIGNED flag.
Sets the vertical & horizontal placement relative to parent plane.
Effect: Sets the x & y coordinates and unsets the VERALIGNED
and HORALIGNED flags.
Default: (0, 0).
Sets the vertical alignment.
Default: NcAlign::Top.
Effect: Sets the y alignment and the VERALIGNED flag.
Sets the horizontal alignment.
Default: NcAlign::Left.
Effect: Sets the x alignment and the HORALIGNED flag.
Sets the vertical & horizontal alignment.
Default: (NcAlign::Top, NcAlign::Left).
Effect: Sets the y & x alignments and the VERALIGNED
& HORALIGNED flags.
Sets the number of rows for the plane.
Must be >0 when not using margins.
Default: 0.
Effect: sets the rows field and unsets the MARGINALIZED flag.
Sets the number of columns for the plane.
Must be >0 when not using margins.
Default: 0.
Effect: sets the cols field and unsets the MARGINALIZED flag.
Sets the number of rows & columns for the plane.
Must be >0 when not using margins.
Default: (0, 0).
Effect: sets the rows & cols fields and unsets the MARGINALIZED
flag.
Sets the bottom & right margins.
Default: (0, 0).
Effect: sets the margin_b & margin_r fields and the MARGINALIZED
flag.
If true, the plane will not scroll with the parent.
Default: false (scrolls with the parent).
Effect: (un)sets the FIXED flag.
If true, the plane will scroll vertically to accommodate output.
Setting this flag is equivalent to immediately calling
set_scrolling(true) following NcPlane creation.
Default: false.
Effect: (un)sets the VSCROLL flag.
See also: AUTOGROW.
(Un)Sets the resize callback.
Default: None.
Trait Implementations
New NcPlaneOptionsBuilder with the MARGINALIZED flag set.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for NcPlaneOptionsBuilder
impl Send for NcPlaneOptionsBuilder
impl Sync for NcPlaneOptionsBuilder
impl Unpin for NcPlaneOptionsBuilder
impl UnwindSafe for NcPlaneOptionsBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
