pub struct WindowConfigBuilder(/* private fields */);
Implementations§
Source§impl WindowConfigBuilder
impl WindowConfigBuilder
Sourcepub fn anchor(&mut self, anchor: WindowAnchor) -> &mut Self
pub fn anchor(&mut self, anchor: WindowAnchor) -> &mut Self
Decides which corner of the window to place at (row, col)
.
Sourcepub fn border(&mut self, border: WindowBorder) -> &mut Self
pub fn border(&mut self, border: WindowBorder) -> &mut Self
Style of the optional window border.
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.
Sourcepub fn col(&mut self, col: impl Into<Float>) -> &mut Self
pub fn col(&mut self, col: impl Into<Float>) -> &mut Self
Column position in units of screen cell width. May be fractional
Sourcepub fn external(&mut self, external: bool) -> &mut Self
pub fn external(&mut self, external: bool) -> &mut Self
Whether an attached GUI should display the window as an external top-level window.
pub fn fixed(&mut self, fixed: bool) -> &mut Self
Sourcepub fn focusable(&mut self, focusable: bool) -> &mut Self
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
.
pub fn hide(&mut self, hide: bool) -> &mut Self
Sourcepub fn height(&mut self, height: u32) -> &mut Self
pub fn height(&mut self, height: u32) -> &mut Self
Window height in character cells. Minimum of 1.
Sourcepub fn noautocmd(&mut self, noautocmd: bool) -> &mut Self
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
.
Sourcepub fn relative(&mut self, relative: WindowRelativeTo) -> &mut Self
pub fn relative(&mut self, relative: WindowRelativeTo) -> &mut Self
Sets the window layout to floating
Decides what the window is positioned relatively to.
Sourcepub fn split(&mut self, direction: SplitDirection) -> &mut Self
pub fn split(&mut self, direction: SplitDirection) -> &mut Self
Configures where a split window is opened.
Sourcepub fn vertical(&mut self, vertical: bool) -> &mut Self
pub fn vertical(&mut self, vertical: bool) -> &mut Self
Should the split window be opened as vertical.
Sourcepub fn row(&mut self, row: impl Into<Float>) -> &mut Self
pub fn row(&mut self, row: impl Into<Float>) -> &mut Self
Row position in units of screen cell height. May be fractional.
Sourcepub fn style(&mut self, style: WindowStyle) -> &mut Self
pub fn style(&mut self, style: WindowStyle) -> &mut Self
Configures the appearance of the window.
Sourcepub fn width(&mut self, width: u32) -> &mut Self
pub fn width(&mut self, width: u32) -> &mut Self
Window width in character cells. Minimum of 1.
Sourcepub fn zindex(&mut self, zindex: u32) -> &mut Self
pub fn zindex(&mut self, zindex: u32) -> &mut Self
Stacking order. Windows with higher zindex
go in front of windows
with lower indices.
pub fn title(&mut self, title: WindowTitle) -> &mut Self
pub fn title_pos(&mut self, title_pos: WindowTitlePosition) -> &mut Self
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 moreSource§impl Default for WindowConfigBuilder
impl Default for WindowConfigBuilder
Source§fn default() -> WindowConfigBuilder
fn default() -> WindowConfigBuilder
Auto Trait Implementations§
impl Freeze for WindowConfigBuilder
impl RefUnwindSafe for WindowConfigBuilder
impl !Send for WindowConfigBuilder
impl !Sync for WindowConfigBuilder
impl Unpin for WindowConfigBuilder
impl UnwindSafe for WindowConfigBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§type Error = Infallible
type Error = Infallible
Result
.Source§fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
Result
.