Type Definition libnotcurses_sys::NcPlaneOptions

source ·
pub type NcPlaneOptions = ncplane_options;
Expand description

Options struct for NcPlane.

It is recommended to construct it via NcPlaneOptionsBuilder by calling NcPlaneOptions::builder().

Fields

  • y: vertical placement relative to parent plane.
  • x: horizontal placement relative to parent plane.
  • rows: vertical length in rows.
  • cols: horizontal length in columns.
  • userptr: optional user curry.
  • name: optional string identifier for debugging.
  • resizecb: callback when parent is resized.
  • margin_b: bottom margin (requires the Marginalized flag).
  • margin_r: right margin (requires the Marginalized).

Implementations§

New NcPlaneOptions using the horizontal x.

Returns a default NcPlane options builder.

Returns a builder object from the current NcPlane options.

New NcPlaneOptions with horizontal alignment.

New NcPlaneOptions, with flags.

New NcPlaneOptions, with flags and horizontal alignment.

Note: Already includes the NcPlaneOptions::HORALIGNED flag.

Returns true if it has the VerAligned flag set.

Returns true if it has the HorAligned flag set.

Returns true if it has the Marginalized flag set.

Returns true if it has the Fixed flag set.

Returns true if it has the AutoGrow flag set.

Returns true if it has the VScroll flag set.

Trait Implementations§

Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.