pub struct WindowConfigBuilder { /* private fields */ }
Expand description
Builder for WindowConfig
.
Implementations§
Source§impl 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<VALUE: Into<Float>>(&mut self, value: VALUE) -> &mut Self
pub fn col<VALUE: Into<Float>>(&mut self, value: VALUE) -> &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 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 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<VALUE: Into<Float>>(&mut self, value: VALUE) -> &mut Self
pub fn row<VALUE: Into<Float>>(&mut self, value: VALUE) -> &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.
Source§impl 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§
Source§impl Clone for WindowConfigBuilder
impl Clone for WindowConfigBuilder
Source§fn clone(&self) -> WindowConfigBuilder
fn clone(&self) -> WindowConfigBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more