#[non_exhaustive]
pub struct WindowConfig {
Show 13 fields pub anchor: Option<WindowAnchor>, pub border: Option<WindowBorder>, pub bufpos: Option<(usize, usize)>, pub col: Option<Float>, pub external: Option<bool>, pub focusable: Option<bool>, pub height: Option<u32>, pub noautocmd: Option<bool>, pub relative: Option<WindowRelativeTo>, pub row: Option<Float>, pub style: Option<WindowStyle>, pub width: Option<u32>, pub zindex: Option<u32>,
}

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
anchor: Option<WindowAnchor>

Decides which corner of the window to place at (row, col).

border: Option<WindowBorder>

Style of the optional window border.

bufpos: Option<(usize, usize)>

Places window relative to buffer text (only when relative is set to WindowRelativeTo::Window(win)). Takes a zero indexed (line, column) tuple, with row and col being placed relative to this position if specified.

col: Option<Float>

Column position in units of screen cell width. May be fractional

external: Option<bool>

Whether an attached GUI should display the window as an external top-level window.

focusable: Option<bool>

Enable focus by user actions like mouse events. Non-focusable windows can be entered by crate::api::set_current_win.

height: Option<u32>

Window height in character cells. Minimum of 1.

noautocmd: Option<bool>

If true then no buffer-related autocommand events such as BufEnter or BufLeave are fired when calling api::open_win.

relative: Option<WindowRelativeTo>

What the window is positioned relative to.

row: Option<Float>

Row position in units of screen cell height. May be fractional.

style: Option<WindowStyle>

Configures the appearance of the window.

width: Option<u32>

Window width in character cells. Minimum of 1.

zindex: Option<u32>

Stacking order. Windows with higher zindex go in front of windows with lower indices.

Implementations

Creates a new WinConfigBuilder.

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

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.