Struct nvim_oxi::types::WindowConfigBuilder
source · [−]pub struct WindowConfigBuilder { /* private fields */ }Expand description
Builder for WindowConfig.
Implementations
sourceimpl WindowConfigBuilder
impl WindowConfigBuilder
sourcepub fn anchor(&mut self, value: WindowAnchor) -> &mut Self
pub fn anchor(&mut self, value: WindowAnchor) -> &mut Self
Decides which corner of the window to place at (row, col).
sourcepub fn border(&mut self, value: WindowBorder) -> &mut Self
pub fn border(&mut self, value: WindowBorder) -> &mut Self
Style of the optional window border.
sourcepub fn col(&mut self, value: Float) -> &mut Self
pub fn col(&mut self, value: Float) -> &mut Self
Column position in units of screen cell width. May be fractional
sourcepub fn external(&mut self, value: bool) -> &mut Self
pub fn external(&mut self, value: bool) -> &mut Self
Whether an attached GUI should display the window as an external top-level window.
sourcepub fn focusable(&mut self, value: bool) -> &mut Self
pub fn focusable(&mut self, value: bool) -> &mut Self
Enable focus by user actions like mouse events. Non-focusable windows
can be entered by crate::api::set_current_win.
sourcepub fn height(&mut self, value: u32) -> &mut Self
pub fn height(&mut self, value: u32) -> &mut Self
Window height in character cells. Minimum of 1.
sourcepub fn noautocmd(&mut self, value: bool) -> &mut Self
pub fn noautocmd(&mut self, value: bool) -> &mut Self
If true then no buffer-related autocommand events such as BufEnter
or BufLeave are fired when calling
api::open_win.
sourcepub fn relative(&mut self, value: WindowRelativeTo) -> &mut Self
pub fn relative(&mut self, value: WindowRelativeTo) -> &mut Self
What the window is positioned relative to.
sourcepub fn row(&mut self, value: Float) -> &mut Self
pub fn row(&mut self, value: Float) -> &mut Self
Row position in units of screen cell height. May be fractional.
sourcepub fn style(&mut self, value: WindowStyle) -> &mut Self
pub fn style(&mut self, value: WindowStyle) -> &mut Self
Configures the appearance of the window.
sourceimpl WindowConfigBuilder
impl WindowConfigBuilder
sourcepub fn bufpos(&mut self, line: usize, column: usize) -> &mut Self
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.
pub fn build(&mut self) -> WindowConfig
Trait Implementations
sourceimpl Clone for WindowConfigBuilder
impl Clone for WindowConfigBuilder
sourcefn clone(&self) -> WindowConfigBuilder
fn clone(&self) -> WindowConfigBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for WindowConfigBuilder
impl Send for WindowConfigBuilder
impl Sync for WindowConfigBuilder
impl Unpin for WindowConfigBuilder
impl UnwindSafe for WindowConfigBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more