pub struct NcPlaneOptionsBuilder { /* private fields */ }
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 NcPlaneOptionsBuilder with the Marginalized flag set.

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 v alignment and the VerAligned flag.

Sets the horizontal alignment.

Default: NcAlign::Left.

Effect: Sets the h alignment and the HorAligned flag.

Sets the vertical & horizontal alignment.

Default: (NcAlign::Top, NcAlign::Left).

Effect: Sets the v & h 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.

If true, the plane will grow automatically.

Default: false.

Effect: (un)sets the AutoGrow flag.

Note that just setting AutoGrow makes the NcPlane grow to the right, and setting AutoGrow + VScroll makes the NcPlane grow down.

(Un)Sets the resize callback.

Default: None.

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 h alignment and the HorAligned flag.

Sets the vertical & horizontal alignment.

Default: (NcAlign::Top, NcAlign::Left).

Effect: Sets the v & h 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.

If true, the plane will grow automatically.

Default: false.

Effect: (un)sets the AutoGrow flag.

Note that just setting AutoGrow makes the NcPlane grow to the right, and setting AutoGrow + VScroll makes the NcPlane grow down.

(Un)Sets the resize callback.

Default: None.

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

New NcPlaneOptionsBuilder with the Marginalized flag set.

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.