Struct tmux_interface::commands::windows_and_panes::resize_pane::ResizePane[][src]

pub struct ResizePane<'a>(pub TmuxCommand<'a>);

Resize a pane, up, down, left or right

Manual

tmux ^2.1:

tmux resize-pane [-DLMRUZ] [-t target-pane] [-x width] [-y height] [adjustment]
(alias: resizep)

tmux ^1.8:

tmux resize-pane [-DLRUZ] [-t target-pane] [-x width] [-y height] [adjustment]
(alias: resizep)

tmux ^1.0:

tmux resize-pane [-DLRU] [-t target-pane] [adjustment]
(alias: resizep)

tmux ^0.9:

tmux resize-pane [-DU] [-p pane-index] [-t target-pane] [adjustment]
(alias: resizep)

Implementations

impl<'a> ResizePane<'a>[src]

pub fn new() -> Self[src]

pub fn down(&mut self) -> &mut Self[src]

[-D] - resize down by adjustment

pub fn left(&mut self) -> &mut Self[src]

[-L] - resize left by adjustment

pub fn mouse(&mut self) -> &mut Self[src]

[-M] - begin mouse resizing

pub fn right(&mut self) -> &mut Self[src]

[-R] - resize right by adjustment

pub fn up(&mut self) -> &mut Self[src]

[-U] - resize up by adjustment

pub fn zoom(&mut self) -> &mut Self[src]

[-Z] - the active pane is toggled between zoomed and unzoomed

pub fn target_pane<S: Into<Cow<'a, str>>>(
    &mut self,
    target_pane: S
) -> &mut Self
[src]

[-t target-pane] - target-pane

pub fn width(&mut self, width: usize) -> &mut Self[src]

[-x width] - absolute size

pub fn height(&mut self, height: usize) -> &mut Self[src]

[-y height] - absolute size

pub fn adjustment<S: Into<Cow<'a, str>>>(&mut self, adjustment: S) -> &mut Self[src]

[adjustment] - adjustment

pub fn output(&self) -> Result<TmuxOutput, Error>[src]

Trait Implementations

impl<'a> Clone for ResizePane<'a>[src]

impl<'a> Debug for ResizePane<'a>[src]

impl<'a> Default for ResizePane<'a>[src]

impl<'a> From<&'_ TmuxCommand<'a>> for ResizePane<'a>[src]

impl<'a> From<TmuxCommand<'a>> for ResizePane<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for ResizePane<'a>

impl<'a> Send for ResizePane<'a>

impl<'a> Sync for ResizePane<'a>

impl<'a> Unpin for ResizePane<'a>

impl<'a> UnwindSafe for ResizePane<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.