pub struct WindowConfigBuilder(/* private fields */);Implementations§
Source§impl WindowConfigBuilder
impl WindowConfigBuilder
Sourcepub fn anchor(&mut self, anchor: WindowAnchor) -> &mut WindowConfigBuilder
pub fn anchor(&mut self, anchor: WindowAnchor) -> &mut WindowConfigBuilder
Decides which corner of the window to place at (row, col).
Sourcepub fn border(&mut self, border: WindowBorder) -> &mut WindowConfigBuilder
pub fn border(&mut self, border: WindowBorder) -> &mut WindowConfigBuilder
Style of the optional window border.
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.
Sourcepub fn col(&mut self, col: impl Into<f64>) -> &mut WindowConfigBuilder
pub fn col(&mut self, col: impl Into<f64>) -> &mut WindowConfigBuilder
Column position in units of screen cell width. May be fractional
Sourcepub fn external(&mut self, external: bool) -> &mut WindowConfigBuilder
pub fn external(&mut self, external: bool) -> &mut WindowConfigBuilder
Whether an attached GUI should display the window as an external top-level window.
pub fn fixed(&mut self, fixed: bool) -> &mut WindowConfigBuilder
Sourcepub fn focusable(&mut self, focusable: bool) -> &mut WindowConfigBuilder
pub fn focusable(&mut self, focusable: bool) -> &mut WindowConfigBuilder
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 WindowConfigBuilder
Sourcepub fn height(&mut self, height: u32) -> &mut WindowConfigBuilder
pub fn height(&mut self, height: u32) -> &mut WindowConfigBuilder
Window height in character cells. Minimum of 1.
Sourcepub fn noautocmd(&mut self, noautocmd: bool) -> &mut WindowConfigBuilder
pub fn noautocmd(&mut self, noautocmd: 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,
relative: WindowRelativeTo,
) -> &mut WindowConfigBuilder
pub fn relative( &mut self, relative: WindowRelativeTo, ) -> &mut WindowConfigBuilder
Sets the window layout to floating
Decides what the window is positioned relatively to.
Sourcepub fn split(&mut self, direction: SplitDirection) -> &mut WindowConfigBuilder
pub fn split(&mut self, direction: SplitDirection) -> &mut WindowConfigBuilder
Configures where a split window is opened.
Sourcepub fn vertical(&mut self, vertical: bool) -> &mut WindowConfigBuilder
pub fn vertical(&mut self, vertical: bool) -> &mut WindowConfigBuilder
Should the split window be opened as vertical.
Sourcepub fn row(&mut self, row: impl Into<f64>) -> &mut WindowConfigBuilder
pub fn row(&mut self, row: impl Into<f64>) -> &mut WindowConfigBuilder
Row position in units of screen cell height. May be fractional.
Sourcepub fn style(&mut self, style: WindowStyle) -> &mut WindowConfigBuilder
pub fn style(&mut self, style: WindowStyle) -> &mut WindowConfigBuilder
Configures the appearance of the window.
Sourcepub fn width(&mut self, width: u32) -> &mut WindowConfigBuilder
pub fn width(&mut self, width: u32) -> &mut WindowConfigBuilder
Window width in character cells. Minimum of 1.
Sourcepub fn zindex(&mut self, zindex: u32) -> &mut WindowConfigBuilder
pub fn zindex(&mut self, zindex: u32) -> &mut WindowConfigBuilder
Stacking order. Windows with higher zindex go in front of windows
with lower indices.
pub fn title(&mut self, title: WindowTitle) -> &mut WindowConfigBuilder
pub fn title_pos( &mut self, title_pos: WindowTitlePosition, ) -> &mut WindowConfigBuilder
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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.