Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

window.ResizeDirection

Rust
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
window
Package
libtmux
Source
crates/libtmux/src/window.rs
enum window.ResizeDirection
enumoverload [source]
enumoverload [source]
enum window.ResizeDirection

Which edge a resize moves.

Examples

use libtmux::ResizeDirection;
let guard = libtmux::test::TestServer::new().await?;
let session = guard.server().new_session("work").await?;
let mut window = session.active_window().await?.expect("a session has a window");
// The direction names the edge that moves, so `Down` makes a window taller
// rather than shorter.
let before = window.height();
window.resize_by(ResizeDirection::Down, 3).await?;
assert!(window.height() >= before);
guard.shutdown().await?;

4 declared, 0 inherited

Members

  • Down constant Move the bottom edge down.
  • Left constant Move the left edge left.
  • Right constant Move the right edge right.
  • Up constant Move the top edge up, making it taller.
Esc

Type to search.