Struct nvim_oxi_api::types::WindowConfigBuilder

source ·
pub struct WindowConfigBuilder(/* private fields */);

Implementations§

source§

impl WindowConfigBuilder

source

pub fn anchor(&mut self, anchor: WindowAnchor) -> &mut Self

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

source

pub fn border(&mut self, border: WindowBorder) -> &mut Self

Style of the optional window border.

source

pub fn bufpos(&mut self, line: usize, column: usize) -> &mut Self

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.

source

pub fn col(&mut self, col: impl Into<Float>) -> &mut Self

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

source

pub fn external(&mut self, external: bool) -> &mut Self

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

source

pub fn focusable(&mut self, focusable: bool) -> &mut Self

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

source

pub fn height(&mut self, height: u32) -> &mut Self

Window height in character cells. Minimum of 1.

source

pub fn noautocmd(&mut self, noautocmd: bool) -> &mut Self

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

source

pub fn relative(&mut self, relative: WindowRelativeTo) -> &mut Self

Sets the window layout to floating Decides what the window is positioned relatively to.

source

pub fn row(&mut self, row: impl Into<Float>) -> &mut Self

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

source

pub fn style(&mut self, style: WindowStyle) -> &mut Self

Configures the appearance of the window.

source

pub fn width(&mut self, width: u32) -> &mut Self

Window width in character cells. Minimum of 1.

source

pub fn zindex(&mut self, zindex: u32) -> &mut Self

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

source

pub fn title(&mut self, title: WindowTitle) -> &mut Self

source

pub fn title_pos(&mut self, title_pos: WindowTitlePosition) -> &mut Self

source

pub fn build(&mut self) -> WindowConfig

Trait Implementations§

source§

impl Clone for WindowConfigBuilder

source§

fn clone(&self) -> WindowConfigBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for WindowConfigBuilder

source§

fn default() -> WindowConfigBuilder

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoResult<T> for T

§

type Error = Infallible

The error type in the returned Result.
source§

fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>

Converts the value into a Result.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.