pub struct WindowConfigBuilder { /* private fields */ }Expand description
Builder for WindowConfig.
Implementations
sourceimpl WindowConfigBuilder
impl WindowConfigBuilder
sourcepub fn anchor(&mut self, value: WindowAnchor) -> &mut WindowConfigBuilder
pub fn anchor(&mut self, value: WindowAnchor) -> &mut WindowConfigBuilder
Decides which corner of the window to place at (row, col).
sourcepub fn border(&mut self, value: WindowBorder) -> &mut WindowConfigBuilder
pub fn border(&mut self, value: WindowBorder) -> &mut WindowConfigBuilder
Style of the optional window border.
sourcepub fn col<VALUE>(&mut self, value: VALUE) -> &mut WindowConfigBuilderwhere
VALUE: Into<f64>,
pub fn col<VALUE>(&mut self, value: VALUE) -> &mut WindowConfigBuilderwhere
VALUE: Into<f64>,
Column position in units of screen cell width. May be fractional
sourcepub fn external(&mut self, value: bool) -> &mut WindowConfigBuilder
pub fn external(&mut self, value: bool) -> &mut WindowConfigBuilder
Whether an attached GUI should display the window as an external top-level window.
sourcepub fn focusable(&mut self, value: bool) -> &mut WindowConfigBuilder
pub fn focusable(&mut self, value: bool) -> &mut WindowConfigBuilder
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 WindowConfigBuilder
pub fn height(&mut self, value: u32) -> &mut WindowConfigBuilder
Window height in character cells. Minimum of 1.
sourcepub fn noautocmd(&mut self, value: bool) -> &mut WindowConfigBuilder
pub fn noautocmd(&mut self, value: bool) -> &mut WindowConfigBuilder
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 WindowConfigBuilder
pub fn relative(&mut self, value: WindowRelativeTo) -> &mut WindowConfigBuilder
What the window is positioned relative to.
sourcepub fn row<VALUE>(&mut self, value: VALUE) -> &mut WindowConfigBuilderwhere
VALUE: Into<f64>,
pub fn row<VALUE>(&mut self, value: VALUE) -> &mut WindowConfigBuilderwhere
VALUE: Into<f64>,
Row position in units of screen cell height. May be fractional.
sourcepub fn style(&mut self, value: WindowStyle) -> &mut WindowConfigBuilder
pub fn style(&mut self, value: WindowStyle) -> &mut WindowConfigBuilder
Configures the appearance of the window.
sourcepub fn width(&mut self, value: u32) -> &mut WindowConfigBuilder
pub fn width(&mut self, value: u32) -> &mut WindowConfigBuilder
Window width in character cells. Minimum of 1.
sourcepub fn zindex(&mut self, value: u32) -> &mut WindowConfigBuilder
pub fn zindex(&mut self, value: u32) -> &mut WindowConfigBuilder
Stacking order. Windows with higher zindex go in front of windows
with lower indices.
sourceimpl WindowConfigBuilder
impl WindowConfigBuilder
sourcepub fn bufpos(&mut self, line: usize, column: usize) -> &mut WindowConfigBuilder
pub fn bufpos(&mut self, line: usize, column: usize) -> &mut WindowConfigBuilder
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
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read more